diff options
Diffstat (limited to '.ci/travis-release.sh')
-rwxr-xr-x | .ci/travis-release.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.ci/travis-release.sh b/.ci/travis-release.sh index b3cb72b..664708b 100755 --- a/.ci/travis-release.sh +++ b/.ci/travis-release.sh @@ -30,8 +30,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 |