From 695a520195c7cecc20754cf41e98b4242dc26fcc Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Fri, 25 Oct 2019 17:03:54 -0400 Subject: [PATCH] Fix wheels upload --- .ci/travis-release.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.ci/travis-release.sh b/.ci/travis-release.sh index a267736..8932b4e 100755 --- a/.ci/travis-release.sh +++ b/.ci/travis-release.sh @@ -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