Skip to content
Yuru Shao edited this page Jan 3, 2024 · 7 revisions
  • Commit all of your changes:
  • Update version number (can also be minor or major, the following example bumps to version 1.1.1)
bumpversion --config-file setup.cfg patch | minor | major
  • Install the package again for local development, but with the new version number:
python setup.py develop
  • Run the tests:
tox
  • Merge to master, and pull in changes locally
  • Release on PyPI by uploading both sdist and wheel (need ~/.pipyrc credentials) :
python setup.py sdist upload
python setup.py bdist_wheel upload
  • Test that it pip installs:
virtualenv tempenv
source tempenv/bin/activate
pip install snappass
<try out my_project>
deactivate
  • Push: git push
  • Push tags: git push --tags
  • Check the PyPI listing page to make sure that the README, release notes, and roadmap display properly. If not, copy and paste the RestructuredText into http://rst.ninjs.org/ to find out what broke the formatting.
  • Edit the release notes on GitHub
Clone this wiki locally