Package only runtime code in wheels and set compatible dependency floors
This commit is contained in:
parent
af3ddfbb09
commit
facde64f09
3 changed files with 11 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
4
uv.lock
generated
4
uv.lock
generated
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue