pip install hatch-
Update version in
pyproject.toml:version = "0.1.0" # Update this
-
Build the package:
cd python-sdk hatch build -
Publish to PyPI:
hatch publish
When prompted:
- Username:
__token__ - Password: Your PyPI API token (from https://pypi.org/manage/account/token/)
- Username:
-
Verify:
pip install bosbase
export HATCH_INDEX_USER=__token__
export HATCH_INDEX_AUTH=your-pypi-api-token
hatch publishhatch publish --repo testpypi
# Then test: pip install --index-url https://test.pypi.org/simple/ bosbaseFor detailed instructions, see PUBLISHING.md.
Run test cd python-sdk python -m venv .venv source .venv/bin/activate # or .venv\Scripts\activate on Windows pip install -e . pytest pytest
/bin/bash -lc 'cd python-sdk && PYTHONPATH=src python3 -m pytest'