Package only runtime code in wheels and set compatible dependency floors

This commit is contained in:
Jan Petykiewicz 2026-11-28 20:42:25 -08:00
commit facde64f09
3 changed files with 11 additions and 4 deletions

View file

@ -9,6 +9,8 @@
## Check a change ## Check a change
The wheel contains the runtime package. Repository tests and benchmark fixtures are available in the source distribution. Build both locally with `uv build`. For release smoke checks, import and route from the wheel outside the checkout with NumPy 1.26 and NumPy 2.x on Python 3.11, using Shapely 2.0.7 in both environments. Automatic routing falls back to lattice search on Shapely 2.0.7. Guide and seed search require Shapely 2.1 and a GEOS build with constrained triangulation.
1. From the repository root, run `uv sync` to install development dependencies. Activate `.venv` or prefix commands with `uv run`. 1. From the repository root, run `uv sync` to install development dependencies. Activate `.venv` or prefix commands with `uv run`.
2. Run `python -m pytest` for the correctness suite and `ruff check inire scripts` for lint. Use `python -m pytest -m "not routing_corpus"` for a shorter local check. 2. Run `python -m pytest` for the correctness suite and `ruff check inire scripts` for lint. Use `python -m pytest -m "not routing_corpus"` for a shorter local check.
3. For a cleanup that should preserve paths, capture both revisions and run an [exact parity comparison](routing-diagnostics.md#reproduce-and-compare). Include callbacks or traces if the change affects them. 3. For a cleanup that should preserve paths, capture both revisions and run an [exact parity comparison](routing-diagnostics.md#reproduce-and-compare). Include callbacks or traces if the change affects them.

View file

@ -21,9 +21,9 @@ classifiers = [
] ]
dynamic = ["version"] dynamic = ["version"]
dependencies = [ dependencies = [
"numpy", "numpy>=1.26,<3",
"scipy", "scipy",
"shapely>=2.0", "shapely>=2.0.7,<3",
"rtree", "rtree",
"matplotlib", "matplotlib",
] ]
@ -43,6 +43,11 @@ build-backend = "hatchling.build"
[tool.hatch.version] [tool.hatch.version]
path = "inire/__init__.py" path = "inire/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["inire"]
exclude = ["/inire/tests"]
[tool.ruff] [tool.ruff]
exclude = [ exclude = [
".git", ".git",

4
uv.lock generated
View file

@ -193,10 +193,10 @@ dev = [
[package.metadata] [package.metadata]
requires-dist = [ requires-dist = [
{ name = "matplotlib" }, { name = "matplotlib" },
{ name = "numpy" }, { name = "numpy", specifier = ">=1.26,<3" },
{ name = "rtree" }, { name = "rtree" },
{ name = "scipy" }, { name = "scipy" },
{ name = "shapely", specifier = ">=2.0" }, { name = "shapely", specifier = ">=2.0.7,<3" },
] ]
[package.metadata.requires-dev] [package.metadata.requires-dev]