- Create new branch with name `release/[release_number]
release_number
format:major.minor.subminor
(e.g. 0.1.2) for main versions, ormajor.minor.subminor.patchnumber
if needed, ormajor.minor.subminorbbetaversion
(e.g. 0.1.1b3) for testing release
- Set release number
- in
README.md
, - in
pleque/__init__.py
, - minor release number in
docs/source/conf.py
(e. g. 0.1)
- in
- Create push request to master/develop on GitLab.
- Wait for the approval.
- Tag the commit as
v[release_number]
- Upload the release to pip:
- run
bash
inpleque
home (checkout to master/develop) - Prepare distribution in
dist
directory:python setup.py sdist bdist_wheel
- Upload the distribution to PyPI (in dist/ directory must be only one release):
- Standard distribution:
twine upload dist/*
- Testing distribution:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- Try to download it and install it via
pip
.
- run
- Check whether the documentation on
readthedocs
is build without error. - Breath normally.