Development¶
Setup¶
python3 -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/python -m pip install -e ".[dev,docs]"
Test¶
.venv/bin/ruff check src examples tests
.venv/bin/python -m pytest -q
Build Docs¶
.venv/bin/mkdocs build
Build Package¶
.venv/bin/python -m build
Publish¶
Publishing is configured for PyPI Trusted Publishing through GitHub Actions.
- Create a PyPI project named
cvnpy. - Add a Trusted Publisher for the GitHub repository and workflow
.github/workflows/publish.yml. - Push a tag matching
v*, for examplev0.1.0.