@@ -84,10 +84,21 @@ jobs:
84
84
subject-path : dist/deploy/wheels/pantsbuild.pants/**/pantsbuild.pants-*.whl
85
85
- if : needs.release_info.outputs.is-release == 'true'
86
86
name : Rename the Pants Pex to its final name for upload
87
- run : ' PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex
87
+ run : ' PANTS_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import
88
+ pants.version;print(pants.version.VERSION)")
89
+
90
+ PY_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import
91
+ sys;print(f'' cp{sys.version_info[0]}{sys.version_info[1]}'' )")
92
+
93
+ PLAT=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import os;print(f'' {os.uname().sysname.lower()}_{os.uname().machine.lower()}'' )")
94
+
95
+ PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex
96
+
88
97
89
98
mv dist/src.python.pants/pants-pex.pex dist/src.python.pants/$PEX_FILENAME
90
99
100
+ echo "PEX_FILENAME=$PEX_FILENAME" | tee -a "$GITHUB_ENV"
101
+
91
102
'
92
103
- continue-on-error : true
93
104
if : needs.release_info.outputs.is-release == 'true'
@@ -97,16 +108,11 @@ jobs:
97
108
subject-path : dist/src.python.pants/*.pex
98
109
- if : needs.release_info.outputs.is-release == 'true'
99
110
name : Upload Wheel and Pex
100
- run : " PANTS_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c \" \
101
- import pants.version;print(pants.version.VERSION)\" )\n PY_VER=$(PEX_INTERPRETER=1\
102
- \ dist/src.python.pants/pants-pex.pex -c \" import sys;print(f'cp{sys.version_info[0]}{sys.version_info[1]}')\" \
103
- )\n PLAT=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c \" import\
104
- \ os;print(f'{os.uname().sysname.lower()}_{os.uname().machine.lower()}')\" \
105
- )\n PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex\n\n curl -L --fail \\\n \
106
- \ -X POST \\\n -H \" Authorization: Bearer ${{ github.token }}\" \\\n \
107
- \ -H \" Content-Type: application/octet-stream\" \\\n ${{ needs.release_info.outputs.release-asset-upload-url\
108
- \ }}?name=$PEX_FILENAME \\\n --data-binary \" @dist/src.python.pants/$PEX_FILENAME\" \
109
- \n\n WHL=$(find dist/deploy/wheels/pantsbuild.pants -type f -name \" pantsbuild.pants-*.whl\" \
111
+ run : " curl -L --fail \\\n -X POST \\\n -H \" Authorization: Bearer ${{\
112
+ \ github.token }}\" \\\n -H \" Content-Type: application/octet-stream\" \
113
+ \ \\\n ${{ needs.release_info.outputs.release-asset-upload-url }}?name=$PEX_FILENAME\
114
+ \ \\\n --data-binary \" @dist/src.python.pants/$PEX_FILENAME\"\n\n WHL=$(find\
115
+ \ dist/deploy/wheels/pantsbuild.pants -type f -name \" pantsbuild.pants-*.whl\" \
110
116
)\n curl -L --fail \\\n -X POST \\\n -H \" Authorization: Bearer ${{ github.token\
111
117
\ }}\" \\\n -H \" Content-Type: application/octet-stream\" \\\n \" ${{\
112
118
\ needs.release_info.outputs.release-asset-upload-url }}?name=$(basename $WHL)\" \
@@ -192,10 +198,21 @@ jobs:
192
198
subject-path : dist/deploy/wheels/pantsbuild.pants/**/pantsbuild.pants-*.whl
193
199
- if : needs.release_info.outputs.is-release == 'true'
194
200
name : Rename the Pants Pex to its final name for upload
195
- run : ' PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex
201
+ run : ' PANTS_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import
202
+ pants.version;print(pants.version.VERSION)")
203
+
204
+ PY_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import
205
+ sys;print(f'' cp{sys.version_info[0]}{sys.version_info[1]}'' )")
206
+
207
+ PLAT=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import os;print(f'' {os.uname().sysname.lower()}_{os.uname().machine.lower()}'' )")
208
+
209
+ PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex
210
+
196
211
197
212
mv dist/src.python.pants/pants-pex.pex dist/src.python.pants/$PEX_FILENAME
198
213
214
+ echo "PEX_FILENAME=$PEX_FILENAME" | tee -a "$GITHUB_ENV"
215
+
199
216
'
200
217
- continue-on-error : true
201
218
if : needs.release_info.outputs.is-release == 'true'
@@ -205,16 +222,11 @@ jobs:
205
222
subject-path : dist/src.python.pants/*.pex
206
223
- if : needs.release_info.outputs.is-release == 'true'
207
224
name : Upload Wheel and Pex
208
- run : " PANTS_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c \" \
209
- import pants.version;print(pants.version.VERSION)\" )\n PY_VER=$(PEX_INTERPRETER=1\
210
- \ dist/src.python.pants/pants-pex.pex -c \" import sys;print(f'cp{sys.version_info[0]}{sys.version_info[1]}')\" \
211
- )\n PLAT=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c \" import\
212
- \ os;print(f'{os.uname().sysname.lower()}_{os.uname().machine.lower()}')\" \
213
- )\n PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex\n\n curl -L --fail \\\n \
214
- \ -X POST \\\n -H \" Authorization: Bearer ${{ github.token }}\" \\\n \
215
- \ -H \" Content-Type: application/octet-stream\" \\\n ${{ needs.release_info.outputs.release-asset-upload-url\
216
- \ }}?name=$PEX_FILENAME \\\n --data-binary \" @dist/src.python.pants/$PEX_FILENAME\" \
217
- \n\n WHL=$(find dist/deploy/wheels/pantsbuild.pants -type f -name \" pantsbuild.pants-*.whl\" \
225
+ run : " curl -L --fail \\\n -X POST \\\n -H \" Authorization: Bearer ${{\
226
+ \ github.token }}\" \\\n -H \" Content-Type: application/octet-stream\" \
227
+ \ \\\n ${{ needs.release_info.outputs.release-asset-upload-url }}?name=$PEX_FILENAME\
228
+ \ \\\n --data-binary \" @dist/src.python.pants/$PEX_FILENAME\"\n\n WHL=$(find\
229
+ \ dist/deploy/wheels/pantsbuild.pants -type f -name \" pantsbuild.pants-*.whl\" \
218
230
)\n curl -L --fail \\\n -X POST \\\n -H \" Authorization: Bearer ${{ github.token\
219
231
\ }}\" \\\n -H \" Content-Type: application/octet-stream\" \\\n \" ${{\
220
232
\ needs.release_info.outputs.release-asset-upload-url }}?name=$(basename $WHL)\" \
@@ -329,10 +341,21 @@ jobs:
329
341
subject-path : dist/deploy/wheels/pantsbuild.pants/**/pantsbuild.pants-*.whl
330
342
- if : needs.release_info.outputs.is-release == 'true'
331
343
name : Rename the Pants Pex to its final name for upload
332
- run : ' PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex
344
+ run : ' PANTS_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import
345
+ pants.version;print(pants.version.VERSION)")
346
+
347
+ PY_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import
348
+ sys;print(f'' cp{sys.version_info[0]}{sys.version_info[1]}'' )")
349
+
350
+ PLAT=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import os;print(f'' {os.uname().sysname.lower()}_{os.uname().machine.lower()}'' )")
351
+
352
+ PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex
353
+
333
354
334
355
mv dist/src.python.pants/pants-pex.pex dist/src.python.pants/$PEX_FILENAME
335
356
357
+ echo "PEX_FILENAME=$PEX_FILENAME" | tee -a "$GITHUB_ENV"
358
+
336
359
'
337
360
- continue-on-error : true
338
361
if : needs.release_info.outputs.is-release == 'true'
@@ -342,16 +365,11 @@ jobs:
342
365
subject-path : dist/src.python.pants/*.pex
343
366
- if : needs.release_info.outputs.is-release == 'true'
344
367
name : Upload Wheel and Pex
345
- run : " PANTS_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c \" \
346
- import pants.version;print(pants.version.VERSION)\" )\n PY_VER=$(PEX_INTERPRETER=1\
347
- \ dist/src.python.pants/pants-pex.pex -c \" import sys;print(f'cp{sys.version_info[0]}{sys.version_info[1]}')\" \
348
- )\n PLAT=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c \" import\
349
- \ os;print(f'{os.uname().sysname.lower()}_{os.uname().machine.lower()}')\" \
350
- )\n PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex\n\n curl -L --fail \\\n \
351
- \ -X POST \\\n -H \" Authorization: Bearer ${{ github.token }}\" \\\n \
352
- \ -H \" Content-Type: application/octet-stream\" \\\n ${{ needs.release_info.outputs.release-asset-upload-url\
353
- \ }}?name=$PEX_FILENAME \\\n --data-binary \" @dist/src.python.pants/$PEX_FILENAME\" \
354
- \n\n WHL=$(find dist/deploy/wheels/pantsbuild.pants -type f -name \" pantsbuild.pants-*.whl\" \
368
+ run : " curl -L --fail \\\n -X POST \\\n -H \" Authorization: Bearer ${{\
369
+ \ github.token }}\" \\\n -H \" Content-Type: application/octet-stream\" \
370
+ \ \\\n ${{ needs.release_info.outputs.release-asset-upload-url }}?name=$PEX_FILENAME\
371
+ \ \\\n --data-binary \" @dist/src.python.pants/$PEX_FILENAME\"\n\n WHL=$(find\
372
+ \ dist/deploy/wheels/pantsbuild.pants -type f -name \" pantsbuild.pants-*.whl\" \
355
373
)\n curl -L --fail \\\n -X POST \\\n -H \" Authorization: Bearer ${{ github.token\
356
374
\ }}\" \\\n -H \" Content-Type: application/octet-stream\" \\\n \" ${{\
357
375
\ needs.release_info.outputs.release-asset-upload-url }}?name=$(basename $WHL)\" \
@@ -449,10 +467,21 @@ jobs:
449
467
subject-path : dist/deploy/wheels/pantsbuild.pants/**/pantsbuild.pants-*.whl
450
468
- if : needs.release_info.outputs.is-release == 'true'
451
469
name : Rename the Pants Pex to its final name for upload
452
- run : ' PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex
470
+ run : ' PANTS_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import
471
+ pants.version;print(pants.version.VERSION)")
472
+
473
+ PY_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import
474
+ sys;print(f'' cp{sys.version_info[0]}{sys.version_info[1]}'' )")
475
+
476
+ PLAT=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c "import os;print(f'' {os.uname().sysname.lower()}_{os.uname().machine.lower()}'' )")
477
+
478
+ PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex
479
+
453
480
454
481
mv dist/src.python.pants/pants-pex.pex dist/src.python.pants/$PEX_FILENAME
455
482
483
+ echo "PEX_FILENAME=$PEX_FILENAME" | tee -a "$GITHUB_ENV"
484
+
456
485
'
457
486
- continue-on-error : true
458
487
if : needs.release_info.outputs.is-release == 'true'
@@ -462,16 +491,11 @@ jobs:
462
491
subject-path : dist/src.python.pants/*.pex
463
492
- if : needs.release_info.outputs.is-release == 'true'
464
493
name : Upload Wheel and Pex
465
- run : " PANTS_VER=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c \" \
466
- import pants.version;print(pants.version.VERSION)\" )\n PY_VER=$(PEX_INTERPRETER=1\
467
- \ dist/src.python.pants/pants-pex.pex -c \" import sys;print(f'cp{sys.version_info[0]}{sys.version_info[1]}')\" \
468
- )\n PLAT=$(PEX_INTERPRETER=1 dist/src.python.pants/pants-pex.pex -c \" import\
469
- \ os;print(f'{os.uname().sysname.lower()}_{os.uname().machine.lower()}')\" \
470
- )\n PEX_FILENAME=pants.$PANTS_VER-$PY_VER-$PLAT.pex\n\n curl -L --fail \\\n \
471
- \ -X POST \\\n -H \" Authorization: Bearer ${{ github.token }}\" \\\n \
472
- \ -H \" Content-Type: application/octet-stream\" \\\n ${{ needs.release_info.outputs.release-asset-upload-url\
473
- \ }}?name=$PEX_FILENAME \\\n --data-binary \" @dist/src.python.pants/$PEX_FILENAME\" \
474
- \n\n WHL=$(find dist/deploy/wheels/pantsbuild.pants -type f -name \" pantsbuild.pants-*.whl\" \
494
+ run : " curl -L --fail \\\n -X POST \\\n -H \" Authorization: Bearer ${{\
495
+ \ github.token }}\" \\\n -H \" Content-Type: application/octet-stream\" \
496
+ \ \\\n ${{ needs.release_info.outputs.release-asset-upload-url }}?name=$PEX_FILENAME\
497
+ \ \\\n --data-binary \" @dist/src.python.pants/$PEX_FILENAME\"\n\n WHL=$(find\
498
+ \ dist/deploy/wheels/pantsbuild.pants -type f -name \" pantsbuild.pants-*.whl\" \
475
499
)\n curl -L --fail \\\n -X POST \\\n -H \" Authorization: Bearer ${{ github.token\
476
500
\ }}\" \\\n -H \" Content-Type: application/octet-stream\" \\\n \" ${{\
477
501
\ needs.release_info.outputs.release-asset-upload-url }}?name=$(basename $WHL)\" \
0 commit comments