Here is the checklist to run before releasing a new version for mbtrack2:
- Create a new local branch from the merge develop (with all the feature branch intended to be included in the new version).
- Update .rst for the readthedocs documentation
- Book a new zenodo DOI and update readme.md and init.py
- Update the pyproject.toml file with version number, new dependencies and so on.
- Update README.md
- Run formatters and test inside poetry:
poetry env use python
poetry install
- Run the isort formatter:
poetry run isort .
- Run the yapf formatter:
poetry run yapf -ir mbtrack2
- Check that the tests run without errors:
poetry run pytest
- If tests are ok then proceed with build:
poetry build
- Test build on test pypi:
poetry config repositories.test-pypi https://test.pypi.org/legacy/
poetry config http-basic.test-pypi __token__ api_token
poetry publish -r test-pypi
- Install in a clean virtual environment (e.g. google colab) to check that it is ok using:
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple mbtrack2
- Merge to stable with a new tag, make a new release with the changelog.
- Publish on pypi:
poetry config http-basic.pypi __token__ api_token
poetry publish
- Add zip archive of stable to zenodo
- Rebuild docs on the https://app.readthedocs.org/ website