# Python client library commands

set shell := ["bash", "-c"]

TOP := `git rev-parse --show-toplevel`

default:
    @just --list

# Build Python package
build:
    cd "{{TOP}}/client/python" && uv run --with build python -m build

# Publish to TestPyPI (for testing)
publish-test: build
    cd "{{TOP}}/client/python" && uv run --with twine twine upload --repository testpypi dist/*

# Publish to PyPI
publish: build
    cd "{{TOP}}/client/python" && uv run --with twine twine upload dist/*

# Clean build artifacts
clean:
    rm -rf "{{TOP}}/client/python/dist" "{{TOP}}/client/python/build" "{{TOP}}/client/python/*.egg-info"
