Release versioning convention:
- Major version update (1.0 -> 2.0) when including significantly new functionality, where changes are not compatible with previous versions
- Minor version update (1.0 -> 1.1) when adding new functionality that remain backwards compatible
- Patch version update (1.0 -> 1.0.1) when adding patches that remain backwards compatible
Steps required to make a new release
- Create a new branch named
release_vX.Y.Z
from the master branch
- Merge all changes into the release branch
- Make sure all unit tests and doc tests are passing successfully on the GitLab server
- Make sure all tutorials are working; if necessary update tutorials and copy new html files to the appropriate folder in the ketos docs section.
- Update the change log (
docs/source/versions/changelog.rst
)
- Update the version number in
setup.py
and docs/source/conf.py
- Commit and push changes from step 4 and 5 to the release branch
- Build the documentation:
- Review the documentation
- Create a merge request for the release branch into the master branch (Note: Do not select
Delete source branch
)
- Once this merge request has been reviewed and accepted, upload the new version to PyPI:
python setup.py sdist bdist_wheel
twine upload dist/ketos-X.Y.Z.tar.gz
- Finally, upload the documentation to the docs server: