Skip to content

Migrate test tooling to uv, keeping Python 3.8 - #887

Draft
apophys wants to merge 2 commits into
pyvec:masterfrom
apophys:uv-tooling-migration
Draft

apophys wants to merge 2 commits into
pyvec:masterfrom
apophys:uv-tooling-migration

Conversation

@apophys

@apophys apophys commented Nov 18, 2026

Copy link
Copy Markdown
Member

Moves the test setup from pip install -U -r test-requirements.txt to uv. Python stays on 3.8.

Changes

  • test-requirements.txt is replaced by a pyproject.toml dev dependency group and a uv.lock. .python-version is set to 3.8.
  • The lock has the same versions that the current pip install resolves on Python 3.8: pyvodb 1.0, SQLAlchemy 1.4.54, PyYAML 5.4.1, click 6.7, pytest 8.3.5, jsonschema 4.23.0, etc.
  • Adds version constraints, all resolvable on 3.8:
    • pyvodb==1.0
    • sqlalchemy>=1.4,<2 (pyvodb uses APIs that only exist in 1.x)
    • pyyaml>=5.4,<6 (matches pyvodb's own cap)
    • pytest>=8.3,<9, jsonschema>=4.23,<5, rfc3987>=1.3.8,<2
  • CI keeps the ubuntu-24.04 runner. It now uses astral-sh/setup-uv and runs uv run --locked pytest -v.
  • meta.yaml ignores pyproject.toml, uv.lock and .python-version instead of test-requirements.txt.

Notes

pyvodb 1.0 (last released in 2019) caps PyYAML below 6, and those versions don't build on newer Pythons. Moving past 3.8 would need forcing newer PyYAML and click over pyvodb's caps, or a new pyvodb release.

To run the tests locally: uv run pytest

🤖 Generated with Claude Code

apophys and others added 2 commits November 19, 2026 00:43
Replace test-requirements.txt with a pyproject.toml dev dependency group
and a uv.lock. The lock reproduces exactly the versions that
`pip install -U -r test-requirements.txt` resolved on Python 3.8.

Add version constraints: pyvodb==1.0, plus bounds for SQLAlchemy (<2),
PyYAML (<6), pytest, jsonschema and rfc3987 that match pyvodb 1.0's caps
and stay resolvable on Python 3.8.

CI now runs `uv run --locked pytest -v`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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