Accepting request 1105322 from home:bnavigator:branches:devel:languages:python:numeric

- Update to 3.9.0
  * This version of h5py requires Python 3.8 or above.
  ## New features
  * New out argument to read_direct_chunk() to allow passing the
    output buffer (PR 2232).
  * The objects from Dataset.asstr() and Dataset.astype() now
    implement the __array__() method (PR 2269). This speeds up
    access for functions that support it, such as np.asarray().
  * Validate key types when creating groups and attributes, giving
    better error messages when invalid types are used (PR 2266).
  ## Deprecations & removals
  * Using Dataset.astype() as a context manager has been removed,
    after being deprecated in h5py 3.6. Read data by slicing the
    returned object instead: dset.astype('f4')[:].
  * Exposing HDF5 functions
  * H5Pget_elink_acc_flags & H5Pset_elink_acc_flags as
    h5py.h5p.PropLAID.get_elink_acc_flags() &
    h5py.h5p.PropLAID.set_elink_acc_flags(): access the external
    link file access traversal flags in a link access property list
    (PR 2244).
  * H5Zregister as h5py.h5z.register_filter(): register an HDF5
    filter (PR 2229).
  ## Bug fixes
  * Group.__contains__ and Group.get now use the default link
    access property list systematically (PR 2244).
  * Removed various calls to the deprecated numpy.product function
    (PR 2242 & PR 2273).
  * Fix the IPython tab-completion integration in IPython 8.12 (PR
    2256).
  * Replacing attributes with AttributeManager.create() now deletes

OBS-URL: https://build.opensuse.org/request/show/1105322
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-h5py?expand=0&rev=44
This commit is contained in:
2023-08-23 10:53:12 +00:00
committed by Git OBS Bridge
parent 41ad5e9964
commit 96f253651e
4 changed files with 65 additions and 16 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6fead82f0c4000cf38d53f9c030780d81bfa0220218aee13b90b7701c937d95f
size 400774

3
h5py-3.9.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e604db6521c1e367c6bd7fad239c847f53cc46646f2d2651372d05ae5e95f817
size 402856

View File

@@ -1,3 +1,50 @@
-------------------------------------------------------------------
Tue Aug 22 18:22:43 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Update to 3.9.0
* This version of h5py requires Python 3.8 or above.
## New features
* New out argument to read_direct_chunk() to allow passing the
output buffer (PR 2232).
* The objects from Dataset.asstr() and Dataset.astype() now
implement the __array__() method (PR 2269). This speeds up
access for functions that support it, such as np.asarray().
* Validate key types when creating groups and attributes, giving
better error messages when invalid types are used (PR 2266).
## Deprecations & removals
* Using Dataset.astype() as a context manager has been removed,
after being deprecated in h5py 3.6. Read data by slicing the
returned object instead: dset.astype('f4')[:].
* Exposing HDF5 functions
* H5Pget_elink_acc_flags & H5Pset_elink_acc_flags as
h5py.h5p.PropLAID.get_elink_acc_flags() &
h5py.h5p.PropLAID.set_elink_acc_flags(): access the external
link file access traversal flags in a link access property list
(PR 2244).
* H5Zregister as h5py.h5z.register_filter(): register an HDF5
filter (PR 2229).
## Bug fixes
* Group.__contains__ and Group.get now use the default link
access property list systematically (PR 2244).
* Removed various calls to the deprecated numpy.product function
(PR 2242 & PR 2273).
* Fix the IPython tab-completion integration in IPython 8.12 (PR
2256).
* Replacing attributes with AttributeManager.create() now deletes
the old attributes before creating the new one, rather than
using a temporary name and renaming the new attribute (PR
2274). This should avoid some confusing bugs affecting
attributes. However, failures creating an attribute are less
likely to leave an existing attribute of the same name in
place. To change an attribute value without changing its shape
or dtype, use modify() instead.
## Building h5py
* When building with Parallel HDF5 support, the version of mpi4py
used on various Python versions is increased to 3.1.1, fixing
building with a newer setuptools (PR 2225).
* Some fixes towards compatibility with the upcoming Cython 3 (PR
2247).
-------------------------------------------------------------------
Thu Feb 16 10:05:30 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@@ -60,16 +60,16 @@
%endif
# /SECTION MPI DEFINITIONS
Name: %{pname}%{?my_suffix}
Version: 3.8.0
Version: 3.9.0
Release: 0
Summary: Python interface to the Hierarchical Data Format library
License: BSD-3-Clause
Group: Development/Libraries/Python
URL: https://github.com/h5py/h5py
Source: https://files.pythonhosted.org/packages/source/h/h5py/h5py-%{version}.tar.gz
BuildRequires: %{python_module Cython >= 0.29}
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module numpy-devel >= 1.14.5}
BuildRequires: %{python_module Cython >= 0.29 with %python-Cython < 1}
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module numpy-devel >= 1.17.3}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pkgconfig}
BuildRequires: %{python_module pytest}
@@ -80,12 +80,13 @@ BuildRequires: hdf5%{?my_suffix}-devel
BuildRequires: python-rpm-macros
%requires_eq hdf5%{?my_suffix}
%requires_eq libhdf5%{?my_suffix}
Requires: python-numpy >= 1.14.5
Requires: python-numpy >= 1.17.3
%if %{with mpi}
BuildRequires: %{mpi_flavor}%{mpi_vers}-devel
BuildRequires: %{python_module mpi4py >= 3.0.2}
BuildRequires: %{python_module mpi4py >= 3.1.1 if %python-base < 3.11}
BuildRequires: %{python_module mpi4py >= 3.1.4 if %python-base >= 3.11}
BuildRequires: %{python_module pytest-mpi}
Requires: python-mpi4py >= 3.0.2
Requires: python-mpi4py >= 3.1.1
%endif
%python_subpackages
@@ -119,7 +120,12 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_expand %fdupes %{buildroot}%{my_sitearch_in_expand}/h5py/
%check
%{python_expand # Offset test fails on 32-bit
donttest="dummytest"
%ifarch %{ix86} %{arm}
# overflow
donttest="test_float_round_tripping or test_register_filter"
%endif
%{python_expand #
%if %{with mpi}
source %{my_bindir}/mpivars.sh
%endif
@@ -127,11 +133,7 @@ export LD_LIBRARY_PATH=%{my_libdir}
export PYTHONPATH=%{buildroot}%{my_sitearch_in_expand}
export PYTHONDONTWRITEBYTECODE=1
pytest-%{$python_bin_suffix} %{buildroot}%{my_sitearch_in_expand}/h5py/ \
%ifarch %{ix86}
%{?with_mpi:-k 'not test_float_round_tripping' -m 'not mpi_skip'}%{!?with_mpi:-k 'not (TestMPI or test_float_round_tripping)'}
%else
%{?with_mpi:-m 'not mpi_skip'}%{!?with_mpi:-k 'not TestMPI'}
%endif
%{?with_mpi:-k "not ($donttest)" -m 'not mpi_skip'}%{!?with_mpi:-k "not (TestMPI or $donttest)"}
}
%files %{python_files}