Skip to content

Commit

Permalink
directly point twine at configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
nihlaeth committed Feb 25, 2017
1 parent 43db9d7 commit e61e91b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ script: python -m pytest --cov=user_config --cov-report xml -v
after_script: python-codacy-coverage -r coverage.xml
deploy:
- provider: script
script: HOME=. PYPI_REPOSITORY=testpypi sh scripts/pypi_deploy.sh
script: PYPI_REPOSITORY=testpypi sh scripts/pypi_deploy.sh
on:
condition: $TRAVIS_PYTHON_VERSION = "3.6"
skip_cleanup: true
- provider: script
script: HOME=. PYPI_REPOSITORY=pypi sh scripts/pypi_deploy.sh
script: PYPI_REPOSITORY=pypi sh scripts/pypi_deploy.sh
on:
tags: true
condition: $TRAVIS_PYTHON_VERSION = "3.6"
Expand Down
4 changes: 2 additions & 2 deletions scripts/pypi_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e
set +x # double-check that x is unset
python setup.py sdist bdist_wheel --universal
cat > ~/.pypirc << EOF
cat > .pypirc << EOF
[distutils]
index-servers=
pypi
Expand All @@ -18,4 +18,4 @@ repository = https://upload.pypi.org/legacy/
username = nihlaeth
password = ${PYPI_PASSWORD}
EOF
twine upload -r ${PYPI_REPOSITORY} dist/*
twine upload --config-file ./.pypirc -r ${PYPI_REPOSITORY} dist/*

0 comments on commit e61e91b

Please sign in to comment.