Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2023 18:30:25 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 94a9bb31149d - main - math/py-awkward: Add py-awkward 2.3.1
Message-ID:  <202308161830.37GIUPbg023307@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit 94a9bb31149d932bef1a1dd5b86fb5c1709ca48c
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-08-16 18:06:40 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-08-16 18:25:06 +0000

    math/py-awkward: Add py-awkward 2.3.1
    
    Awkward Array is a library for nested, variable-sized data, including
    arbitrary-length lists, records, mixed types, and missing data, using NumPy-like
    idioms.
    
    Arrays are dynamically typed, but operations on them are compiled and fast.
    Their behavior coincides with NumPy when array dimensions are regular and
    generalizes when they're not.
---
 math/Makefile             |  1 +
 math/py-awkward/Makefile  | 36 ++++++++++++++++++++++++++++++++++++
 math/py-awkward/distinfo  |  3 +++
 math/py-awkward/pkg-descr |  7 +++++++
 4 files changed, 47 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 7fea1dcd2f10..3f4a236988a9 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -892,6 +892,7 @@
     SUBDIR += py-arviz
     SUBDIR += py-arybo
     SUBDIR += py-autograd
+    SUBDIR += py-awkward
     SUBDIR += py-baycomp
     SUBDIR += py-bayesian-optimization
     SUBDIR += py-benford_py
diff --git a/math/py-awkward/Makefile b/math/py-awkward/Makefile
new file mode 100644
index 000000000000..1d6bd755e0c0
--- /dev/null
+++ b/math/py-awkward/Makefile
@@ -0,0 +1,36 @@
+PORTNAME=	awkward
+PORTVERSION=	2.3.1
+CATEGORIES=	math python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Manipulate JSON-like data with NumPy-like idioms
+WWW=		https://awkward-array.org/doc/main/ \
+		https://github.com/scikit-hep/awkward
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hatchling>=1.10.0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}awkward-cpp>=21<21_99:math/py-awkward-cpp@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>=1.18.0,1:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30900
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${PY_FLAVOR}
+.endif
+
+.if ${PYTHON_REL} < 31100
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.1.0:devel/py-typing-extensions@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/math/py-awkward/distinfo b/math/py-awkward/distinfo
new file mode 100644
index 000000000000..c171a6dfecce
--- /dev/null
+++ b/math/py-awkward/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1691069900
+SHA256 (awkward-2.3.1.tar.gz) = 34b44e5c46e1e0c2af045ba3fb8f966b6bb7ecff6fb90d16c3c90af82616b791
+SIZE (awkward-2.3.1.tar.gz) = 5065864
diff --git a/math/py-awkward/pkg-descr b/math/py-awkward/pkg-descr
new file mode 100644
index 000000000000..c51304bd8dfc
--- /dev/null
+++ b/math/py-awkward/pkg-descr
@@ -0,0 +1,7 @@
+Awkward Array is a library for nested, variable-sized data, including
+arbitrary-length lists, records, mixed types, and missing data, using NumPy-like
+idioms.
+
+Arrays are dynamically typed, but operations on them are compiled and fast.
+Their behavior coincides with NumPy when array dimensions are regular and
+generalizes when they're not.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308161830.37GIUPbg023307>