aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-08-14 16:29:28 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-08-14 18:37:54 +0000
commitb4c44944055c3af8e8510e9f1c20c334c47c9cf5 (patch)
tree166b06ed807786a639385b205976628385b22bc9
parent7bdb1f2dfe38d7a4cb48b639356d6be3547a3e5e (diff)
downloadports-b4c44944055c3af8e8510e9f1c20c334c47c9cf5.tar.gz
ports-b4c44944055c3af8e8510e9f1c20c334c47c9cf5.zip
science/py-dwave-preprocessing: New port: DWave: Preprocessing tools to aid in solving binary quadratic models
-rw-r--r--science/Makefile1
-rw-r--r--science/py-dwave-preprocessing/Makefile32
-rw-r--r--science/py-dwave-preprocessing/distinfo3
-rw-r--r--science/py-dwave-preprocessing/pkg-descr4
4 files changed, 40 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index f3d473705fe7..9870cdfd19d0 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -286,6 +286,7 @@
SUBDIR += py-dlib
SUBDIR += py-dwave-neal
SUBDIR += py-dwave-networkx
+ SUBDIR += py-dwave-preprocessing
SUBDIR += py-dwave-samplers
SUBDIR += py-dwave-tabu
SUBDIR += py-eccodes
diff --git a/science/py-dwave-preprocessing/Makefile b/science/py-dwave-preprocessing/Makefile
new file mode 100644
index 000000000000..9d4e9d96d53f
--- /dev/null
+++ b/science/py-dwave-preprocessing/Makefile
@@ -0,0 +1,32 @@
+PORTNAME= dwave-preprocessing
+DISTVERSION= 0.4.0
+CATEGORIES= science python # quantum-computing
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= DWave: Preprocessing tools to aid in solving binary quadratic models
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dimod>0:science/py-dimod@${PY_FLAVOR} \
+ ${PYNUMPY}
+BUILD_DEPENDS= ${PY_DEPENDS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0.30.0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PY_DEPENDS}
+xTEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dwave-system>0:science/dwave-system@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}parameterized>0:devel/py-parameterized@${PY_FLAVOR}
+
+USES= python:3.7+
+USE_PYTHON= distutils cython autoplist unittest # 3 tests fail, see https://github.com/dwavesystems/dwave-preprocessing/issues/44
+
+USE_GITHUB= yes
+GH_ACCOUNT= dwavesystems
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_WRKSRC= ${WRKSRC}/tests
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/preprocessing/cyfix_variables${PYTHON_EXT_SUFFIX}.so
+
+.include <bsd.port.mk>
diff --git a/science/py-dwave-preprocessing/distinfo b/science/py-dwave-preprocessing/distinfo
new file mode 100644
index 000000000000..a83055cb266e
--- /dev/null
+++ b/science/py-dwave-preprocessing/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660494073
+SHA256 (dwavesystems-dwave-preprocessing-0.4.0_GH0.tar.gz) = 04ff8937b131af3520d4197f256c4ba68cad0783af131c57ce20083d3f36fad3
+SIZE (dwavesystems-dwave-preprocessing-0.4.0_GH0.tar.gz) = 80577
diff --git a/science/py-dwave-preprocessing/pkg-descr b/science/py-dwave-preprocessing/pkg-descr
new file mode 100644
index 000000000000..602f35493d33
--- /dev/null
+++ b/science/py-dwave-preprocessing/pkg-descr
@@ -0,0 +1,4 @@
+dwave-preprocessing is a package of common preprocessing tools that can aid in
+solving binary quadratic models (BQM).
+
+WWW: https://github.com/dwavesystems/dwave-preprocessing