Skip to content

Latest commit

 

History

History
71 lines (45 loc) · 1.06 KB

File metadata and controls

71 lines (45 loc) · 1.06 KB

Quick Publish Guide

Prerequisites

pip install hatch

Publish to PyPI

  1. Update version in pyproject.toml:

    version = "0.1.0"  # Update this
  2. Build the package:

    cd python-sdk
    hatch build
  3. Publish to PyPI:

    hatch publish

    When prompted:

  4. Verify:

    pip install bosbase

Using Environment Variables

export HATCH_INDEX_USER=__token__
export HATCH_INDEX_AUTH=your-pypi-api-token
hatch publish

Test on TestPyPI First

hatch publish --repo testpypi
# Then test: pip install --index-url https://test.pypi.org/simple/ bosbase

For 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'