Create, activate, deactivate a virtual environment:
python -m venv venv
.\venv\Scripts\activate
deactivateInstall dependencies:
pip install -r requirements.txtTo update requirements.txt, use https://azurda.github.io/
python -m unittest -vruff formatFormat the code:
ruff formatUpdate the version number in
setup.pyusing semantic versioning.Run the unit tests and check whether all tests pass:
python -m unittestCommit and push the changes to GitHub.
Add a version tag:
git tag v1.2.3 git push --tagClear the
distfolderBuild the library:
python -m buildPublish on PyPi:
twine check dist/* twine upload dist/*