pyproject and uv - Release and Deploy
Development
uv pip install --group dev
Release
Make sure all the branches are aligned:
kb.py --checkout
Bump the version - making sure the version number increments by only 1:
uv version --bump patch
# commit
git add pyproject.toml uv.lock
git commit -m "chore: 'pyproject.toml' - bump version"
Tag and publish the project:
kb.py --release
git push
Deploy to Server
Windows:
# copy 'kb-deploy.py' to the local folder
uv run .\kb-deploy.py --package kb-navigator-connector --version 0.1.87 --pypi https://pypi.kbsoftware.co.uk/kb/dev/+simple/
Deploy to Docker
cd ~/dev/module/podman-projects/kbsoftware_couk/
kb-deploy.py --package kb-kbsoftware-couk --version 0.1.81 --pypi http://salt.kb.vpn/kb/dev/+simple/
Push to the Digital Ocean repository:
docker push registry.digitalocean.com/kbsoftware/package/kb-kbsoftware-couk