dev-python/netcdf4-python: Bump to 1.5.5

Closes: https://github.com/gentoo/gentoo/pull/18735
Closes: https://bugs.gentoo.org/612112
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
Jakov Smolic
2020-12-28 17:10:49 +01:00
committed by David Seifert
parent e674ac4eb4
commit 854e2a7b29
4 changed files with 89 additions and 14 deletions

View File

@@ -1 +1,2 @@
DIST netCDF4-1.2.2.tar.gz 679107 BLAKE2B c15ed9332bd8e4bb18c312cd4418add169716ef29b6f5c4b935c880259a6a16c8388ed7c790919bfbbee631e9e96ce4b9a9afaeabb305e4dd32028353e62207d SHA512 e09465d125077e71b8aad4332be844099c7fa29d0ea8f1dd0887f7a5e849ab778361026323466b1d4897bc3d8f8be1818cfa5f426773c765ee9c5f3728ff3da3
DIST netCDF4-1.5.5.tar.gz 793676 BLAKE2B 15783e359ed65062464874de24b3fabf07c5666f54f979cb4abd5429cb1668df9dc5aee6d96fb171f597b670ac87ac15400549659c82754da60dc9b00ab734cd SHA512 da6ead22ca60900468fbefdb5d1e9486555e73cf4d99096227404094e94cd4d0488320fe4eb2b7944e1183c39817d9e593065297f921016811b7dc6eabb918ef

View File

@@ -0,0 +1,33 @@
# tst_diskless.py fails and tst_dap.py requires network
--- a/test/run_all.py
+++ b/test/run_all.py
@@ -16,9 +16,6 @@ if python3:
else:
test_files.remove('tst_unicode3.py')
sys.stdout.write('not running tst_unicode3.py ...\n')
-if __netcdf4libversion__ < '4.2.1' or __has_parallel4_support__ or __has_pnetcdf_support__:
- test_files.remove('tst_diskless.py')
- sys.stdout.write('not running tst_diskless.py ...\n')
if not __has_nc_inq_path__:
test_files.remove('tst_filepath.py')
sys.stdout.write('not running tst_filepath.py ...\n')
@@ -29,14 +26,11 @@ if not __has_cdf5_format__ or struct.calcsize("P") < 8:
test_files.remove('tst_cdf5.py')
sys.stdout.write('not running tst_cdf5.py ...\n')
-# Don't run tests that require network connectivity
-if os.getenv('NO_NET'):
- test_files.remove('tst_dap.py');
- sys.stdout.write('not running tst_dap.py ...\n')
-else:
- # run opendap test first (issue #856).
- test_files.remove('tst_dap.py')
- test_files.insert(0,'tst_dap.py')
+test_files.remove('tst_diskless.py')
+sys.stdout.write('not running tst_diskless.py ...\n')
+
+test_files.remove('tst_dap.py');
+sys.stdout.write('not running tst_dap.py ...\n')
# Build the test suite from the tests found in the test files.
testsuite = unittest.TestSuite()

View File

@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>sci@gentoo.org</email>
<name>Gentoo Science Project</name>
</maintainer>
<longdescription>
netcdf4-python is a Python interface to the netCDF C library.
netCDF version 4 can read and write files in both the new netCDF 4
and the old netCDF 3 format, and can create files that are readable
by HDF5 clients. The API modelled after Scientific.IO.NetCDF, and
should be familiar to users of that module.
</longdescription>
<upstream>
<remote-id type="pypi">netCDF4</remote-id>
</upstream>
<maintainer type="project">
<email>sci@gentoo.org</email>
<name>Gentoo Science Project</name>
</maintainer>
<longdescription>
netcdf4-python is a Python interface to the netCDF C library.
netCDF version 4 can read and write files in both the new netCDF 4
and the old netCDF 3 format, and can create files that are readable
by HDF5 clients. The API modelled after Scientific.IO.NetCDF, and
should be familiar to users of that module.
</longdescription>
<upstream>
<remote-id type="pypi">netCDF4</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,41 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS=bdepend
PYTHON_COMPAT=( python3_{6..9} )
inherit distutils-r1 optfeature
MY_PN="netCDF4"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Python/numpy interface to the netCDF C library"
HOMEPAGE="https://unidata.github.io/netcdf4-python/"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
RDEPEND="
dev-python/cftime[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
sci-libs/hdf5
sci-libs/netcdf:=[hdf5]"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}"/${P}-tests.patch )
S="${WORKDIR}"/${MY_P}
python_test() {
cd test || die
"${EPYTHON}" run_all.py || die
}
pkg_postinst() {
optfeature "HDF4 support" sci-libs/hdf sci-libs/netcdf[hdf]
optfeature "MPI parallel IO support" sci-libs/hdf5[mpi] sci-libs/netcdf[mpi]
optfeature "OPeNDAP support" net-misc/curl sci-libs/netcdf[dap]
}