Skip to content

Commit 695a520

Browse files
committed
Fix wheels upload
1 parent ef7040d commit 695a520

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.ci/travis-release.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ P="${PYMODULE}-${PACKAGE_VERSION}"
2727
expected_wheels=()
2828

2929
for pyver in ${RELEASE_PYTHON_VERSIONS}; do
30-
pyver="${pyver//./}"
31-
abitag="cp${pyver}-cp${pyver}m"
30+
abitag=$(python -c \
31+
"print('cp{maj}{min}-cp{maj}{min}{s}'.format( \
32+
maj='${pyver}'.split('.')[0], \
33+
min='${pyver}'.split('.')[1],
34+
s='m' if tuple('${pyver}'.split('.')) < ('3', '8') else ''))")
3235
for plat in "${release_platforms[@]}"; do
3336
expected_wheels+=("${P}-${abitag}-${plat}.whl")
3437
done

0 commit comments

Comments
 (0)