Getting started
Prerequisites
Section titled “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 - Node.js and npm (for documentation): Install from https://nodejs.org/en/download
Using the template
Section titled “Using the template”- Click the Use this template button on GitHub
- Select Create a new repository
- Clone your new repository
- Run the setup script:
python setup.pyThe script will ask for:
- Package name
- Description
- Author name and email
- GitHub username/organization
- Whether to include documentation
After setup
Section titled “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
Section titled “Development”# Install dependenciesuv sync --all-extras --dev
# Run testsuv run pytest tests/
# Build documentation locallycd docsnpm run dev