-
Notifications
You must be signed in to change notification settings - Fork 107
How to release
Birgit Schachler edited this page Mar 13, 2018
·
16 revisions
This is a guide on how to publish and ship a new release of the windpowerlib.
- Check
setup.py
- Version correct?
- Version of depending packages: Are lower and upper limits correct? Are new versions included?
- Update version number in
__init__
file - Make sure desired changes (PRs) are merged to
dev
- Check docs
-
Build docs locally
sphinx-build -b html path/to/doc/ output/path/
-
Remove errors and warnings as far as possible
-
- What's new
- Set release date in "What's new"
- Make sure list of changes, bug fixes and new features is complete. Consider to scan issues attached to the milestone that were closed.
- Merge
dev
tomaster
- Create a release tag on
master
. - Pull master to your local repository and check if the new tag is there.
- Release via PyPI (this link may be helpful).
- The upload requires a
~/.pypirc
file with your PyPI credentials. - Make sure you are in
master
branch. - Use
python3 setup.py register sdist upload
to register and upload package to PyPI.
- The upload requires a
- Set version for next release in setup.py and
__init__
file ofdev
- Create "What's new" file for next version
- Celebrate! 🎆 🍾 👏