git: ee99418086d7 - main - science/py-dwavebinarycsp: New port: DWave: Map CSP with binary variables to binary quadratic models
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Aug 2022 23:48:56 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=ee99418086d76768347fa8699fd32792b9fccb93 commit ee99418086d76768347fa8699fd32792b9fccb93 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-08-15 23:48:12 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-08-15 23:48:53 +0000 science/py-dwavebinarycsp: New port: DWave: Map CSP with binary variables to binary quadratic models --- science/Makefile | 1 + science/py-dwavebinarycsp/Makefile | 29 +++++++++++++++++++++++++++++ science/py-dwavebinarycsp/distinfo | 3 +++ science/py-dwavebinarycsp/pkg-descr | 4 ++++ 4 files changed, 37 insertions(+) diff --git a/science/Makefile b/science/Makefile index 07f14d75a923..1af7a0dfe3f0 100644 --- a/science/Makefile +++ b/science/Makefile @@ -293,6 +293,7 @@ SUBDIR += py-dwave-samplers SUBDIR += py-dwave-system SUBDIR += py-dwave-tabu + SUBDIR += py-dwavebinarycsp SUBDIR += py-eccodes SUBDIR += py-esda SUBDIR += py-fresnel diff --git a/science/py-dwavebinarycsp/Makefile b/science/py-dwavebinarycsp/Makefile new file mode 100644 index 000000000000..71ef3e763058 --- /dev/null +++ b/science/py-dwavebinarycsp/Makefile @@ -0,0 +1,29 @@ +PORTNAME= dwavebinarycsp +DISTVERSION= 0.2.0 +CATEGORIES= science python # quantum-computing +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= DWave: Map CSP with binary variables to binary quadratic models + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dimod>=0.10.17:science/py-dimod@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}networkx>0:math/py-networkx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}penaltymodel>=1.0.0:science/py-penaltymodel@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_DEPENDS} +RUN_DEPENDS= ${PY_DEPENDS} +xTEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}vcrpy>0:devel/py-vcrpy@${PY_FLAVOR} + +USES= python:3.9+ +USE_PYTHON= distutils cython autoplist unittest + +USE_GITHUB= yes +GH_ACCOUNT= dwavesystems + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/science/py-dwavebinarycsp/distinfo b/science/py-dwavebinarycsp/distinfo new file mode 100644 index 000000000000..1969f2877b1a --- /dev/null +++ b/science/py-dwavebinarycsp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1660606505 +SHA256 (dwavesystems-dwavebinarycsp-0.2.0_GH0.tar.gz) = 637a7b8452c7e385c84405b021eb1b95f2450ed8844e76ef7d2e43465383849b +SIZE (dwavesystems-dwavebinarycsp-0.2.0_GH0.tar.gz) = 197915 diff --git a/science/py-dwavebinarycsp/pkg-descr b/science/py-dwavebinarycsp/pkg-descr new file mode 100644 index 000000000000..ffc8572d8620 --- /dev/null +++ b/science/py-dwavebinarycsp/pkg-descr @@ -0,0 +1,4 @@ +dwavebinarycsp is a library to construct a binary quadratic model from a +constraint satisfaction problem with small constraints over binary variables. + +WWW: https://docs.ocean.dwavesys.com/projects/binarycsp/en/latest/