diff --git a/docs/report-contract.md b/docs/report-contract.md index 8d5c16c..e8ef91d 100644 --- a/docs/report-contract.md +++ b/docs/report-contract.md @@ -35,8 +35,9 @@ only after Typst succeeds. Existing output requires `--force`. The command is independent of the caller's working directory. Exit codes are 0 for a published PDF, 1 for data, validation, asset, rendering or -I/O failure, and 2 for invalid invocation. Typst 0.15+, Python 3.11+, PyYAML, -jsonschema, and selected fonts are external dependencies. PDF bytes can vary with +I/O failure, and 2 for invalid invocation. Typst 0.15+ and selected fonts are +runtime dependencies. Python, PyYAML, and jsonschema are test-only dependencies. +PDF bytes can vary with Typst and font versions; record them when historical reproduction matters. ## Required and optional content diff --git a/requirements.in b/requirements.in deleted file mode 100644 index 8136301..0000000 --- a/requirements.in +++ /dev/null @@ -1,3 +0,0 @@ -jsonschema==4.26.0 -rfc3339-validator==0.1.4 -PyYAML==6.0.3 diff --git a/requirements.txt b/requirements.txt index 5ebc28f..e15a37b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,21 +1,21 @@ -# This file was autogenerated by uv via the following command: -# uv pip compile --python-version 3.11 --universal requirements.in -o requirements.txt +# Pinned dependencies for the Python test oracle. +# Update versions here intentionally, then run ./test.sh. attrs==26.1.0 # via # jsonschema # referencing jsonschema==4.26.0 - # via -r requirements.in + # direct test dependency jsonschema-specifications==2025.9.1 # via jsonschema pyyaml==6.0.3 - # via -r requirements.in + # direct test dependency referencing==0.37.0 # via # jsonschema # jsonschema-specifications rfc3339-validator==0.1.4 - # via -r requirements.in + # direct test dependency rpds-py==2026.6.3 # via # jsonschema diff --git a/tests/support_validation.py b/tests/support_validation.py index 1cd1ff7..a7d3af0 100644 --- a/tests/support_validation.py +++ b/tests/support_validation.py @@ -11,7 +11,7 @@ try: from jsonschema import Draft202012Validator, FormatChecker import yaml except ImportError: - raise SystemExit("Install validation dependencies with: python -m pip install -r requirements.txt") + raise SystemExit("Prepare test dependencies with: ./test.sh") SCHEMA = json.loads((Path(__file__).resolve().parents[1] / "schema/report.schema.json").read_text()) Draft202012Validator.check_schema(SCHEMA)