From 023f5cccc2d808f5555ec3c34012c51e45eda9a2 Mon Sep 17 00:00:00 2001 From: Brian Larsen Date: Mon, 23 Nov 2020 08:13:26 -0600 Subject: [PATCH] Pin keyring (#46) * Pin keyring * Quote tokens * Remove quotes from tokens --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3786c2a..6191b1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ jobs: # PyPy 7.3.2 needs macOS >= 10.14 osx_image: xcode10.2 language: shell - # and a windows build + # and a windows build - os: windows language: shell before_install: @@ -44,7 +44,7 @@ script: popd python3 setup.py sdist export UPLOAD_FILES=dist/*.tar.gz - else + else export CIBW_BEFORE_BUILD="pip install --upgrade cython numpy" export CIBW_TEST_REQUIRES="pytest numpy" export CIBW_TEST_COMMAND='pytest {project} && python3 -c "import primesieve;print(primesieve.n_primes(10))"' @@ -54,6 +54,6 @@ script: after_success: # if the release was tagged, upload them to PyPI -- python3 -m pip install twine +- python3 -m pip install twine keyring==21.4.0 - python3 -m twine upload -p $TEST_TOKEN --repository-url https://test.pypi.org/legacy/ --skip-existing --verbose $UPLOAD_FILES; - if [[ $TRAVIS_TAG ]]; then python3 -m twine upload -p $PYPI_TOKEN --skip-existing --verbose $UPLOAD_FILES; fi