aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-08-14 17:44:11 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-08-14 18:37:56 +0000
commitcf5e9659ef7fbaebd172904d3a37446d13eabf28 (patch)
treea270444e565bc791943391dbf00eff7209608555
parent8a17d651bffc6466700a610621856435d40575d3 (diff)
downloadports-cf5e9659ef7fbaebd172904d3a37446d13eabf28.tar.gz
ports-cf5e9659ef7fbaebd172904d3a37446d13eabf28.zip
science/py-dwave-cloud-client: New port: DWave: REST interface to communicate with D-Wave Solver API servers
-rw-r--r--science/Makefile1
-rw-r--r--science/py-dwave-cloud-client/Makefile34
-rw-r--r--science/py-dwave-cloud-client/distinfo3
-rw-r--r--science/py-dwave-cloud-client/pkg-descr9
4 files changed, 47 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 9870cdfd19d0..9cd8bb93c0a2 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -284,6 +284,7 @@
SUBDIR += py-dimod
SUBDIR += py-dipy
SUBDIR += py-dlib
+ SUBDIR += py-dwave-cloud-client
SUBDIR += py-dwave-neal
SUBDIR += py-dwave-networkx
SUBDIR += py-dwave-preprocessing
diff --git a/science/py-dwave-cloud-client/Makefile b/science/py-dwave-cloud-client/Makefile
new file mode 100644
index 000000000000..c6605afda565
--- /dev/null
+++ b/science/py-dwave-cloud-client/Makefile
@@ -0,0 +1,34 @@
+PORTNAME= dwave-cloud-client
+DISTVERSION= 0.4.0
+CATEGORIES= science python www # quantum-computing
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= DWave: REST interface to communicate with D-Wave Solver API servers
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=7:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}dateutil>=2.7:devel/py-dateutil@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}dimod>=0.10.5:science/py-dimod@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}diskcache>=5.2.1:devel/py-diskcache@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}dwave-networkx>=0.8.9:science/py-dwave-networkx@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}homebase>=1.0.0:devel/py-homebase@${PY_FLAVOR} \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}plucky>=0.4.3:devel/py-plucky@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pydantic>=1.7.3:devel/py-pydantic@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>=2.18:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests-mock>0:www/py-requests-mock@${PY_FLAVOR}
+BUILD_DEPENDS= ${PY_DEPENDS}
+RUN_DEPENDS= ${PY_DEPENDS}
+
+USES= python:3.7+
+USE_PYTHON= distutils cython autoplist unittest # 1 test fail, probably due to devel/py-homebase issues
+
+USE_GITHUB= yes
+GH_ACCOUNT= dwavesystems
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+.include <bsd.port.mk>
diff --git a/science/py-dwave-cloud-client/distinfo b/science/py-dwave-cloud-client/distinfo
new file mode 100644
index 000000000000..2027d4f35ea5
--- /dev/null
+++ b/science/py-dwave-cloud-client/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660498468
+SHA256 (dwavesystems-dwave-cloud-client-0.4.0_GH0.tar.gz) = b04da824924df7d9f990615cfa686407c443effaa572ebd744834cacf8ccf93a
+SIZE (dwavesystems-dwave-cloud-client-0.4.0_GH0.tar.gz) = 58149
diff --git a/science/py-dwave-cloud-client/pkg-descr b/science/py-dwave-cloud-client/pkg-descr
new file mode 100644
index 000000000000..53bf6d78d25c
--- /dev/null
+++ b/science/py-dwave-cloud-client/pkg-descr
@@ -0,0 +1,9 @@
+D-Wave Cloud Client is a minimal implementation of the REST interface used to
+communicate with D-Wave Sampler API (SAPI) servers.
+
+SAPI is an application layer built to provide resource discovery, permissions,
+and scheduling for quantum annealing resources at D-Wave Systems. This package
+provides a minimal Python interface to that layer without compromising the
+quality of interactions and workflow.
+
+WWW: https://github.com/dwavesystems/dwave-cloud-client