mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
c67bda8230
* Release 0.4.0.pre1 * update RELEASING.md * Fix release naming from .pre to .dev
1.4 KiB
1.4 KiB
- Set release information
# export PREVIOUS_RELEASE=$(git describe --abbrev=0)
export PREVIOUS_RELEASE=0.3.5 # generate the full changelog since last pyhs100 release
export NEW_RELEASE=0.4.0.pre1
- Update the version number
poetry version $NEW_RELEASE
- Generate changelog
# gem install github_changelog_generator --pre
# https://github.com/github-changelog-generator/github-changelog-generator#github-token
export CHANGELOG_GITHUB_TOKEN=token
github_changelog_generator --base HISTORY.md --user python-kasa --project python-kasa --since-tag $PREVIOUS_RELEASE --future-release $NEW_RELEASE -o CHANGELOG.md
-
Write a short and understandable summary for the release.
-
Commit the changed files
git commit -av
-
Create a PR for the release.
-
Get it merged, fetch the upstream master
git checkout master
git fetch upstream
git rebase upstream/master
- Tag the release (add short changelog as a tag commit message), push the tag to git
git tag -a $NEW_RELEASE
git push upstream $NEW_RELEASE
- Upload new version to pypi
If not done already, create an API key for pypi (https://pypi.org/manage/account/token/) and configure it:
poetry config pypi-token.pypi <token>
To build & release:
poetry build
poetry publish
- Click the "Draft a new release" button on github, select the new tag and copy & paste the changelog into the description.