From 825432b77f128bab9ac98ba37c6b8de84ff94595 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 29 Oct 2017 00:48:56 +0300 Subject: [PATCH] Update with thanks to https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/ --- RELEASING.md | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index af42567..778cdbd 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,28 +1,38 @@ # Release Checklist -* [ ] Get [master to the appropriate code release state](https://github.com/pylast/pylast/compare/master...develop?expand=1). [Travis CI](https://travis-ci.org/pylast/pylast) should be running cleanly for all merges to master. -* [ ] Update version in `pylast/__init__.py` and `setup.py` and commit: +* [ ] Get [master to the appropriate code release state](https://github.com/pylast/pylast/compare/master...develop?expand=1&title=Merge%20develop%20into%20master). [Travis CI](https://travis-ci.org/pylast/pylast) should be running cleanly for all merges to master. +* [ ] Remove `.dev0` suffix from version in `pylast/__init__.py` and `setup.py` and commit: ```bash git checkout master edit pylast/__init__.py setup.py git add pylast/__init__.py setup.py -git commit -m "Release 1.8.0" +git commit -m "Release 2.0.0" ``` * [ ] Tag the last commit with the version number: ```bash -git tag -a 1.8.0 -m "Release 1.8.0" +git tag -a 2.0.0 -m "Release 2.0.0" ``` * [ ] Create a distribution and release on PyPI: ```bash -python setup.py sdist --format=gztar -twine upload dist/pylast-1.8.0.tar.gz +pip install -U pip setuptools wheel twine keyring +rm -rf build +python setup.py sdist --format=gztar bdist_wheel +twine upload -r pypi dist/pylast-2.0.0* ``` * [ ] Check installation: `pip install -U pylast` * [ ] Push: `git push` * [ ] Push tags: `git push --tags` * [ ] Create new GitHub release: https://github.com/pylast/pylast/releases/new - * Tag: Pick existing tag "1.8.0" - * Title: "Release 1.8.0" + * Tag: Pick existing tag "2.0.0" + * Title: "Release 2.0.0" +* [ ] Increment version and append `.dev0` in `pylast/__init__.py` and `setup.py` and commit: +```bash +git checkout master +edit pylast/__init__.py setup.py +git add pylast/__init__.py setup.py +git commit -m "Start new release cycle" +git push +``` * [ ] Update develop branch from master: ```bash git checkout develop