diff --git a/devel/py-thinc/Makefile b/devel/py-thinc/Makefile index 7f1c6f944a0d..4d279031e559 100644 --- a/devel/py-thinc/Makefile +++ b/devel/py-thinc/Makefile @@ -1,43 +1,43 @@ PORTNAME= thinc PORTVERSION= 9.1.1 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= devel python MASTER_SITES= PYPI \ https://github.com/explosion/thinc/releases/download/release-v${PORTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Refreshing functional take on deep learning WWW= https://thinc.ai/ \ https://github.com/explosion/thinc LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blis>=1.0.0<1.4.0:math/py-blis@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}cymem>=2.0.2<2.1.0:devel/py-cymem@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}murmurhash>=0.28.0<1.1.0:devel/py-murmurhash@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}numpy>=0,1<3.0.0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=2.0.0,1<3.0.0,1:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}preshed3>=3.0.2<3.1.0:devel/py-preshed3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blis>=1.0.0<1.4.0:math/py-blis@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}catalogue>=2.0.4<2.1.0:devel/py-catalogue@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}confection0>=0.0.1<1.0.0:devel/py-confection0@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}cymem>=2.0.2<2.1.0:devel/py-cymem@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}murmurhash>=0.28.0<1.1.0:devel/py-murmurhash@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}numpy>=0,1<3.0.0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=2.0.0,1<3.0.0,1:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}packaging>=20.0:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}preshed3>=3.0.2<3.1.0:devel/py-preshed3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pydantic2>=1.7.4<3.0.0:devel/py-pydantic2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}srsly>=2.4.0<3.0.0:devel/py-srsly@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wasabi>=0.8.1<1.2.0:textproc/py-wasabi@${PY_FLAVOR} USES= python USE_PYTHON= autoplist concurrent cython pep517 post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/devel/py-thinc/files/patch-pyproject.toml b/devel/py-thinc/files/patch-pyproject.toml index adb6de99d79e..c4a1cdbe4e22 100644 --- a/devel/py-thinc/files/patch-pyproject.toml +++ b/devel/py-thinc/files/patch-pyproject.toml @@ -1,20 +1,16 @@ --- pyproject.toml.orig 2024-09-12 19:54:11 UTC +++ pyproject.toml -@@ -1,13 +1,13 @@ requires = [ +@@ -1,11 +1,11 @@ requires = [ [build-system] requires = [ "setuptools", - "cython>=0.25,<3.0", + "cython>=3.0", "murmurhash>=1.0.2,<1.1.0", "cymem>=2.0.2,<2.1.0", "preshed>=3.0.2,<3.1.0", - "blis>=1.0.0,<1.1.0", -- "numpy>=2.0.0,<3.0.0; python_version < '3.9'", -- "numpy>=2.0.0,<3.0.0; python_version >= '3.9'", + "blis>=1.0.0,<1.4.0", -+ "numpy>=0,<3.0.0; python_version < '3.9'", -+ "numpy>=0,<3.0.0; python_version >= '3.9'", + "numpy>=2.0.0,<3.0.0; python_version < '3.9'", + "numpy>=2.0.0,<3.0.0; python_version >= '3.9'", ] - build-backend = "setuptools.build_meta" - diff --git a/devel/py-thinc/files/patch-setup.cfg b/devel/py-thinc/files/patch-setup.cfg index 1412ad5a7286..18f29391490f 100644 --- a/devel/py-thinc/files/patch-setup.cfg +++ b/devel/py-thinc/files/patch-setup.cfg @@ -1,30 +1,20 @@ --- setup.cfg.orig 2024-09-12 19:54:21 UTC +++ setup.cfg @@ -28,14 +28,14 @@ setup_requires = include_package_data = true python_requires = >=3.9 setup_requires = - cython>=0.25,<3.0 -- numpy>=2.0.0,<3.0.0 + cython>=3.0 -+ numpy>=0,<3.0.0 + numpy>=2.0.0,<3.0.0 cymem>=2.0.2,<2.1.0 preshed>=3.0.2,<3.1.0 murmurhash>=1.0.2,<1.1.0 - blis>=1.0.0,<1.1.0 + blis>=1.0.0,<1.4.0 install_requires = - blis>=1.0.0,<1.1.0 + blis>=1.0.0,<1.4.0 murmurhash>=1.0.2,<1.1.0 cymem>=2.0.2,<2.1.0 preshed>=3.0.2,<3.1.0 -@@ -44,7 +44,7 @@ install_requires = - catalogue>=2.0.4,<2.1.0 - confection>=0.0.1,<1.0.0 - setuptools -- numpy>=2.0.0,<3.0.0 -+ numpy>=0,<3.0.0 - pydantic>=1.7.4,!=1.8,!=1.8.1,<3.0.0 - packaging>=20.0 -