git: 0860a4e8db43 - main - misc/py-SQCommon: New port: SQCommon - skopt common optimizer API

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 12 Nov 2023 04:49:10 UTC
The branch main has been updated by yuri:

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

commit 0860a4e8db4315057714fe85fe1dd0c9ec28b366
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-11-11 21:18:51 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-11-12 04:49:06 +0000

    misc/py-SQCommon: New port: SQCommon - skopt common optimizer API
---
 misc/Makefile              |  1 +
 misc/py-SQCommon/Makefile  | 24 ++++++++++++++++++++++++
 misc/py-SQCommon/distinfo  |  3 +++
 misc/py-SQCommon/pkg-descr |  3 +++
 4 files changed, 31 insertions(+)

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.