pip install -e '.[dev]'
pre-commit autoupdate
pre-commit install
pre-commit run --all-files
tox
tox
uses by default the installed protoc
compiler. The gh repo test
workflow considers protoc
in various versions (3.20.3
, 21.12
, 25.x
).
Contributors using a macOS workstation shall have a look at tests/tox_mac.sh
to test against protobuf
, protobuf@21
and protobuf@3
bottles.
If dev branch test
workflow succeeds, a new version can be released.
-
Version
Use
bumpver
on dev branches. First, with--dry
, then without :)Breaking changes:
bumpver update --major --dry
Additional features:
bumpver update --minor --dry
Other:
bumpver update --patch --dry
-
Merge
To
main
-
Publish
Publishing to PyPi is done through the creation of a release in the Github UI:
- "Draft a new release"
- Choose the tag created in step 1
- Use it to name the release
- Add the changes to the description field
- "Publish release"
- Check the
release
action
-
Install published package
In a dedicated
venv
, do:pip install proto_topy==<new-version> python -c "import proto_topy as pt; print(pt.__version__, pt.ProtoCollection().compiler_version())"