Skip to content

Commit

Permalink
Merge pull request #32 from pypa/feature/automated-releases
Browse files Browse the repository at this point in the history
Automatically cut releases from tagged commits
  • Loading branch information
jaraco authored Dec 17, 2018
2 parents a934966 + c954f58 commit 1159568
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 6 deletions.
38 changes: 32 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
dist: xenial
sudo: false
language: python

python:
- "3.6"
- "3.5"
- "3.4"
- "2.7"
install: pip install tox
script: tox -e py
- &latest_py3 3.6
- 3.5
- 3.4
- 2.7

env:
- TOXENV=python

jobs:
fast_finish: True
include:
- stage: deploy
if: tag IS present
python: *latest_py3
before_script: skip
env:
- TWINE_USERNAME=jaraco
# TWINE_PASSWORD
- secure: g3w+/zzPCeLzZFdDVUj9+bsThzbRyHfVZpoR9Nh1LR7C9CHun6URtplfRl2dp1XHY3pc8YvhiiIllOKuX/5AQRnVhl3eDsAtTcCs4VaAwxF/6MLqnO5rAAviAS8e3O8aW6a9V+5YjSlbWCahfSU+lImf8BTSqIRfvgJNH5cFhDgzPlJociGq9uDQLmNkXVxNoPwAOu6QhpQg68uHs6WvdMBGxHPIQ4cu8l5bUps+6XG0ZMLDKSOjpHFqDO4qih4V8PB8f518UO5hejaaaxV0oOo5hazRtru+Q0xUMVdvVo1egAuU96CZmF6iusNz+0/RGwcspHLnNuvv/h9MBcc7LYkck4KEZmCvvt3yXUxJch3srHfJNUPcpbfOskdB8AlD+MUVnc8sAsx193b5gvm5+vgGpM1srkOwnsKbvv6viDOCT19nZhBLRf6Q3EsazzWlvmI7LgjniGFbr/fstNGN9MVP1lq4eu2V7n5lrg8liSYFNhukhQAYrZstJJnX2BFkipjM79p0gMJGzLIzXET7T5p1EYYvMJTu7Lh9xFfmNH8UKvNsPOcoMPDVgGTgQEzJAVdCnl6XfuKxg6vIwE4X/US2qZHWmVXmgIH9Xmavub6UqyhGL/LdxvE8pXzM+8Vui3Sd/LqjQh3qEuAFQRIOrSO11xod2UfIXNgQyj2Wp+8=
- TOX_TESTENV_PASSENV="TWINE_USERNAME TWINE_PASSWORD"
- TOXENV=release
script: tox

cache: pip

install:
- pip install tox tox-venv

script: tox
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ pytest-flake8
mock
testpath
pytoml
setuptools>=30
15 changes: 15 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,18 @@ skipsdist = true
[testenv]
deps = -rdev-requirements.txt
commands = pytest []

[testenv:release]
skip_install = True
# workaround for pep517 build support
install_command = python install-pip-master.py {opts} {packages}
deps =
# pull from feature branch for feature
git+https://github.com/pypa/pep517@feature/build-command
# workaround for https://github.com/pypa/twine/issues/423
git+https://github.com/pypa/twine
path.py
commands =
python -c "import path; path.Path('dist').rmtree_p()"
python -m pep517.build .
python -m twine upload dist/*

0 comments on commit 1159568

Please sign in to comment.