This file is here for the benefit of the package author, who can never remember what all the steps are to release this to PyPI and GitHub.
- Push a tag in the format
vX.Y.Z
- Done.
- Replace the
{{VERSION_PLACEHOLDER}}
placeholder insetup.py
with a manually incremented version number. - Run
python setup.py sdist
. - Run
pip install twine
if it's not already installed. - Run
twine check dist/django-csp-reports-VERSION*
- Run
twine upload --repository-url https://test.pypi.org/legacy/ dist/django-csp-reports-VERSION*
- Check that that worked.
- Run
twine upload dist/django-csp-reports-VERSION*
- Check that that worked.
- Tag the release:
git tag VERSION && git push origin VERSION
- Release it on GitHub, uploading the
.tar.gz
file from thedist/
directory: https://github.com/adamalton/django-csp-reports/releases/new