From cdf2f46c046e1489c11160dc4e3f8d1dc79f8cc4 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Wed, 11 Nov 2020 17:16:53 -0500 Subject: [PATCH] ci/travis: Attempt to fix pypi upload of arm64 wheel * Remove setting of PYTHON_VERSION environment variable. This variable had non effect and was set to an incorrect value. At the time of this commit python version 3.8.2 was the default. * Explicitly install twine when operating system is Linux * Update deploy-release step to update PATH instead of explicitly referencing the path to twine executable, this will allow the deployment to work on both macOS and Linux * Update after_success step to display version of twine and catch potential issue with deploy-release step. --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d2497bae..d9d6daf5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,8 +24,6 @@ matrix: group: edge dist: focal language: generic - env: - - PYTHON_VERSION=3.8.5 before_cache: # Cleanup to avoid the cache to grow indefinitely as new package versions are released @@ -75,6 +73,8 @@ install: - | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ci install + elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then + pip install twine fi script: @@ -88,12 +88,12 @@ after_success: if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ci after_test fi - pwd && ls dist + pwd && ls dist; PATH=~/.pyenv/versions/${PYTHON_VERSION}/bin/:$PATH && twine --version deploy: # deploy-release - provider: script - script: pwd && ls dist;echo "deploy-release" && ~/.pyenv/versions/${PYTHON_VERSION}/bin/twine upload -u $PYPI_USER -p $PYPI_PASSWORD --skip-existing dist/* + script: pwd && ls dist;echo "deploy-release" && PATH=~/.pyenv/versions/${PYTHON_VERSION}/bin/:$PATH && twine upload -u $PYPI_USER -p $PYPI_PASSWORD --skip-existing dist/* skip_cleanup: true on: repo: ${TRAVIS_REPO_SLUG}