git: 6eede898b936 - main - devel/py-archspec: New port: Library to query system architecture

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 20 Jun 2023 06:31:25 UTC
The branch main has been updated by yuri:

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

commit 6eede898b9367403fa70f3891972680eee8d3f34
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-06-20 06:02:26 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-06-20 06:31:20 +0000

    devel/py-archspec: New port: Library to query system architecture
---
 devel/Makefile              |  1 +
 devel/py-archspec/Makefile  | 23 +++++++++++++++++++++++
 devel/py-archspec/distinfo  |  3 +++
 devel/py-archspec/pkg-descr |  7 +++++++
 4 files changed, 34 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index a589983ef041..61cf65eb9f0f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4219,6 +4219,7 @@
     SUBDIR += py-apptools
     SUBDIR += py-apscheduler
     SUBDIR += py-archinfo
+    SUBDIR += py-archspec
     SUBDIR += py-argcomplete
     SUBDIR += py-argh
     SUBDIR += py-argparse
diff --git a/devel/py-archspec/Makefile b/devel/py-archspec/Makefile
new file mode 100644
index 000000000000..b265c2109252
--- /dev/null
+++ b/devel/py-archspec/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	archspec
+DISTVERSION=	0.2.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Library to query system architecture
+WWW=		https://github.com/archspec/archspec
+
+LICENSE=	APACHE20 MIT
+LICENSE_COMB=	dual
+LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE-APACHE
+LICENSE_FILE_MIT=	${WRKSRC}/LICENSE-MIT
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry>0:devel/py-poetry@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	pep517 autoplist pytest
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-archspec/distinfo b/devel/py-archspec/distinfo
new file mode 100644
index 000000000000..b2b33c8606f9
--- /dev/null
+++ b/devel/py-archspec/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1687240757
+SHA256 (archspec-0.2.1.tar.gz) = 0974a8a95831d2d43cce906c5b79a35d5fd2bf9be478b0e3b7d83ccc51ac815e
+SIZE (archspec-0.2.1.tar.gz) = 37082
diff --git a/devel/py-archspec/pkg-descr b/devel/py-archspec/pkg-descr
new file mode 100644
index 000000000000..cbc85a1d5d11
--- /dev/null
+++ b/devel/py-archspec/pkg-descr
@@ -0,0 +1,7 @@
+Archspec aims at providing a standard set of human-understandable labels for
+various aspects of a system architecture like CPU, network fabrics, etc.
+and APIs to detect, query and compare them.
+
+This project grew out of Spack and is currently under active development. At
+present it supports APIs to detect and model compatibility relationships among
+different CPU microarchitectures.