Skip to content

Move test tooling to uv and Python 3.14; validate locally instead of via pyvodb - #887

Merged
apophys merged 3 commits into
pyvec:masterfrom
apophys:uv-tooling-migration
Nov 19, 2026
Merged

apophys merged 3 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 -r test-requirements.txt to uv on Python 3.14, and replaces the pyvodb dependency with validation that lives in this repository.

Why

pyvodb 1.0 (2019) pinned the tests to Python 3.8 (PyYAML<6, SQLAlchemy<2, a cython<3 build constraint). The tests used it for two things only: walking the directory into a dict and loading it into SQLite as a sanity check.

Changes

  • Tooling: pyproject.toml dev group + uv.lock, Python 3.14. CI runs uv run --locked pytest on ubuntu-latest (the ubuntu-24.04 pin was only for Python 3.8), with actions/checkout@v7 (Node 24) replacing the deprecated @v2.
  • pyvodb removed, along with SQLAlchemy and the PyYAML/Cython pins. PyYAML is now 6.x; python-dateutil is added.
  • tests/loader.py: local directory loader with the same semantics as pyvodb's (ignore list at the top level only, anything else non-YAML is an error).
  • schema.yaml tightened to what the consumer, pyvocz, reads unconditionally: series description and organizer-info; event start; city name and location; a location's latitude/longitude; series.yaml in each series directory.
  • tests/test_references.py covers what a schema can't express: meta.yaml version 2, venue slugs unique across cities, event and series city and event venue resolve, rrules parse, at least one event exists. Each rule has a broken-copy test proving it fails.
  • tests/test_load.py removed; its event-count check lives in test_references.py.

Notes

  • The data is validated as is. Two events in the same month (ostrava-pyvo 2023-08) pass, even though pyvocz's YYYY-MM URL slug makes the event page 404; that is a consumer-side issue, and a test pins that no uniqueness rule is added.
  • No data files changed.
  • CI passes on ubuntu-latest with this setup.

Run the tests locally with uv run pytest.

🤖 Generated with Claude Code

@apophys apophys changed the title Migrate test tooling to uv, keeping Python 3.8 Move test tooling to uv and Python 3.14; validate locally instead of via pyvodb Nov 19, 2026
@apophys
apophys marked this pull request as ready for review November 19, 2026 21:00
apophys and others added 3 commits November 19, 2026 22:10
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Replace test-requirements.txt with a pyproject.toml dev group and a
uv.lock, run on Python 3.14, and run CI with uv on ubuntu-latest (the
ubuntu-24.04 pin was only needed for Python 3.8) and actions/checkout@v7.

pyvodb 1.0 (2019) forced Python 3.8 (PyYAML<6, SQLAlchemy<2, cython<3).
The tests used it only to walk the data directory and to load it into
SQLite, so replace that with a small local loader in tests/loader.py with
the same semantics, and remove test_load.py. requires-python has no upper
bound; .python-version pins 3.14.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The schema now requires what pyvocz (the consumer) reads unconditionally:
series description and organizer-info, event start, city name and
location, a location's latitude and longitude, and series.yaml in each
series directory.

tests/test_references.py checks what a schema cannot express: meta.yaml
version 2, venue slugs unique across cities, event and series cities and
event venues resolve, rrules parse, and at least one event exists. Bad
data is reported, not crashed on. The data is validated as is: two
events in one month (ostrava-pyvo 2023-08) must keep passing.

The data set is loaded once per test session; tests that break it get a
deep copy. Every rule has a broken-copy test that asserts the expected
message and path.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@apophys
apophys force-pushed the uv-tooling-migration branch from e47c888 to 4a2789b Compare November 19, 2026 21:12
@apophys
apophys merged commit 923b1ea into pyvec:master Nov 19, 2026
1 check passed
@apophys
apophys deleted the uv-tooling-migration branch November 19, 2026 21:27
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