File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,30 +100,12 @@ jobs:
100100 *.whl
101101 - name : Audit wheel
102102 run : |
103- set -euo pipefail
104103 WHEEL_TAG=manylinux_2_28_x86_64
105104 echo "--- Audit binary wheel to ensure it's compliant with ${WHEEL_TAG} standard"
106- raw_wheels=(python-package/dist/*.whl)
107- if [[ ${#raw_wheels[@]} -ne 1 || ! -f "${raw_wheels[0]}" ]]; then
108- echo "error: expected exactly one raw wheel in python-package/dist"
109- exit 1
110- fi
111- raw_wheel="${raw_wheels[0]}"
112- auditwheel repair --only-plat --plat ${WHEEL_TAG} "${raw_wheel}"
113- repaired_wheels=(wheelhouse/*.whl)
114- if [[ ${#repaired_wheels[@]} -ne 1 || ! -f "${repaired_wheels[0]}" ]]; then
115- echo "error: expected exactly one repaired wheel in wheelhouse"
116- exit 1
117- fi
105+ auditwheel repair --only-plat --plat ${WHEEL_TAG} python-package/dist/*.whl
118106 python3 -m wheel tags --python-tag cp312 --abi-tag abi3 --platform ${WHEEL_TAG} --remove \
119- "${repaired_wheels[0]}"
120- tagged_wheels=(wheelhouse/*.whl)
121- if [[ ${#tagged_wheels[@]} -ne 1 || ! -f "${tagged_wheels[0]}" ]]; then
122- echo "error: expected exactly one tagged wheel in wheelhouse"
123- exit 1
124- fi
125- rm -v "${raw_wheel}"
126- mv -v "${tagged_wheels[0]}" python-package/dist/
107+ wheelhouse/*.whl
108+ mv -v wheelhouse/*.whl python-package/dist/
127109 - name : Stash files
128110 run : |
129111 python3 ops/pipeline/manage-artifacts.py upload \
Original file line number Diff line number Diff line change @@ -40,28 +40,10 @@ WHEEL_TAG=manylinux_2_28_${arch}
4040set -x
4141
4242echo " --- Audit binary wheel to ensure it's compliant with ${WHEEL_TAG} standard"
43- raw_wheels=(python-package/dist/* .whl)
44- if [[ ${# raw_wheels[@]} -ne 1 || ! -f " ${raw_wheels[0]} " ]]; then
45- echo " error: expected exactly one raw wheel in python-package/dist"
46- exit 1
47- fi
48- raw_wheel=" ${raw_wheels[0]} "
49-
50- auditwheel repair --only-plat --plat ${WHEEL_TAG} " ${raw_wheel} "
51- repaired_wheels=(wheelhouse/* .whl)
52- if [[ ${# repaired_wheels[@]} -ne 1 || ! -f " ${repaired_wheels[0]} " ]]; then
53- echo " error: expected exactly one repaired wheel in wheelhouse"
54- exit 1
55- fi
43+ auditwheel repair --only-plat --plat ${WHEEL_TAG} python-package/dist/* .whl
5644python3 -m wheel tags --python-tag cp312 --abi-tag abi3 --platform ${WHEEL_TAG} --remove \
57- " ${repaired_wheels[0]} "
58- tagged_wheels=(wheelhouse/* .whl)
59- if [[ ${# tagged_wheels[@]} -ne 1 || ! -f " ${tagged_wheels[0]} " ]]; then
60- echo " error: expected exactly one tagged wheel in wheelhouse"
61- exit 1
62- fi
63- rm -v " ${raw_wheel} "
64- mv -v " ${tagged_wheels[0]} " python-package/dist/
45+ wheelhouse/* .whl
46+ mv -v wheelhouse/* .whl python-package/dist/
6547
6648final_wheels=(python-package/dist/* .whl)
6749if [[ ${# final_wheels[@]} -ne 1 || ! -f " ${final_wheels[0]} " ]]; then
You can’t perform that action at this time.
0 commit comments