- Update the version number
nano miio/version.py
- Generate changelog since the last release
# gem install github_changelog_generator --pre
export CHANGELOG_GITHUB_TOKEN=token
~/.gem/ruby/2.4.0/bin/github_changelog_generator --user rytilahti --project python-miio --since-tag 0.3.0 -o newchanges
-
Copy the changelog block over to CHANGELOG.md and write a short and understandable summary.
-
Commit the changed files
git commit -av
- Tag a release (and add short changelog as a tag commit message)
git tag -a 0.3.1
- Push to git
git push --tags
- Upload new version to pypi
python setup.py sdist bdist_wheel upload
- Click the "Draft a new release" button on github, select the new tag and copy & paste the changelog into the description.