Skip to content

pynum 2.0 compatibility seems to be down to a single change? #104

@nbpropylon

Description

@nbpropylon
--- a/py_stringmatching/similarity_measure/cython/cython_levenshtein.pyx
+++ b/py_stringmatching/similarity_measure/cython/cython_levenshtein.pyx
@@ -8,7 +8,7 @@ from numpy import int32
 from numpy cimport int32_t

 DTYPE = int
-ctypedef cnp.int_t DTYPE_t
+ctypedef cnp.int32_t DTYPE_t

 @cython.boundscheck(False)
 @cython.wraparound(False)
diff --git a/pyproject.toml b/pyproject.toml
index e3317e9..3980965 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,7 +3,7 @@ requires = [
     "setuptools>=64",
     "wheel",
     "Cython>=0.29",
-    "numpy>=1.7.0,<2.0"
+    "numpy>=1.7.0"
 ]
 build-backend = "setuptools.build_meta"

@@ -41,7 +41,7 @@ classifiers = [
     "Topic :: Software Development :: Libraries",
 ]
 dependencies = [
-    "numpy>=1.7.0,<2.0",
+    "numpy>=1.7.0",
 ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions