From 53fb775d6f64a8b5458c6dc0f3711a9b5dbd6fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Juaristi?= <127882282+juaristi22@users.noreply.github.com> Date: Fri, 28 Aug 2026 14:24:03 +0200 Subject: [PATCH] Floor the uk extra at policyengine-uk>=2.92 for the pension-wealth split (#750) The #755 WAS split ships spines whose corporate_wealth excludes private pension wealth; policyengine-uk 2.92.0 is the first release carrying private_pension_wealth as an explicit capital disregard and corporate_sector_wealth for the shareholding/corporate-land keys. Floor the uk extra there and re-lock (2.89.0 -> 2.92.1) so a national build or calibration on a split dataset can never resolve an engine that drops the column, per the #750 ordering note. Co-Authored-By: Claude Fable 5 --- changelog.d/uk-engine-floor-750.changed.md | 1 + packages/microcosm-build/pyproject.toml | 2 +- uv.lock | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 changelog.d/uk-engine-floor-750.changed.md diff --git a/changelog.d/uk-engine-floor-750.changed.md b/changelog.d/uk-engine-floor-750.changed.md new file mode 100644 index 000000000..ee7f48756 --- /dev/null +++ b/changelog.d/uk-engine-floor-750.changed.md @@ -0,0 +1 @@ +The uk extra floors policyengine-uk at >=2.92, the first release carrying private_pension_wealth and corporate_sector_wealth, so any national build or calibration on a split dataset resolves an engine that knows the column (lock: 2.89.0 -> 2.92.1). diff --git a/packages/microcosm-build/pyproject.toml b/packages/microcosm-build/pyproject.toml index c7e75e361..dec94c00a 100644 --- a/packages/microcosm-build/pyproject.toml +++ b/packages/microcosm-build/pyproject.toml @@ -38,7 +38,7 @@ us = [ # The UK extra adds the rules engine for local metric generation from a # Microcosm UK H5. Target tables remain explicit inputs, and the base package # still does not import policyengine-uk at import time. -uk = ["policyengine-uk>=2.88", "h5py>=3", "tables>=3"] +uk = ["policyengine-uk>=2.92", "h5py>=3", "tables>=3"] [project.scripts] microcosm-export-us-l0-refit-h5 = "microcosm.build.us_runtime.l0_refit_export:main" diff --git a/uv.lock b/uv.lock index 0e1eae873..52f2e5e78 100644 --- a/uv.lock +++ b/uv.lock @@ -712,7 +712,7 @@ requires-dist = [ { name = "microunit", marker = "extra == 'us'", specifier = ">=0.1.0" }, { name = "numpy", specifier = ">=1.26" }, { name = "pandas", specifier = ">=2" }, - { name = "policyengine-uk", marker = "extra == 'uk'", specifier = ">=2.88" }, + { name = "policyengine-uk", marker = "extra == 'uk'", specifier = ">=2.92" }, { name = "policyengine-us", marker = "extra == 'us'", specifier = ">=1.745.0,<2" }, { name = "pyarrow", specifier = ">=15" }, { name = "pyyaml", specifier = ">=6" }, @@ -1391,7 +1391,7 @@ wheels = [ [[package]] name = "policyengine-uk" -version = "2.89.0" +version = "2.92.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "microdf-python" }, @@ -1399,9 +1399,9 @@ dependencies = [ { name = "pydantic" }, { name = "tables" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e4/49/75c80cd9b1145d8cfd5efbdb534aca2c9d5c5722fef3fc8f4887831505ea/policyengine_uk-2.89.0.tar.gz", hash = "sha256:aea49956a350ec35c1e0def7cd28db324b055711ec5ab7f331395dca8d103341", size = 1216776, upload-time = "2026-06-11T13:06:04.826Z" } +sdist = { url = "https://files.pythonhosted.org/packages/55/ad/753fc50a4479d9670cb27b9db3c728bc377d4bbd44464858fec4c1b3df61/policyengine_uk-2.92.1.tar.gz", hash = "sha256:204792cebd1c916c5201f3bfbd1e7cc638bf67cb1aa893ee8456b90853e3f69f", size = 1243396, upload-time = "2026-08-28T12:05:48.065Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/bb/5f/fd32a3f7314b02b3b6a8362d6b2869af5b51569301945c00ee1172e01914/policyengine_uk-2.89.0-py3-none-any.whl", hash = "sha256:72acae45a35a59cf7429bba69363601e624bfd643d50cd74b8d20d325497e9fd", size = 1999087, upload-time = "2026-06-11T13:06:02.819Z" }, + { url = "https://files.pythonhosted.org/packages/36/b9/e52246d4f8ed11fe394de9a0de7ca457c6c01282814b7495612d628d166c/policyengine_uk-2.92.1-py3-none-any.whl", hash = "sha256:056fa8c9e2813094ca3c4761df89047374256a7acf8b88de22ddba0a94deb175", size = 2042832, upload-time = "2026-08-28T12:05:46.243Z" }, ] [[package]]