Please follow these steps to produce a release
Checkout the branch for which the release is to be build. If no branch exists for the new release one must be created. The name must correspond to the Netbox version in the format "netbox/MAJOR.MINOR".
For patch releases the version number in pyproject.toml
and the NetBoxInitializersConfig
needs to be updated. If the release is for a new Netbox version additional changes need to be made in README.md
and Dockerfile
(for tests).
After changing the version numbers and committing them create a new release with the GitHub Web UI. Configure the release to create a new tag with the name vX.Y.Z
.
Install the needed Python packages for the build:
pip install --upgrade poetry
Then run the build for the wheel and source distributions:
poetry build
poetry publish