Fix wheels upload

This commit is contained in:
Yury Selivanov 2019-10-25 17:03:54 -04:00
parent ef7040d1a2
commit 695a520195
No known key found for this signature in database
GPG Key ID: E6ABA2A46889EBBB
1 changed files with 5 additions and 2 deletions

View File

@ -27,8 +27,11 @@ P="${PYMODULE}-${PACKAGE_VERSION}"
expected_wheels=()
for pyver in ${RELEASE_PYTHON_VERSIONS}; do
pyver="${pyver//./}"
abitag="cp${pyver}-cp${pyver}m"
abitag=$(python -c \
"print('cp{maj}{min}-cp{maj}{min}{s}'.format( \
maj='${pyver}'.split('.')[0], \
min='${pyver}'.split('.')[1],
s='m' if tuple('${pyver}'.split('.')) < ('3', '8') else ''))")
for plat in "${release_platforms[@]}"; do
expected_wheels+=("${P}-${abitag}-${plat}.whl")
done