-
Notifications
You must be signed in to change notification settings - Fork 14
How to release
This is quick on how to publish and ship a new release of eDisGo.
- Check
setup.py
- Update version number in conf.py
- Make sure desired changes (PRs) are merged to
dev
- Check docs
- Build docs locally
- Remove errors and warnings as far as possible
- Check HTML build
- 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 issue attached to the milestone that were closed
- Add latest "What's new" to What's new documentation
-
Check the rendering of the README file on the master
python setup.py check -r -s
-
Create a PR from
dev
tomaster
-
Let a reviewer merge it or merge it yourself
-
Create a release tag on
master
. -
Pull master to get the release tag (If you do not see the tag type 'git fetch'.)
-
Release via PyPI (if you don't have permissions for this repo, ask someone who does) 2. Make sure you have the latest versions of setuptools and wheel installed:
python -m pip install --user --upgrade setuptools wheel twine
-
Now run this command from the same directory where setup.py is located:
python setup.py sdist bdist_wheel
-
README - Last check on README file because it will be the first page on PyPi
python -m twine check dist/*
If errors occur fix them now and check again. It is NOT possible to fix them after the release.
-
Run Twine to upload all of the archives under dist to TestPyPI (you need to register at TestPyPI first)
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
-
Before uploading to PyPI you can now test the uploaded package by installing it from TestPyPI and check if everything works correctly (e.g. run an example).
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple eDisGo
-
If everything works as expected you can now upload the new eDisGo version to PyPI.
python -m twine upload dist/*
-
- Set version for next release in setup.py of
dev
- Create "What's new" file for next version
- Celebrate! 🎆 🍾 👏