aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-11-11 21:18:51 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-11-12 04:49:06 +0000
commit0860a4e8db4315057714fe85fe1dd0c9ec28b366 (patch)
tree1ea3cb98fa9658d66837555e0b82719ab1a16b44
parentbe0ed95ca04ad8947e15309adc823a514e9e8744 (diff)
misc/py-SQCommon: New port: SQCommon - skopt common optimizer API
-rw-r--r--misc/Makefile1
-rw-r--r--misc/py-SQCommon/Makefile24
-rw-r--r--misc/py-SQCommon/distinfo3
-rw-r--r--misc/py-SQCommon/pkg-descr3
4 files changed, 31 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 677c218455ed..37610cf82756 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -394,6 +394,7 @@
SUBDIR += py-PyUserInput
SUBDIR += py-PyWavefront
SUBDIR += py-QSpectrumAnalyzer
+ SUBDIR += py-SQCommon
SUBDIR += py-SimpleSoapy
SUBDIR += py-SoapySDR
SUBDIR += py-alive-progress
diff --git a/misc/py-SQCommon/Makefile b/misc/py-SQCommon/Makefile
new file mode 100644
index 000000000000..d15c4be460a1
--- /dev/null
+++ b/misc/py-SQCommon/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= SQCommon
+DISTVERSION= 0.3.2
+CATEGORIES= misc math python # quantum-computing, chemostry, physics
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= SQCommon - skopt common optimizer API
+WWW= https://qat4chem.lbl.gov/software
+
+LICENSE= BSD3CLAUSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYNUMPY}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-SQCommon/distinfo b/misc/py-SQCommon/distinfo
new file mode 100644
index 000000000000..d073322f661e
--- /dev/null
+++ b/misc/py-SQCommon/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1699736495
+SHA256 (SQCommon-0.3.2.tar.gz) = f970b5bf3e8073e1a1466fce30021da659f519ad1c985779688bd33a65277f40
+SIZE (SQCommon-0.3.2.tar.gz) = 2896
diff --git a/misc/py-SQCommon/pkg-descr b/misc/py-SQCommon/pkg-descr
new file mode 100644
index 000000000000..eaa0d6b97f14
--- /dev/null
+++ b/misc/py-SQCommon/pkg-descr
@@ -0,0 +1,3 @@
+Common classes for a consistent API on top of the minimizers collected in
+skquant.opt. These included result representation, input checking, collection
+of run statistics, etc.