Developers Guide
Information to assist developers working to maintain and improve BatConf
Install dev dependencies
pip install --group=dev --editable .
Install documentation dependencies
pip install --group=docs --editable .
Build the documentation:
> make docs
Release Procedure
Create a new release branch
Update your main branch,
git checkout main & git pullCheckout a release branch
git checkout -b release/vX.Y.Z
Update the version in pyproject.toml
In most cases just remove the
+devsuffix0.1.2+dev -> 0.1.2
Add release notes to the changelog
Change the release date from TBD to the appropriate date.
Rebuild the documentation locally
make docs, and review the new changelog entryCommit the changes
git add pyproject.toml docs/source/changelog.rst & git commitExample commit message:
Release version X.Y.Z Fixes: #{{release ticket number}}
Bump the version and mark it as +dev
Update the version in pyproject.toml from
X.Y.Z->X.Y.Z+devCommit the change:
git add pyproject.toml & git commit -m 'bump version to X.Y.Z+dev'
Open a PR on GitHub, get it reviewed and rebase+merge these 2 commits
Tag the release
update your main branch:
git switch main & git pull & git fetch --all --tagsGet the commit hash for the “release version…” commit, not the “+dev version”:
git logTag the release:
git tag -f release {{commit#}} git tag -f stable & git tag stable {{commit#}} git tag v{{X.Y.Z}} {{commit#}} git push origin release stable v{{X.Y.Z}} --force
Build and Publish to PyPi