From 9dd9db7885fb30391d0a5f9fae4c9c3755852f69 Mon Sep 17 00:00:00 2001 From: Fotis Tsamis Date: Tue, 16 Jun 2020 18:30:33 +0300 Subject: [PATCH] Fix PyPi deploy on Travis CI Windows jobs. --- .travis.yml | 3 --- travis/deploy.sh | 10 +++++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 394ce2e..de7368a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,9 +29,6 @@ jobs: - os: windows language: shell install: - - choco install python --version=3.8.0 - - export PATH="/c/Python38:/c/Python38/Scripts:$PATH" - - python -m pip install twine - choco install pyenv-win - export PATH="C:\Users\travis\.pyenv\pyenv-win\bin:C:\Users\travis\.pyenv\pyenv-win\shims:$PATH" - pyenv install -q 3.6.8-amd64 diff --git a/travis/deploy.sh b/travis/deploy.sh index 6ac5d26..043c486 100644 --- a/travis/deploy.sh +++ b/travis/deploy.sh @@ -1,6 +1,6 @@ -#!/bin/bash -twine upload \ - --username "${PYPI_USER:-__token__}" \ - --password "$PYPI_PASSWORD" \ - ./dist/* +pyenv global 3.8.0-amd64 +pyenv exec python -m pip install -U pip +pyenv exec python -m pip install twine +pyenv exec python -m twine --version +pyenv exec python -m twine upload --username "${PYPI_USER:-__token__}" --password "$PYPI_PASSWORD" dist/*