Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PyPi deploy on Travis CI Windows jobs #8

Merged
merged 1 commit into from
Jun 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions travis/deploy.sh
Original file line number Diff line number Diff line change
@@ -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/*