diff --git a/docs/development.md b/docs/development.md index 8a021a2..2228eeb 100644 --- a/docs/development.md +++ b/docs/development.md @@ -9,6 +9,8 @@ ## 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`. 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. diff --git a/pyproject.toml b/pyproject.toml index fcbc085..6055e90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,9 +21,9 @@ classifiers = [ ] dynamic = ["version"] dependencies = [ - "numpy", + "numpy>=1.26,<3", "scipy", - "shapely>=2.0", + "shapely>=2.0.7,<3", "rtree", "matplotlib", ] @@ -43,6 +43,11 @@ build-backend = "hatchling.build" [tool.hatch.version] path = "inire/__init__.py" + +[tool.hatch.build.targets.wheel] +packages = ["inire"] +exclude = ["/inire/tests"] + [tool.ruff] exclude = [ ".git", diff --git a/uv.lock b/uv.lock index 2da873d..e7869b9 100644 --- a/uv.lock +++ b/uv.lock @@ -193,10 +193,10 @@ dev = [ [package.metadata] requires-dist = [ { name = "matplotlib" }, - { name = "numpy" }, + { name = "numpy", specifier = ">=1.26,<3" }, { name = "rtree" }, { name = "scipy" }, - { name = "shapely", specifier = ">=2.0" }, + { name = "shapely", specifier = ">=2.0.7,<3" }, ] [package.metadata.requires-dev]