This is an automated email from the ASF dual-hosted git repository.

skrawcz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hamilton.git

commit cbd5e9df136413211161470f5c18bb584b26e560
Author: Stefan Krawczyk <[email protected]>
AuthorDate: Sat Feb 21 17:56:31 2026 -0800

    Use FLIT_USE_VCS environment variable instead of --no-use-vcs flag
    
    Follow Burr's pattern of setting FLIT_USE_VCS=0 as an environment variable
    instead of using the --no-use-vcs command-line flag. This is the standard
    approach used in Apache projects.
---
 scripts/apache_release_helper.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/apache_release_helper.py b/scripts/apache_release_helper.py
index 49823997..8f3705c2 100644
--- a/scripts/apache_release_helper.py
+++ b/scripts/apache_release_helper.py
@@ -302,13 +302,15 @@ def create_release_artifacts(package_config: dict, 
version) -> list[str]:
 
         # Use flit build to create the source distribution.
         try:
+            env = os.environ.copy()
+            env["FLIT_USE_VCS"] = "0"
             subprocess.run(
                 [
                     "flit",
                     "build",
-                    "--no-use-vcs",
                 ],
                 check=True,
+                env=env,
             )
             print("Source distribution created successfully.")
         except subprocess.CalledProcessError as e:

Reply via email to