Commit 4d2beee 1 parent 31c19f3 commit 4d2beee Copy full SHA for 4d2beee
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -932,8 +932,13 @@ def build_wheels_job(
932
932
"if" : "needs.release_info.outputs.is-release == 'true'" ,
933
933
"run" : dedent (
934
934
"""\
935
+ PANTS_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import pants.version;print(pants.version.VERSION)")
936
+ PY_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import sys;print(f'cp{sys.version_info[0]}{sys.version_info[1]}')")
937
+ PLAT=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import os;print(f'{os.uname().sysname.lower()}_{os.uname().machine.lower()}')")
935
938
PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex
939
+
936
940
mv dist/src.python.pants/pants-pex.pex dist/src.python.pants/$PEX_FILENAME
941
+ echo "PEX_FILENAME=$PEX_FILENAME" >> "$GITHUB_ENV"
937
942
"""
938
943
),
939
944
},
@@ -956,11 +961,6 @@ def build_wheels_job(
956
961
# support. `curl` is a good lowest-common-denominator way to upload the assets.
957
962
"run" : dedent (
958
963
"""\
959
- PANTS_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import pants.version;print(pants.version.VERSION)")
960
- PY_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import sys;print(f'cp{sys.version_info[0]}{sys.version_info[1]}')")
961
- PLAT=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import os;print(f'{os.uname().sysname.lower()}_{os.uname().machine.lower()}')")
962
- PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex
963
-
964
964
curl -L --fail \\
965
965
-X POST \\
966
966
-H "Authorization: Bearer ${{ github.token }}" \\
You can’t perform that action at this time.
0 commit comments