Skip to content

Comments

Modernise build tooling: switch to uv#35

Merged
rnorth merged 3 commits intomasterfrom
modernise-uv
Feb 20, 2026
Merged

Modernise build tooling: switch to uv#35
rnorth merged 3 commits intomasterfrom
modernise-uv

Conversation

@rnorth
Copy link
Owner

@rnorth rnorth commented Feb 20, 2026

Summary

  • Replace setup.py/setup.cfg/requirements.txt with a declarative pyproject.toml (setuptools + setuptools-scm)
  • Add uv to .mise.toml managed tools; remove manual venv configuration
  • Update CI workflow (python-package.yml) to use astral-sh/setup-uv, uv sync --dev, uv run flake8/pytest
  • Update publish workflow (python-publish.yml) to use uv build + uv publish with OIDC trusted publishers (removes PYPI_USERNAME/PYPI_PASSWORD secrets)
  • Update AGENTS.md setup/test instructions for uv

Notes

  • You'll need to configure a trusted publisher on PyPI for the publish workflow (one-time setup after this merges)
  • uv.lock is gitignored — this is a library, not an application

Test Plan

  • uv sync --dev installs successfully
  • uv run pytest tests/ — 27 passed, 1 skipped
  • uv build — produces sdist + wheel with no warnings

🤖 Generated with Claude Code

rnorth and others added 3 commits February 20, 2026 13:58
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Replace setup.py/setup.cfg/requirements.txt with pyproject.toml
- Add uv to .mise.toml managed tools, remove manual venv config
- Update CI workflow to use astral-sh/setup-uv and uv commands
- Update publish workflow to use uv build/publish with OIDC trusted publishers
- Add AGENTS.md with updated setup/test instructions
- Add uv.lock to .gitignore (library, not application)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Switch from [project.optional-dependencies] to [dependency-groups]
  so that `uv sync --dev` correctly installs dev dependencies
- Replace flake8 with ruff in the CI workflow
- Remove dead `found_block` variables in resolver.py caught by ruff

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rnorth rnorth merged commit 289c5d7 into master Feb 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant