Skip to content

Commit

Permalink
Add support for mechanized deployments as implemented in importlib_me…
Browse files Browse the repository at this point in the history
…tadata.
  • Loading branch information
jaraco committed Sep 12, 2018
1 parent e6e4e46 commit 66669b7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
8 changes: 8 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ image: quay.io/python-devs/ci-image
stages:
- test
- codecov
- deploy

qa:
script:
Expand Down Expand Up @@ -34,3 +35,10 @@ codecov:
script:
- codecov -t $CODECOV_TOKEN
when: on_success

release:
stage: deploy
only:
- /^\d+\.\d+(\.\d+)?([abc]\d*)?$/
script:
- tox -e release
10 changes: 0 additions & 10 deletions release.sh

This file was deleted.

14 changes: 12 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,17 @@ exclude =
# to expose the version string and to handle Python 2/3 compatibility.
importlib_resources/__init__.py


[testenv:release]
basepython = python3
whitelist_externals = ./release.sh
commands = ./release.sh
deps =
twine
wheel
setuptools
keyring
passenv =
TWINE_USERNAME
TWINE_PASSWORD
commands =
python setup.py sdist bdist_wheel
python -m twine {posargs} upload dist/*

0 comments on commit 66669b7

Please sign in to comment.