Skip to content

Commit

Permalink
Use build stage for automatic PyPI releases
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed Feb 3, 2018
1 parent 1abcbbb commit 2efb22b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
26 changes: 18 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,21 @@ install:


script: invoke test
deploy:
provider: pypi
user: sloria
on:
tags: true
distributions: "sdist bdist_wheel"
password:
secure: TMeTi5OPl2cYsl5hNP4w1xESd2vQUOy8NgZ0c3KbrVSSeBuUCGOKyYJZNGzD9KDMucCvYFuxCwYiDxP8tB5iT85z3rhdVkzppZTy3/3kXMODjlhMzqTnCdJSOoZZ+D5/Y3Zqb8QxU78NggPutfX4bbUU/wNsVbdODXWHe5y2q3k=
jobs:
include:
- stage: PyPI Release
if: tag IS present
python: "3.6"
env: []
# Override install, and script to no-ops
install: true
script: echo "Releasing to PyPI..."
after_success: true
deploy:
provider: pypi
user: sloria
on:
tags: true
distributions: sdist bdist_wheel
password:
secure: TMeTi5OPl2cYsl5hNP4w1xESd2vQUOy8NgZ0c3KbrVSSeBuUCGOKyYJZNGzD9KDMucCvYFuxCwYiDxP8tB5iT85z3rhdVkzppZTy3/3kXMODjlhMzqTnCdJSOoZZ+D5/Y3Zqb8QxU78NggPutfX4bbUU/wNsVbdODXWHe5y2q3k=
4 changes: 0 additions & 4 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ tox==2.6.0
mock==2.0.0
webtest==2.0.26

# Distribution
wheel
twine==1.8.1

# Web frameworks
Flask>=0.10.1
Django>=1.6.5
Expand Down

0 comments on commit 2efb22b

Please sign in to comment.