Simple command to release your Python project to PyPI.
PyRelease implements the following release flow:
- update setup.py version
git tag -a
git push
For the upload flow:
python setup.py sdist bdist_wheel
twine upload
$ pip install 'pyreleaser >= 0.5.1'
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]