Update h5py to 3.7.0.

This commit is contained in:
martin 2022-06-04 13:48:55 +00:00
parent 7d49ec1100
commit 8611a9b811
5 changed files with 13 additions and 33 deletions

View File

@ -1,6 +1,6 @@
COMMENT = pythonic interface to the HDF5 binary data format
MODPY_EGG_VERSION = 3.6.0
MODPY_EGG_VERSION = 3.7.0
DISTNAME = h5py-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = math
@ -35,7 +35,7 @@ LIB_DEPENDS = math/hdf5
TEST_DEPENDS = devel/py-coveralls${MODPY_FLAVOR} \
devel/py-test-cov${MODPY_FLAVOR}
do-test: fake
do-test:
cd ${WRKDIR} && ${MAKE_ENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
${MODPY_BIN} -c 'import h5py; h5py.run_tests()'

View File

@ -1,2 +1,2 @@
SHA256 (h5py-3.6.0.tar.gz) = h1LSgUqSq6TisqWSLSeC0AKRAtmcqvPCAaVmvAtA2yk=
SIZE (h5py-3.6.0.tar.gz) = 384160
SHA256 (h5py-3.7.0.tar.gz) = P883iEODxdpkhGq1EBkHIAJ9ygdo3vNN2Ny2Wdvly/M=
SIZE (h5py-3.7.0.tar.gz) = 392355

View File

@ -1,35 +1,13 @@
Tests require mpi4py with openmpi.
Index: h5py/tests/test_file.py
--- h5py/tests/test_file.py.orig
+++ h5py/tests/test_file.py
@@ -825,6 +825,7 @@ class TestPickle(TestCase):
@@ -875,6 +875,7 @@ class TestPickle(TestCase):
# unittest doesn't work with pytest fixtures (and possibly other features),
# hence no subclassing TestCase
@pytest.mark.mpi
class TestMPI(object):
+ @pytest.mark.skip(reason="fixture 'mpi_file_name' not present")
+@pytest.mark.skip(reason="fixture 'mpi_file_name' not present")
class TestMPI:
def test_mpio(self, mpi_file_name):
""" MPIO driver and options """
from mpi4py import MPI
@@ -833,6 +834,7 @@ class TestMPI(object):
assert f
assert f.driver == 'mpio'
+ @pytest.mark.skip(reason="fixture 'mpi_file_name' not present")
def test_mpio_append(self, mpi_file_name):
""" Testing creation of file with append """
from mpi4py import MPI
@@ -841,6 +843,7 @@ class TestMPI(object):
assert f
assert f.driver == 'mpio'
+ @pytest.mark.skip(reason="fixture 'mpi_file_name' not present")
@pytest.mark.skipif(h5py.version.hdf5_version_tuple < (1, 8, 9),
reason="mpio atomic file operations were added in HDF5 1.8.9+")
def test_mpi_atomic(self, mpi_file_name):
@@ -852,6 +855,7 @@ class TestMPI(object):
f.atomic = True
assert f.atomic
+ @pytest.mark.skip(reason="fixture 'mpi_file_name' not present")
def test_close_multiple_mpio_driver(self, mpi_file_name):
""" MPIO driver and options """
from mpi4py import MPI

View File

@ -3,7 +3,7 @@ Avoid rebuild during make fake.
Index: setup_configure.py
--- setup_configure.py.orig
+++ setup_configure.py
@@ -156,8 +156,8 @@ class BuildConfig:
@@ -178,8 +178,8 @@ class BuildConfig:
}
def changed(self):

View File

@ -86,6 +86,7 @@ lib/python${MODPY_VERSION}/site-packages/h5py/tests/${MODPY_PYCACHE}test_dtype.$
lib/python${MODPY_VERSION}/site-packages/h5py/tests/${MODPY_PYCACHE}test_errors.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/h5py/tests/${MODPY_PYCACHE}test_file.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/h5py/tests/${MODPY_PYCACHE}test_file2.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/h5py/tests/${MODPY_PYCACHE}test_file_alignment.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/h5py/tests/${MODPY_PYCACHE}test_file_image.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/h5py/tests/${MODPY_PYCACHE}test_filters.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/h5py/tests/${MODPY_PYCACHE}test_group.${MODPY_PYC_MAGIC_TAG}pyc
@ -124,6 +125,7 @@ lib/python${MODPY_VERSION}/site-packages/h5py/tests/test_dtype.py
lib/python${MODPY_VERSION}/site-packages/h5py/tests/test_errors.py
lib/python${MODPY_VERSION}/site-packages/h5py/tests/test_file.py
lib/python${MODPY_VERSION}/site-packages/h5py/tests/test_file2.py
lib/python${MODPY_VERSION}/site-packages/h5py/tests/test_file_alignment.py
lib/python${MODPY_VERSION}/site-packages/h5py/tests/test_file_image.py
lib/python${MODPY_VERSION}/site-packages/h5py/tests/test_filters.py
lib/python${MODPY_VERSION}/site-packages/h5py/tests/test_group.py