Skip to content

Support compatible UK model specifiers#424

Open
anth-volk wants to merge 1 commit into
mainfrom
release-bundle-single-country-fallback
Open

Support compatible UK model specifiers#424
anth-volk wants to merge 1 commit into
mainfrom
release-bundle-single-country-fallback

Conversation

@anth-volk
Copy link
Copy Markdown
Contributor

Fixes #423

Summary

Adds additional_compatible_specifiers support to the UK data release-manifest builder so UK manifests can declare compatible policyengine-uk versions beyond the exact build-time model version.

Changes

  • Preserves the existing exact ==<built_model_version> compatibility entry.
  • Appends additional PEP 440 model specifiers when provided.
  • Threads the specifiers through the HF upload/release-manifest operation path.
  • Adds unit coverage for both direct manifest building and upload-generated manifests.

Validation

  • ruff format policyengine_uk_data/utils/release_manifest.py policyengine_uk_data/utils/data_upload.py policyengine_uk_data/tests/test_release_manifest.py
  • python3 -m py_compile policyengine_uk_data/utils/release_manifest.py policyengine_uk_data/utils/data_upload.py policyengine_uk_data/tests/test_release_manifest.py
  • git diff --check

Could not run the focused pytest suite locally: uv run pytest policyengine_uk_data/tests/test_release_manifest.py failed during dependency resolution because torch==2.9.1 has no macOS x86_64 wheel, and a cross-repo pytest fallback failed on missing microimpute.

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.

Support additional compatible UK model specifiers in release manifests

1 participant