depot/third_party/nixpkgs/pkgs/development/python-modules/ale-py/patch-sha-check-in-setup.patch
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

17 lines
431 B
Diff

diff --git a/setup.py b/setup.py
index ff1b1c5..ce40df0 100644
--- a/setup.py
+++ b/setup.py
@@ -141,11 +141,7 @@ def parse_version(version_file):
version = ci_version
else:
- sha = (
- subprocess.check_output(["git", "rev-parse", "--short", "HEAD"], cwd=here)
- .decode("ascii")
- .strip()
- )
+ sha = @sha@
version += f"+{sha}"
return version