Skip to content

Commit

Permalink
Merge pull request #226 from cherrypy/feature/pep517-release
Browse files Browse the repository at this point in the history
Feature/pep517 release
  • Loading branch information
jaraco authored Sep 26, 2019
2 parents 5739b6d + 31150f6 commit c7ca7ff
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
15 changes: 4 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,17 +224,10 @@ jobs:
- <<: *stage_deploy
if: tag IS present
<<: *python_3_7_mixture
install: skip
script: skip
deploy:
provider: pypi
on:
all_branches: true
user: jaraco
password:
secure: RAfz06AINvz7bfij/YhfkAreRqamgxS8a6jSRNxntYhtJke3ZszUbIDag8+n1I+G5XT2LnMhHqPNR7Plc+AeMz7VXTuy+b81Li5kse20NYlPhd7mBVmTUpXtqYQashV5J39F4qkATBLznCOrMEomM07VTXjO/o2hmQuXniab2Uo=
distributions: dists
skip_cleanup: true
install:
- python -m pip install tox tox-venv
env:
TOXENV: release

cache:
pip: true
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[build-system]
requires = ["setuptools>=30.3", "wheel", "setuptools_scm>=1.15"]
requires = ["setuptools>=34.4", "wheel", "setuptools_scm>=1.15"]
build-backend = "setuptools.build_meta"
15 changes: 15 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,18 @@ commands =
python -m setup checkdocs check --metadata --restructuredtext --strict --verbose
python -m twine check .tox/dist/*
python -m setuptools_scm ls

[testenv:release]
skip_install = True
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 .
python -m twine upload dist/*

0 comments on commit c7ca7ff

Please sign in to comment.