diff --git a/science/py-scikit-learn/Makefile b/science/py-scikit-learn/Makefile index 810db17ffb2f..5f6b4a043497 100644 --- a/science/py-scikit-learn/Makefile +++ b/science/py-scikit-learn/Makefile @@ -1,36 +1,37 @@ PORTNAME= scikit-learn DISTVERSION= 1.8.0 +PORTREVISION= 1 CATEGORIES= science python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= scikit_learn-${DISTVERSION} MAINTAINER= wen@FreeBSD.org COMMENT= Machine learning algorithms for python WWW= https://scikit-learn.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}joblib>=1.3.0:devel/py-joblib@${PY_FLAVOR} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scipy>=1.10.0:science/py-scipy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}threadpoolctl>=3.2.0:devel/py-threadpoolctl@${PY_FLAVOR} RUN_DEPENDS:= ${BUILD_DEPENDS} BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}meson-python>=0.17.1:devel/meson-python@${PY_FLAVOR} USES= fortran python localbase shebangfix USE_PYTHON= autoplist cython pep517 pytest TEST_ARGS= sklearn TEST_WRKSRC= ${STAGEDIR}${PYTHON_SITELIBDIR} SHEBANG_FILES= sklearn/_build_utils/version.py post-install: # strip binaries @${STRIP_CMD} \ ${STAGEDIR}${PYTHON_SITELIBDIR}/sklearn/*.cpython*.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/sklearn/*/*.cpython*.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/sklearn/*/*/*.cpython*.so .include diff --git a/science/py-scikit-learn/files/patch-pyproject.toml b/science/py-scikit-learn/files/patch-pyproject.toml index 75816c8d0a59..6afd5e2f3c98 100644 --- a/science/py-scikit-learn/files/patch-pyproject.toml +++ b/science/py-scikit-learn/files/patch-pyproject.toml @@ -1,21 +1,23 @@ ---- pyproject.toml.orig 2026-03-01 01:15:33 UTC +--- pyproject.toml.orig 2025-12-09 16:13:35 UTC +++ pyproject.toml @@ -13,8 +13,7 @@ requires-python = ">=3.11" "threadpoolctl>=3.2.0", ] requires-python = ">=3.11" -license = "BSD-3-Clause" -license-files = ["COPYING"] +license = {text="BSD-3-Clause"} classifiers=[ "Intended Audience :: Science/Research", "Intended Audience :: Developers", -@@ -97,7 +96,7 @@ requires = [ +@@ -97,8 +96,8 @@ requires = [ requires = [ "meson-python>=0.17.1,<0.19.0", "cython>=3.1.2,<3.3.0", - "numpy>=2,<2.4.0", +- "scipy>=1.10.0,<1.17.0", + "numpy", - "scipy>=1.10.0,<1.17.0", ++ "scipy>=1.10.0", ] + [tool.pytest.ini_options]