python-hdf5storage/python-hdf5storage.spec

77 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-hdf5storage
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Accepting request 877801 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.1.16 * Issue #81 and #82. h5py.File will require the mode to be passed explicitly in the future. All calls without passing it were fixed to pass it. * Issue #102. Added support for h5py 3.0 and 3.1. * Issue #73. Fixed bug where a missing variable in loadmat would cause the function to think that the file is a pre v7.3 format MAT file fall back to scipy.io.loadmat which won't work since the file is a v7.3 format MAT file. * Fixed formatting issues in the docstrings and the documentation that prevented the documentation from building. - Release 0.1.15 * Issue #68. Fixed bug where str and numpy.unicode_ strings (but not ndarrays of them) were saved in uint32 format regardless of the value of Options.convert_numpy_bytes_to_utf16. * Issue #70. Updated setup.py and requirements.txt to specify the maximum versions of numpy and h5py that can be used for specific python versions (avoid version with dropped support). * Issue #71. Fixed bug where the 'python_fields' attribute wouldn't always be written when doing python metadata for data written in a struct-like fashion. The bug caused the field order to not be preserved when writing and reading. * Fixed an assertion in the tests to handle field re-ordering when no metadata is used for structured dtypes that only worked on older versions of numpy. * Issue #72. Fixed bug where python collections filled with ndarrays that all have the same shape were converted to multi-dimensional object ndarrays instead of a 1D object ndarray of the elements. - Skip python2 (dropped upstream) and python36 (NumPy 1.20, NEP 29) - Don't build for 32-bit gh#frejanordsiek/hdf5storage#109 OBS-URL: https://build.opensuse.org/request/show/877801 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-hdf5storage?expand=0&rev=5
2021-03-08 22:20:17 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-hdf5storage
Version: 0.1.19
Release: 0
Summary: Utilities to read/write HDF5 files, including MATLAB v7.3 MAT files
License: BSD-3-Clause
Accepting request 877801 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.1.16 * Issue #81 and #82. h5py.File will require the mode to be passed explicitly in the future. All calls without passing it were fixed to pass it. * Issue #102. Added support for h5py 3.0 and 3.1. * Issue #73. Fixed bug where a missing variable in loadmat would cause the function to think that the file is a pre v7.3 format MAT file fall back to scipy.io.loadmat which won't work since the file is a v7.3 format MAT file. * Fixed formatting issues in the docstrings and the documentation that prevented the documentation from building. - Release 0.1.15 * Issue #68. Fixed bug where str and numpy.unicode_ strings (but not ndarrays of them) were saved in uint32 format regardless of the value of Options.convert_numpy_bytes_to_utf16. * Issue #70. Updated setup.py and requirements.txt to specify the maximum versions of numpy and h5py that can be used for specific python versions (avoid version with dropped support). * Issue #71. Fixed bug where the 'python_fields' attribute wouldn't always be written when doing python metadata for data written in a struct-like fashion. The bug caused the field order to not be preserved when writing and reading. * Fixed an assertion in the tests to handle field re-ordering when no metadata is used for structured dtypes that only worked on older versions of numpy. * Issue #72. Fixed bug where python collections filled with ndarrays that all have the same shape were converted to multi-dimensional object ndarrays instead of a 1D object ndarray of the elements. - Skip python2 (dropped upstream) and python36 (NumPy 1.20, NEP 29) - Don't build for 32-bit gh#frejanordsiek/hdf5storage#109 OBS-URL: https://build.opensuse.org/request/show/877801 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-hdf5storage?expand=0&rev=5
2021-03-08 22:20:17 +00:00
URL: https://github.com/frejanordsiek/hdf5storage
Source: https://files.pythonhosted.org/packages/source/h/hdf5storage/hdf5storage-%{version}.tar.gz
# PATCH-FIX-UPSTREAM nose-to-pytest.patch gh#frejanordsiek/hdf5storage#96 mcepl@suse.com
# uses pytest instead of nose
Patch0: nose-to-pytest.patch
BuildRequires: %{python_module h5py >= 3.3}
BuildRequires: %{python_module numpy < 2}
Accepting request 877801 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.1.16 * Issue #81 and #82. h5py.File will require the mode to be passed explicitly in the future. All calls without passing it were fixed to pass it. * Issue #102. Added support for h5py 3.0 and 3.1. * Issue #73. Fixed bug where a missing variable in loadmat would cause the function to think that the file is a pre v7.3 format MAT file fall back to scipy.io.loadmat which won't work since the file is a v7.3 format MAT file. * Fixed formatting issues in the docstrings and the documentation that prevented the documentation from building. - Release 0.1.15 * Issue #68. Fixed bug where str and numpy.unicode_ strings (but not ndarrays of them) were saved in uint32 format regardless of the value of Options.convert_numpy_bytes_to_utf16. * Issue #70. Updated setup.py and requirements.txt to specify the maximum versions of numpy and h5py that can be used for specific python versions (avoid version with dropped support). * Issue #71. Fixed bug where the 'python_fields' attribute wouldn't always be written when doing python metadata for data written in a struct-like fashion. The bug caused the field order to not be preserved when writing and reading. * Fixed an assertion in the tests to handle field re-ordering when no metadata is used for structured dtypes that only worked on older versions of numpy. * Issue #72. Fixed bug where python collections filled with ndarrays that all have the same shape were converted to multi-dimensional object ndarrays instead of a 1D object ndarray of the elements. - Skip python2 (dropped upstream) and python36 (NumPy 1.20, NEP 29) - Don't build for 32-bit gh#frejanordsiek/hdf5storage#109 OBS-URL: https://build.opensuse.org/request/show/877801 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-hdf5storage?expand=0&rev=5
2021-03-08 22:20:17 +00:00
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest >= 6.0}
# I don't know how to do @pytest.mark.parametrize on class methods
BuildRequires: %{python_module parameterized}
Accepting request 877801 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.1.16 * Issue #81 and #82. h5py.File will require the mode to be passed explicitly in the future. All calls without passing it were fixed to pass it. * Issue #102. Added support for h5py 3.0 and 3.1. * Issue #73. Fixed bug where a missing variable in loadmat would cause the function to think that the file is a pre v7.3 format MAT file fall back to scipy.io.loadmat which won't work since the file is a v7.3 format MAT file. * Fixed formatting issues in the docstrings and the documentation that prevented the documentation from building. - Release 0.1.15 * Issue #68. Fixed bug where str and numpy.unicode_ strings (but not ndarrays of them) were saved in uint32 format regardless of the value of Options.convert_numpy_bytes_to_utf16. * Issue #70. Updated setup.py and requirements.txt to specify the maximum versions of numpy and h5py that can be used for specific python versions (avoid version with dropped support). * Issue #71. Fixed bug where the 'python_fields' attribute wouldn't always be written when doing python metadata for data written in a struct-like fashion. The bug caused the field order to not be preserved when writing and reading. * Fixed an assertion in the tests to handle field re-ordering when no metadata is used for structured dtypes that only worked on older versions of numpy. * Issue #72. Fixed bug where python collections filled with ndarrays that all have the same shape were converted to multi-dimensional object ndarrays instead of a 1D object ndarray of the elements. - Skip python2 (dropped upstream) and python36 (NumPy 1.20, NEP 29) - Don't build for 32-bit gh#frejanordsiek/hdf5storage#109 OBS-URL: https://build.opensuse.org/request/show/877801 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-hdf5storage?expand=0&rev=5
2021-03-08 22:20:17 +00:00
BuildRequires: %{python_module scipy}
# /SECTION
Requires: python-h5py >= 3.3
Requires: python-numpy < 2
Accepting request 877801 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.1.16 * Issue #81 and #82. h5py.File will require the mode to be passed explicitly in the future. All calls without passing it were fixed to pass it. * Issue #102. Added support for h5py 3.0 and 3.1. * Issue #73. Fixed bug where a missing variable in loadmat would cause the function to think that the file is a pre v7.3 format MAT file fall back to scipy.io.loadmat which won't work since the file is a v7.3 format MAT file. * Fixed formatting issues in the docstrings and the documentation that prevented the documentation from building. - Release 0.1.15 * Issue #68. Fixed bug where str and numpy.unicode_ strings (but not ndarrays of them) were saved in uint32 format regardless of the value of Options.convert_numpy_bytes_to_utf16. * Issue #70. Updated setup.py and requirements.txt to specify the maximum versions of numpy and h5py that can be used for specific python versions (avoid version with dropped support). * Issue #71. Fixed bug where the 'python_fields' attribute wouldn't always be written when doing python metadata for data written in a struct-like fashion. The bug caused the field order to not be preserved when writing and reading. * Fixed an assertion in the tests to handle field re-ordering when no metadata is used for structured dtypes that only worked on older versions of numpy. * Issue #72. Fixed bug where python collections filled with ndarrays that all have the same shape were converted to multi-dimensional object ndarrays instead of a 1D object ndarray of the elements. - Skip python2 (dropped upstream) and python36 (NumPy 1.20, NEP 29) - Don't build for 32-bit gh#frejanordsiek/hdf5storage#109 OBS-URL: https://build.opensuse.org/request/show/877801 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-hdf5storage?expand=0&rev=5
2021-03-08 22:20:17 +00:00
Recommends: python-scipy
# This pure python package uses ctypes only suited for 64-bit. The tests segfault on 32-bit in libc memmove
# gh#frejanordsiek/hdf5storage#109
ExcludeArch: %ix86 %arm
%python_subpackages
%description
This Python package provides high level utilities to read/write a
variety of Python types to/from HDF5 (Heirarchal Data Format) formatted
files. This package also provides support for MATLAB MAT v7.3 formatted
files, which are just HDF5 files with a different extension and some
extra meta-data.
%prep
Accepting request 877801 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.1.16 * Issue #81 and #82. h5py.File will require the mode to be passed explicitly in the future. All calls without passing it were fixed to pass it. * Issue #102. Added support for h5py 3.0 and 3.1. * Issue #73. Fixed bug where a missing variable in loadmat would cause the function to think that the file is a pre v7.3 format MAT file fall back to scipy.io.loadmat which won't work since the file is a v7.3 format MAT file. * Fixed formatting issues in the docstrings and the documentation that prevented the documentation from building. - Release 0.1.15 * Issue #68. Fixed bug where str and numpy.unicode_ strings (but not ndarrays of them) were saved in uint32 format regardless of the value of Options.convert_numpy_bytes_to_utf16. * Issue #70. Updated setup.py and requirements.txt to specify the maximum versions of numpy and h5py that can be used for specific python versions (avoid version with dropped support). * Issue #71. Fixed bug where the 'python_fields' attribute wouldn't always be written when doing python metadata for data written in a struct-like fashion. The bug caused the field order to not be preserved when writing and reading. * Fixed an assertion in the tests to handle field re-ordering when no metadata is used for structured dtypes that only worked on older versions of numpy. * Issue #72. Fixed bug where python collections filled with ndarrays that all have the same shape were converted to multi-dimensional object ndarrays instead of a 1D object ndarray of the elements. - Skip python2 (dropped upstream) and python36 (NumPy 1.20, NEP 29) - Don't build for 32-bit gh#frejanordsiek/hdf5storage#109 OBS-URL: https://build.opensuse.org/request/show/877801 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-hdf5storage?expand=0&rev=5
2021-03-08 22:20:17 +00:00
%autosetup -p1 -n hdf5storage-%{version}
# fix end-of-line encoding
sed -i 's/\r$//' COPYING.txt
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license COPYING.txt
%{python_sitelib}/hdf5storage/
%{python_sitelib}/hdf5storage-%{version}-py*.egg-info
%changelog