summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2020-12-28 17:10:49 +0100
committerDavid Seifert <soap@gentoo.org>2020-12-28 17:10:49 +0100
commit854e2a7b29c6053477dd63bc76d61d2db2c06858 (patch)
tree80783c601defcada951da99a16a16fa3c48a2407 /dev-python/netcdf4-python/files
parentdev-python/cftime: Time-handling functionality from netcdf4-python (diff)
downloadgentoo-854e2a7b29c6053477dd63bc76d61d2db2c06858.tar.gz
gentoo-854e2a7b29c6053477dd63bc76d61d2db2c06858.tar.bz2
gentoo-854e2a7b29c6053477dd63bc76d61d2db2c06858.zip
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>
Diffstat (limited to 'dev-python/netcdf4-python/files')
-rw-r--r--dev-python/netcdf4-python/files/netcdf4-python-1.5.5-tests.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-python/netcdf4-python/files/netcdf4-python-1.5.5-tests.patch b/dev-python/netcdf4-python/files/netcdf4-python-1.5.5-tests.patch
new file mode 100644
index 000000000000..ff0085c7a1f6
--- /dev/null
+++ b/dev-python/netcdf4-python/files/netcdf4-python-1.5.5-tests.patch
@@ -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()