Bundle hub registration schema in the installed package
Some checks failed
ci / validate-registry (push) Has been cancelled

Load the schema from reuse_surface/hub/ next to store.py and declare
package-data so pip install includes the YAML in site-packages. Fixes
hub register 500 in the container image.
This commit is contained in:
2026-06-15 10:11:41 +02:00
parent ae41395d3e
commit cb7a6e4f2e
3 changed files with 153 additions and 4 deletions

View File

@@ -9,9 +9,7 @@ from typing import Any
import yaml
from jsonschema import Draft202012Validator
from reuse_surface.registry import ROOT
SCHEMA_PATH = ROOT / "schemas" / "hub-registration.schema.yaml"
SCHEMA_PATH = Path(__file__).resolve().parent / "hub-registration.schema.yaml"
def _utc_now() -> str: