Repository navigation
Move test tooling to uv and Python 3.14; validate locally instead of via pyvodb - #887
Merged
Merged
Conversation
apophys
marked this pull request as ready for review
November 19, 2026 21:00
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
force-pushed
the
uv-tooling-migration
branch
from
November 19, 2026 21:12
e47c888 to
4a2789b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the test setup from
pip install -r test-requirements.txtto 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<3build 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
pyproject.tomldev group +uv.lock, Python 3.14. CI runsuv run --locked pytestonubuntu-latest(theubuntu-24.04pin was only for Python 3.8), withactions/checkout@v7(Node 24) replacing the deprecated@v2.python-dateutilis 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.yamltightened to what the consumer, pyvocz, reads unconditionally: seriesdescriptionandorganizer-info; eventstart; citynameandlocation; a location'slatitude/longitude;series.yamlin each series directory.tests/test_references.pycovers what a schema can't express:meta.yamlversion 2, venue slugs unique across cities, event and seriescityand eventvenueresolve, rrules parse, at least one event exists. Each rule has a broken-copy test proving it fails.tests/test_load.pyremoved; its event-count check lives intest_references.py.Notes
ostrava-pyvo2023-08) pass, even though pyvocz'sYYYY-MMURL slug makes the event page 404; that is a consumer-side issue, and a test pins that no uniqueness rule is added.ubuntu-latestwith this setup.Run the tests locally with
uv run pytest.🤖 Generated with Claude Code