Developer Guide¶
Rebuild Docs¶
The docs-source folder contains the source code of the documentation site. To rebuild:
# under docs-source/source folder
sphinx-build -b html . ../../docs
# to build without cache, add "-E" switch
sphinx-build -E -b html . ../../docs
Build & Publish the Python Package¶
Follow these steps from the project root (where pyproject.toml lives).
Bump version
Update the version in
bacon/__init__.py:__version__ = "0.1.1"
Build (sdist and wheel)
# from repo root folder python -m pip install --upgrade pip build twine python -m build
Validate artifacts
python -m twine check dist/*
Upload to PyPI (production)
Create a PyPI token and set environment variables (PowerShell):
$env:TWINE_USERNAME="__token__" $env:TWINE_PASSWORD="<your-pypi-token>" python -m twine upload dist/*
Notes
Always rebuild after changing the version.
If re-building, consider cleaning old artifacts:
Remove-Item -Recurse -Force dist, build