summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-08-21 22:39:34 -0400
committerJason R. Coombs <jaraco@jaraco.com>2019-08-21 22:39:34 -0400
commit20964edcfd5b35c6006bc6425a5587004ed76eec (patch)
treed2ed31f04d08fc95a5354f48085d5072cc8b365c
parent054ea7dbbaabf257e7c3c6276d889cc178a19340 (diff)
downloadpytest-runner-20964edcfd5b35c6006bc6425a5587004ed76eec.tar.gz
Define passenv in tox release section. Rely on __token__ for default username.
-rw-r--r--.travis.yml5
-rw-r--r--tox.ini4
2 files changed, 4 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 17d0262..6ccac8f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,11 +13,6 @@ jobs:
if: tag IS present
python: *latest_py3
before_script: skip
- env:
- - TWINE_USERNAME=jaraco
- # TWINE_PASSWORD
- - secure: ...
- - TOX_TESTENV_PASSENV="TWINE_USERNAME TWINE_PASSWORD"
script: tox -e release
cache: pip
diff --git a/tox.ini b/tox.ini
index 5f1d1b7..4f3341f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -26,6 +26,10 @@ deps =
pep517>=0.5
twine>=1.13
path.py
+passenv =
+ TWINE_PASSWORD
+setenv =
+ TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
commands =
python -c "import path; path.Path('dist').rmtree_p()"
python -m pep517.build .