summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Ganssle <paul@ganssle.io>2019-11-02 17:06:15 -0400
committerPaul Ganssle <paul@ganssle.io>2019-11-02 21:46:36 -0400
commite03f1deb5c2a1db4dd8bac23afd0252ff87de25d (patch)
tree7354513a3819e860df75b4f92160dfd03113e3ea
parent357c62cf9b9ede947e7c955a6bcbe3c611234b09 (diff)
downloaddateutil-git-e03f1deb5c2a1db4dd8bac23afd0252ff87de25d.tar.gz
Add working build and release tox environments.
The build environment was originally broken, and no release environment existed. This allows for the Python dependencies for `release.py` to be satisfied automatically as part of invoking the tox command.
-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}