git: b4c44944055c - main - science/py-dwave-preprocessing: New port: DWave: Preprocessing tools to aid in solving binary quadratic models

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 14 Aug 2022 18:37:59 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b4c44944055c3af8e8510e9f1c20c334c47c9cf5

commit b4c44944055c3af8e8510e9f1c20c334c47c9cf5
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-14 16:29:28 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-14 18:37:54 +0000

    science/py-dwave-preprocessing: New port: DWave: Preprocessing tools to aid in solving binary quadratic models
---
 science/Makefile                         |  1 +
 science/py-dwave-preprocessing/Makefile  | 32 ++++++++++++++++++++++++++++++++
 science/py-dwave-preprocessing/distinfo  |  3 +++
 science/py-dwave-preprocessing/pkg-descr |  4 ++++
 4 files changed, 40 insertions(+)

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