diff --git a/science/py-dwave-gate/Makefile b/science/py-dwave-gate/Makefile index b94093de6cd5..552fb14841e4 100644 --- a/science/py-dwave-gate/Makefile +++ b/science/py-dwave-gate/Makefile @@ -1,27 +1,31 @@ PORTNAME= dwave-gate -DISTVERSION= 0.3.5 +DISTVERSION= 0.4.0 CATEGORIES= science python # quantum-computing MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= DWave: Gate model library WWW= https://github.com/dwavesystems/dwave-gate LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PY_SETUPTOOLS} \ - ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.24.4:math/py-numpy@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}addict>0:devel/py-addict@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=2:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic2>=2:devel/py-pydantic2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}polars>=1.35:misc/py-polars@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asteval>0:devel/py-asteval@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} USES= python -USE_PYTHON= pep517 cython autoplist pytest +USE_PYTHON= pep517 autoplist pytest TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -# tests as of 0.3.5: 30 passed, 2 errors in 2.52s +# tests as of 0.4.0: 300 passed in 2.18s .include diff --git a/science/py-dwave-gate/distinfo b/science/py-dwave-gate/distinfo index 99cfef23eb8a..7fe53363e695 100644 --- a/science/py-dwave-gate/distinfo +++ b/science/py-dwave-gate/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1780507360 -SHA256 (dwave_gate-0.3.5.tar.gz) = e638af54bc0dc98e212ce35b629a91b2d69c3282fba33db64554f8d6e80fd168 -SIZE (dwave_gate-0.3.5.tar.gz) = 366648 +TIMESTAMP = 1788794377 +SHA256 (dwave_gate-0.4.0.tar.gz) = c9895ecdf03b55cfea1ccaf4bdcf6d730c032543e4013e6e74a2b2ab11ab0a55 +SIZE (dwave_gate-0.4.0.tar.gz) = 104820 diff --git a/science/py-dwave-gate/files/patch-pyproject.toml b/science/py-dwave-gate/files/patch-pyproject.toml index 02f8f28f6143..8edd5b2fa72f 100644 --- a/science/py-dwave-gate/files/patch-pyproject.toml +++ b/science/py-dwave-gate/files/patch-pyproject.toml @@ -1,11 +1,25 @@ ---- pyproject.toml.orig 2025-09-27 18:57:44 UTC +-- Fix PEP 639 license metadata that is not supported by the version of +-- setuptools available in the FreeBSD ports tree (devel/py-setuptools). +-- Use legacy license text declaration instead. + +--- pyproject.toml.orig 2026-09-07 15:23:22 UTC +++ pyproject.toml -@@ -3,7 +3,7 @@ requires = [ - "setuptools>=46.4.0", # PEP-420 support, PEP-517/518 support - "wheel>=0.30.0", # limited python api support - "cython~=3.0", -- "numpy~=2.0", -+ "numpy", +@@ -1,6 +1,7 @@ requires = [ + [build-system] + requires = [ +- "setuptools>=77.0.3", # PEP 639 ++ "setuptools>=46.4.0", ++ "wheel>=0.30.0", ] build-backend = "setuptools.build_meta" +@@ -13,8 +14,7 @@ readme = {file = "README.rst", content-type = "text/x- + {name = "D-Wave", email = "tools@dwavesys.com"}, + ] + readme = {file = "README.rst", content-type = "text/x-rst"} +-license = "Apache-2.0" +-license-files = ["LICEN[CS]E*"] ++license = {text = "Apache-2.0"} + classifiers = [ + "Operating System :: OS Independent", + "Programming Language :: Python :: 3 :: Only",