pyreleaser

Standard release flow for Python packages


Keywords
release, packaging, twine, setuptools
License
MIT
Install
pip install pyreleaser==0.5.2

Documentation

PyReleaser

Version License PythonVersions Build

Simple command to release your Python project to PyPI.

Release flow:

  • update setup.py version
  • git tag -a
  • git push

Upload flow:

  • python setup.py sdist bdist_wheel
  • twine upload

Install

$ pip install 'pyreleaser >= 0.5.1'

Usage

Create the release:

$ pyreleaser create 0.5.1
🔸  Update version in setup.py
🔸  Commit the release
[master 1b206aa] Release v0.5.1
 1 file changed, 1 insertion(+), 1 deletion(-)
🔸  Tag the release: v0.5.1

🔔  Don't forget to push with: git push --follow-tags

Upload to PyPI:

$ pyreleaser upload
🔸  Build distributions
🔸  Upload to PyPI
Uploading distributions to https://upload.pypi.org/legacy/
Uploading pyreleaser-0.5.1-py3-none-any.whl
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8.66k/8.66k [00:01<00:00, 6.85kB/s]
Uploading pyreleaser-0.5.1.tar.gz
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7.75k/7.75k [00:00<00:00, 8.02kB/s]