Release
CI Workflows
python-ci.yml: test matrix and package smoke checksrelease-artifacts.yml: builds and uploadssdistandwheel, then publishes to PyPI onv*tags
Local Release Validation
source venv/bin/activate
./scripts/package_smoke_test.sh
PYTHONPATH=src python -m pytest
./venv/bin/pip install build twine
./venv/bin/python -m build
./venv/bin/python -m twine check dist/*
PyPI Publish (ClipKIT-style)
You can use a very similar flow to ClipKIT.
source venv/bin/activate
./venv/bin/pip install -U build twine
rm -rf dist build *.egg-info
./venv/bin/python setup.py sdist bdist_wheel
./venv/bin/python -m twine check dist/*
./venv/bin/python -m twine upload dist/* -r pypi
Notes:
Do not use
--universalhere because this package is Python 3.11+ only.A helper script is available at
scripts/publish_pypi.sh.