summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini16
1 files changed, 14 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 0c61413..3b126f7 100644
--- a/tox.ini
+++ b/tox.ini
@@ -79,10 +79,22 @@ commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_o
python setup.py check -r -s
[testenv:build]
-description = do a build
+description = Build an sdist and bdist
basepython = python3.7
skip_install = true
passenv = *
deps = click >= 7.0
pep517 >= 0.5.0
-commands = python release.py
+commands =
+ python release.py build
+
+[testenv:release]
+description = Sign and upload the built distributions to PyPI
+basepython = python3.7
+skip_install = true
+passenv = *
+deps = click >= 7.0
+ twine >= 2.0.0
+commands =
+ python release.py sign
+ python release.py upload {posargs}