Skip to content

How to publish a new version of the package ?

Last tests

  • checkout main and run make all

Local tests

  • update the lock file
1
uv lock --upgrade
  • test locally
1
2
3
4
5
6
7
8
# tag with the version you want
git tag v0.3.0b0
uv build
# delete tag with the version you want
git tag -d v0.3.0b0

# or use make command
make version=v0.3.0b0 build-local

Note

Don't forget to create a release/vX.Y.Z/from-main branch for the last changes

  • install and test
1
2
3
uv venv .venv_release
source .venv_release/bin/activate
uv pip install dist/mechaphlowers-0.3.0b0-py3-none-any.whl

Automatic release tests

Specific tests for release are available and can be triggered through make recipe.

The tests triggered are marked via pytest mark release.

1
make test-release

Check and complete the documentation if needed

1
    make docs

Push to github

1
2
3
4
# tag with the version you want
git tag v0.3.0b0
# push tag
git push --tags
- On github run Action 🚀 Build upload on test-pypi - merge your release branch - If success you can replay the tests on the wheel delpoyed - make a release on github