diff options
| author | Damian Johnson <atagar@torproject.org> | 2017-08-28 09:38:07 -0700 |
|---|---|---|
| committer | Damian Johnson <atagar@torproject.org> | 2017-08-28 09:38:07 -0700 |
| commit | c6756ac8ab0c6a4a060c3b222ad545f5848b61e0 (patch) | |
| tree | 85fe8eac4b5f9958486bbffb0eae6952b913bd53 | |
| parent | ec44c052f910699f0fad63bd7634aeb0950211fb (diff) | |
Add a '--dryrun' argument for sdist
Defaulting to creating dry-runs is creating issues for teor. I just need a way
of sanity checking releases before the real thing so adding a '--dryrun'
argument that defaults to false.
https://trac.torproject.org/projects/tor/ticket/23341
| -rw-r--r-- | setup.py | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -14,14 +14,13 @@ # +- git push --tags # # * Dry-run release on https://pypi.python.org/pypi/stem/ -# |- python setup.py sdist +# |- python setup.py sdist --dryrun # |- gpg --detach-sig --armor dist/stem-dry-run-1.0.0.tar.gz # |- twine upload dist/* # +- Check that https://pypi.python.org/pypi/stem-dry-run/ looks correct, comparing it to https://pypi.python.org/pypi/stem/ # # * Final release # |- rm dist/* -# |- Change the setup.py's DRY_RUN flag to false. # |- python setup.py sdist # |- gpg --detach-sig --armor dist/stem-1.0.0.tar.gz # +- twine upload dist/* @@ -31,9 +30,15 @@ import distutils.core import os +import sys import stem -DRY_RUN = True +if '--dryrun' in sys.argv: + DRY_RUN = True + sys.argv.remove('--dryrun') +else: + DRY_RUN = False + SUMMARY = 'Stem is a Python controller library that allows applications to interact with Tor (https://www.torproject.org/).' DRY_RUN_SUMMARY = 'Ignore this package. This is dry-run release creation to work around PyPI limitations (https://github.com/pypa/packaging-problems/issues/74#issuecomment-260716129).' |
