From 8d7bce297a09f4414e369415b542173a8a9f46c6 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Tue, 22 Jul 2025 17:09:52 -0400 Subject: [PATCH] fix witty deps --- pyproject.toml | 2 +- src/spatial_graph/_graph/graph_base.py | 2 +- src/spatial_graph/_rtree/rtree.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f00ed94..03b1e1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ classifiers = [ "Programming Language :: Python :: 3.13", "Typing :: Typed", ] -dependencies = ["witty>=v0.2.1", "CT3>=3.3.3", "numpy", "setuptools>=75.8.0"] +dependencies = ["witty>=v0.3.0", "CT3>=3.3.3", "numpy", "setuptools>=75.8.0"] [dependency-groups] test = ["pytest>=8.3.5", "pytest-cov>=6.1.1"] diff --git a/src/spatial_graph/_graph/graph_base.py b/src/spatial_graph/_graph/graph_base.py index c9e63ba..9dd44c6 100644 --- a/src/spatial_graph/_graph/graph_base.py +++ b/src/spatial_graph/_graph/graph_base.py @@ -76,7 +76,7 @@ def _compile_graph( edge_attr_dtypes=edge_attr_dtypes, directed=directed, ) - wrapper = witty.compile_module( + wrapper = witty.compile_cython( wrapper_template, source_files=[str(SRC_DIR / "src" / "graph_lite.h")], extra_compile_args=EXTRA_COMPILE_ARGS, diff --git a/src/spatial_graph/_rtree/rtree.py b/src/spatial_graph/_rtree/rtree.py index 25bc38f..d67176b 100644 --- a/src/spatial_graph/_rtree/rtree.py +++ b/src/spatial_graph/_rtree/rtree.py @@ -46,7 +46,7 @@ def _compile_tree( cls: type[RTree], item_dtype: str, coord_dtype: str, dims: int ) -> type: wrapper = _build_wrapper(cls, item_dtype, coord_dtype, dims) - module = witty.compile_module( + module = witty.compile_cython( wrapper, source_files=[ SRC_DIR / "src" / "rtree.h",