Skip to content
Snippets Groups Projects
Commit c6756ac8 authored by Damian Johnson's avatar Damian Johnson
Browse files

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
parent ec44c052
Branches
Tags
No related merge requests found
......@@ -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
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).'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment