You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hamilton.apache.org by sk...@apache.org on 2026/03/28 19:40:00 UTC

(hamilton) 02/02: Fix flit build in release helper: use --no-use-vcs flag

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

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

commit e381c6c795f86c8034e146f4fa6d0cd47429bab0
Author: Stefan Krawczyk <st...@cs.stanford.edu>
AuthorDate: Mon Mar 23 10:14:02 2026 -0700

    Fix flit build in release helper: use --no-use-vcs flag
    
    Flit 3.12.0 does not respect the FLIT_USE_VCS=0 env var.
    Switch to the --no-use-vcs CLI flag which works correctly.
    
    Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
 scripts/apache_release_helper.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/scripts/apache_release_helper.py b/scripts/apache_release_helper.py
index 8f3705c2..49823997 100644
--- a/scripts/apache_release_helper.py
+++ b/scripts/apache_release_helper.py
@@ -302,15 +302,13 @@ 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: