diff --git a/devel/py-qutip/Makefile b/devel/py-qutip/Makefile index e0807e36e493..27c68b6f8ec7 100644 --- a/devel/py-qutip/Makefile +++ b/devel/py-qutip/Makefile @@ -1,40 +1,39 @@ PORTNAME= qutip -DISTVERSION= 5.0.4 -PORTREVISION= 4 +DISTVERSION= 5.3.0 CATEGORIES= devel MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Quantum toolbox in python WWW= https://qutip.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>=1.9:science/py-scipy@${PY_FLAVOR} BUILD_DEPENDS= ${PY_DEPENDS} \ ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0.32.0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PY_DEPENDS} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} # the optional graphics/py-mayavi dependency is omitted because it is python-2.7 -only USES= python USE_PYTHON= autoplist cython cython_run pep517 post-install: @${STRIP_CMD} \ ${STAGEDIR}${PYTHON_SITELIBDIR}/qutip/*/*${PYTHON_TAG}.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/qutip/*/*/*${PYTHON_TAG}.so do-test: # 3 tests fail, see https://github.com/qutip/qutip/issues/2190 @${ECHO} "==> Running tests. Please note that tests require X11 display access." @cd ${WRKDIR} && ${SETENV} ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} \ ${PYTHON_CMD} -c "import qutip.testing as qt; qt.run();" .include diff --git a/devel/py-qutip/distinfo b/devel/py-qutip/distinfo index 701f7ea97da8..d6bfa2671b33 100644 --- a/devel/py-qutip/distinfo +++ b/devel/py-qutip/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1726443269 -SHA256 (qutip-5.0.4.tar.gz) = e5ee097cf0ef72e12baf21b32b293f2a7838bd439098286762ef786343549f1c -SIZE (qutip-5.0.4.tar.gz) = 5151997 +TIMESTAMP = 1779741217 +SHA256 (qutip-5.3.0.tar.gz) = ab782e4c8e38c0d5d4221f2ffe4d8fc6887f83e039b3e5776e87dfbb1deee1c3 +SIZE (qutip-5.3.0.tar.gz) = 6897149 diff --git a/devel/py-qutip/files/patch-pyproject.toml b/devel/py-qutip/files/patch-pyproject.toml index 98a9c6b8b75c..1057a23af780 100644 --- a/devel/py-qutip/files/patch-pyproject.toml +++ b/devel/py-qutip/files/patch-pyproject.toml @@ -1,11 +1,18 @@ ---- pyproject.toml.orig 2024-06-27 18:24:19 UTC +--- pyproject.toml.orig 2026-05-22 16:32:42 UTC +++ pyproject.toml -@@ -7,7 +7,7 @@ requires = [ - "cython>=0.29.20,<3.0.0; python_version<='3.9'", - # See https://numpy.org/doc/stable/user/depending_on_numpy.html for - # the recommended way to build against numpy's C API: -- "numpy>=2.0.0", -+ "numpy", - "scipy>=1.9", - ] - build-backend = "setuptools.build_meta" +@@ -1,6 +1,6 @@ requires = [ + [build-system] + requires = [ +- "setuptools>=77.0.3", ++ "setuptools", + "packaging", + "wheel", + "cython>=0.29.20", +@@ -15,7 +15,6 @@ requires-python = ">=3.11" + description = "QuTiP: The Quantum Toolbox in Python" + readme = "README.md" + requires-python = ">=3.11" +-license = "BSD-3-Clause" + keywords = ["quantum", "physics", "dynamics"] + authors = [ + {name = "Alexander Pitchford"}, diff --git a/devel/py-qutip/files/patch-qutip_settings.py b/devel/py-qutip/files/patch-qutip_settings.py new file mode 100644 index 000000000000..9e1925cc263b --- /dev/null +++ b/devel/py-qutip/files/patch-qutip_settings.py @@ -0,0 +1,11 @@ +--- qutip/settings.py.orig 2026-05-25 20:41:05 UTC ++++ qutip/settings.py +@@ -154,6 +154,8 @@ def _find_mkl(): + ext = ".dll" + elif plat in ['linux2', 'linux']: + ext = ".so" ++ elif plat.startswith('freebsd'): ++ ext = ".so" + else: + raise Exception('Unknown platfrom.') + diff --git a/devel/py-qutip/files/patch-setup.cfg b/devel/py-qutip/files/patch-setup.cfg deleted file mode 100644 index 70ab8487bb03..000000000000 --- a/devel/py-qutip/files/patch-setup.cfg +++ /dev/null @@ -1,11 +0,0 @@ ---- setup.cfg.orig 2024-08-03 08:03:37 UTC -+++ setup.cfg -@@ -36,7 +36,7 @@ setup_requires = - scipy>=1.9 - packaging - setup_requires = -- numpy>=2.0.0 -+ numpy - scipy>=1.9 - cython>=0.29.20; python_version>='3.10' - packaging