Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Feb 2023 15:53:50 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: 5660adfb1b4d - main - science/py-cfgrib: Add py-cfgrib 0.9.10.3
Message-ID:  <202302051553.315Froeh028567@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=5660adfb1b4d60a37cb7b19d84c874ed04a066fd

commit 5660adfb1b4d60a37cb7b19d84c874ed04a066fd
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-02-05 15:15:16 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-02-05 15:47:39 +0000

    science/py-cfgrib: Add py-cfgrib 0.9.10.3
    
    cfgrib provides a Python interface to map GRIB files to the Unidata's Common
    Data Model v4 following the CF Conventions. The high level API is designed to
    support a GRIB engine for xarray and it is inspired by netCDF4-python and
    h5netcdf. Low level access and decoding is performed via the ECMWF ecCodes
    library and the eccodes python package.
---
 science/Makefile            |  1 +
 science/py-cfgrib/Makefile  | 35 +++++++++++++++++++++++++++++++++++
 science/py-cfgrib/distinfo  |  3 +++
 science/py-cfgrib/pkg-descr |  5 +++++
 4 files changed, 44 insertions(+)

diff --git a/science/Makefile b/science/Makefile
index fd813b9d88e6..9c50d31c5730 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -305,6 +305,7 @@
     SUBDIR += py-boutdata
     SUBDIR += py-boututils
     SUBDIR += py-cdo
+    SUBDIR += py-cfgrib
     SUBDIR += py-chainer
     SUBDIR += py-chainer-chemistry
     SUBDIR += py-chempy
diff --git a/science/py-cfgrib/Makefile b/science/py-cfgrib/Makefile
new file mode 100644
index 000000000000..fd021aa848ed
--- /dev/null
+++ b/science/py-cfgrib/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	cfgrib
+PORTVERSION=	0.9.10.3
+CATEGORIES=	science python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Map GRIB files to the NetCDF Common Data Model following the CF Convention using ecCodes
+WWW=		https://github.com/ecmwf/cfgrib
+WWW=		https://pypi.org/project/cfgrib/
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}attrs>=19.2:devel/py-attrs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}eccodes>=0.9.8:science/py-eccodes@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dask>=0:devel/py-dask@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}flake8>=0:devel/py-flake8@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scipy>=0:science/py-scipy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}xarray>=0.15:devel/py-xarray@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist concurrent distutils pytest
+
+NO_ARCH=	yes
+
+OPTIONS_DEFINE=	XARRAY
+XARRAY_DESC=	Xarray support
+
+XARRAY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}xarray>=0.15:devel/py-xarray@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/science/py-cfgrib/distinfo b/science/py-cfgrib/distinfo
new file mode 100644
index 000000000000..fdbb45c573e8
--- /dev/null
+++ b/science/py-cfgrib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1675190917
+SHA256 (cfgrib-0.9.10.3.tar.gz) = c10806058c80c48610c201bf05eb292401807806ab9423ab4965ae23dbb6b521
+SIZE (cfgrib-0.9.10.3.tar.gz) = 6398617
diff --git a/science/py-cfgrib/pkg-descr b/science/py-cfgrib/pkg-descr
new file mode 100644
index 000000000000..ecb2037111d8
--- /dev/null
+++ b/science/py-cfgrib/pkg-descr
@@ -0,0 +1,5 @@
+cfgrib provides a Python interface to map GRIB files to the Unidata's Common
+Data Model v4 following the CF Conventions. The high level API is designed to
+support a GRIB engine for xarray and it is inspired by netCDF4-python and
+h5netcdf. Low level access and decoding is performed via the ECMWF ecCodes
+library and the eccodes python package.



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