summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-12-01 09:48:50 -0500
committerGitHub <noreply@github.com>2019-12-01 09:48:50 -0500
commite939db3fbef0d9cbb26b76a1a2b77f6b355a8895 (patch)
treee544c4a73d80f032eb9e3d22f355673ffadc8875
parenta8d95686d6d4852c5a119c66a565fcfed353016a (diff)
parent6429e2c54ba8d6cbb2d8d8e7108b91122cb7039a (diff)
downloadpython-setuptools-git-e939db3fbef0d9cbb26b76a1a2b77f6b355a8895.tar.gz
Merge pull request #1926 from pypa/feature/tox-release
Simplified mechanized release process through tox
-rw-r--r--.travis.yml25
-rw-r--r--tox.ini16
2 files changed, 21 insertions, 20 deletions
diff --git a/.travis.yml b/.travis.yml
index 7088d166..bcff8ad9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,8 +14,7 @@ jobs:
env: DISABLE_COVERAGE=1
- python: 3.4
- python: 3.5
- - &default_py
- python: 3.6
+ - python: 3.6
- python: 3.7
- &latest_py3
python: 3.8
@@ -24,26 +23,12 @@ jobs:
- python: 3.8-dev
- <<: *latest_py3
env: TOXENV=docs DISABLE_COVERAGE=1
- - <<: *default_py
- stage: deploy (to PyPI for tagged commits)
+ - <<: *latest_py3
+ stage: deploy
if: tag IS present
install: skip
- script: skip
- after_success: true
- before_deploy:
- - python bootstrap.py
- - "! grep pyc setuptools.egg-info/SOURCES.txt"
- deploy:
- provider: pypi
- on:
- tags: true
- all_branches: true
- user: __token__
- password:
- secure: FSp9KU+pdvWPxBOaxe6BNmcJ9y8259G3/NdTJ00r0qx/xMLpSneGjpuLqoD6BL2JoM6gRwurwakWoH/9Ah+Di7afETjMnL6WJKtDZ+Uu3YLx3ss7/FlhVz6zmVTaDJUzuo9dGr//qLBQTIxVjGYfQelRJyfMAXtrYWdeT/4489E45lMw+86Z/vnSBOxs4lWekeQW5Gem0cDViWu67RRiGkAEvrYVwuImMr2Dyhpv+l/mQGQIS/ezXuAEFToE6+q8VUVe/aK498Qovdc+O4M7OYk1JouFpffZ3tVZ6iWHQFcR11480UdI6VCIcFpPvGC/J8MWUWLjq7YOm0X9jPXgdYMUQLAP4clFgUr2qNoRSKWfuQlNdVVuS2htYcjJ3eEl90FhcIZKp+WVMrypRPOQJ8CBielZEs0dhytRrZSaJC1BNq25O/BPzws8dL8hYtoXsM6I3Zv5cZgdyqyq/eOEMCX7Cetv6do0U41VGEV5UohvyyuwH5l9GCuPREpY3sXayPg8fw7XcPjvvzSVyjcUT/ePW8sfnAyWZnngjweAn6dK8IFGPuSPQdlos78uxeUOvCVUW0xv/0m4lX73yoHdVVdLbu1MJTyibFGec86Bew9JqIcDlhHaIJ9ihZ9Z9tOtvp1cuNyKYE4kvmOtumDDicEw4DseYn2z5sZDTYTBsKY=
- distributions: release
- skip_cleanup: true
- skip_upload_docs: true
+ script: tox -e release
+ after_success: skip
cache: pip
diff --git a/tox.ini b/tox.ini
index 5d439cb3..21ec6cde 100644
--- a/tox.ini
+++ b/tox.ini
@@ -55,3 +55,19 @@ source=
setuptools
omit=
*/_vendor/*
+
+[testenv:release]
+skip_install = True
+deps =
+ wheel
+ twine[keyring]>=1.13
+ path
+passenv =
+ TWINE_PASSWORD
+setenv =
+ TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
+commands =
+ python -m bootstrap
+ python -c "import path; path.Path('dist').rmtree_p()"
+ python setup.py release
+ python -m twine upload dist/*