Date: Fri, 15 Nov 2024 10:17:29 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: 5c2e1ccec39a - main - devel/py-cf-xarray: Add py-cf-xarray 0.10.0 Message-ID: <202411151017.4AFAHTgJ059786@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=5c2e1ccec39a94ddd98e11e1afe281e7e6b50c21 commit 5c2e1ccec39a94ddd98e11e1afe281e7e6b50c21 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-11-15 09:53:41 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-11-15 10:17:03 +0000 devel/py-cf-xarray: Add py-cf-xarray 0.10.0 cf-xarray is a lightweight convenience wrapper for using CF attributes on xarray objects. For example you can use .cf.mean("latitude") instead of .mean("lat") if appropriate attributes are set! This allows you to write code that does not require knowledge of specific dimension or coordinate names particular to a dataset. --- devel/Makefile | 1 + devel/py-cf-xarray/Makefile | 27 +++++++++++++++++++++++++++ devel/py-cf-xarray/distinfo | 3 +++ devel/py-cf-xarray/pkg-descr | 7 +++++++ 4 files changed, 38 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c926078c07e6..bd3ccaa632c9 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4603,6 +4603,7 @@ SUBDIR += py-cerberus SUBDIR += py-cereslib SUBDIR += py-certsrv + SUBDIR += py-cf-xarray SUBDIR += py-cffi SUBDIR += py-cfgv SUBDIR += py-cfn-lint diff --git a/devel/py-cf-xarray/Makefile b/devel/py-cf-xarray/Makefile new file mode 100644 index 000000000000..9b2728d74a30 --- /dev/null +++ b/devel/py-cf-xarray/Makefile @@ -0,0 +1,27 @@ +PORTNAME= cf-xarray +PORTVERSION= 0.10.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= cf_xarray-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Convenience wrapper for using CF attributes on xarray objects +WWW= https://cf-xarray.readthedocs.io/en/latest/ \ + https://github.com/xarray-contrib/cf-xarray + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=45:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.2:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}xarray>=2022.03.0:devel/py-xarray@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xarray>=2022.03.0:devel/py-xarray@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-cf-xarray/distinfo b/devel/py-cf-xarray/distinfo new file mode 100644 index 000000000000..ba9ad4a3b72b --- /dev/null +++ b/devel/py-cf-xarray/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1730724820 +SHA256 (cf_xarray-0.10.0.tar.gz) = 7b45319fc315175854c9e701a84ebb795eb4b2764a2d05bd2d9d3ea87d004d18 +SIZE (cf_xarray-0.10.0.tar.gz) = 511869 diff --git a/devel/py-cf-xarray/pkg-descr b/devel/py-cf-xarray/pkg-descr new file mode 100644 index 000000000000..63b5d7851098 --- /dev/null +++ b/devel/py-cf-xarray/pkg-descr @@ -0,0 +1,7 @@ +cf-xarray is a lightweight convenience wrapper for using CF attributes on xarray +objects. + +For example you can use .cf.mean("latitude") instead of .mean("lat") if +appropriate attributes are set! This allows you to write code that does not +require knowledge of specific dimension or coordinate names particular to a +dataset.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411151017.4AFAHTgJ059786>