diff options
| author | Paul Ganssle <paul@ganssle.io> | 2019-11-02 17:06:15 -0400 |
|---|---|---|
| committer | Paul Ganssle <paul@ganssle.io> | 2019-11-02 21:46:36 -0400 |
| commit | e03f1deb5c2a1db4dd8bac23afd0252ff87de25d (patch) | |
| tree | 7354513a3819e860df75b4f92160dfd03113e3ea | |
| parent | 357c62cf9b9ede947e7c955a6bcbe3c611234b09 (diff) | |
| download | dateutil-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.ini | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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} |
