Getting started#
Prerequisites#
UV: Install from https://docs.astral.sh/uv/getting-started/installation/
Python 3.10+: UV can install Python for you with
uv python install
Using the template#
Click the Use this template button on GitHub
Select Create a new repository
Clone your new repository
Run the setup script:
uv run python setup.py
The script will ask for:
Package name
Description
Author name and email
GitHub username/organization
Whether to include documentation
After setup#
Configure your GitHub repository:
Add PyPI token (for publishing releases)
Create a token at https://pypi.org/manage/account/token/
Go to Settings > Secrets and variables > Actions
Add a new secret named
PYPI_TOKEN
Enable GitHub Pages (if you included documentation)
Go to Settings > Pages
Set Source to “GitHub Actions”
Development#
# Install dependencies
uv sync --all-extras --dev
# Run tests
uv run pytest tests/
# Build documentation locally
uv run jupyter-book build --builder dirhtml docs