17
0
Files
python-h5netcdf/python-h5netcdf.spec

70 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-h5netcdf
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-h5netcdf
Version: 1.3.0
Release: 0
Summary: A Python library to use netCDF4 files via h5py
License: BSD-3-Clause
URL: https://github.com/h5netcdf/h5netcdf
Source: https://files.pythonhosted.org/packages/source/h/h5netcdf/h5netcdf-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.9}
- Update to 1.0.1: - Fix failing tests when using netCDF4 4.9.0. - Add HSDS pytest-fixture, make tests work with h5ypd. By Aleksandar Jelenak. - Remove _NCProperties from existing file if writing invalid netcdf features. Warn users if .nc file extension is used writing invalid netcdf features. By Kai Mühlbauer. - Remove deprecated code (eg. remove deprecated code (eg. handling mode, chunking_heuristics, decode_vlen_strings), adapt LICENSE/AUTHOR.txt, prepare repository for release 1.0. By Kai Mühlbauer. - Add documentation to h5netcdf, merging current available documentation available as .rst-files, in the repo-wiki and new API-docs into one document using sphinx-doc and sphinx-book-theme. By Kai Mühlbauer. - Directly return non-string Empty-type attributes as empty numpy-ndarray. By Kai Mühlbauer. - Add chunking_heuristic keyword and custom heuristic chunking_heuristic="h5netcdf" with better handling of unlimited dimensions. By Dion Häfner. - Return group name instead of full group path for legacy API. By Kai Mühlbauer. - Add endian keyword argument legacyapi.Dataset.createVariable. By Kai Mühlbauer. - Resize Dimensions when writing to variables (legacy API only), return padded arrays. By Kai Mühlbauer. - Allow 1D boolean indexers in legacy API. By Kai Mühlbauer. - Revert order tracking by default to avoid a bug in h5py (Closes Issue #136). By Mark Harfouche. - Implement Dimension-class. By Kai Mühlbauer. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-h5netcdf?expand=0&rev=11
2022-07-29 17:53:32 +00:00
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 42}
BuildRequires: %{python_module setuptools_scm >= 7}
- Update to 1.0.1: - Fix failing tests when using netCDF4 4.9.0. - Add HSDS pytest-fixture, make tests work with h5ypd. By Aleksandar Jelenak. - Remove _NCProperties from existing file if writing invalid netcdf features. Warn users if .nc file extension is used writing invalid netcdf features. By Kai Mühlbauer. - Remove deprecated code (eg. remove deprecated code (eg. handling mode, chunking_heuristics, decode_vlen_strings), adapt LICENSE/AUTHOR.txt, prepare repository for release 1.0. By Kai Mühlbauer. - Add documentation to h5netcdf, merging current available documentation available as .rst-files, in the repo-wiki and new API-docs into one document using sphinx-doc and sphinx-book-theme. By Kai Mühlbauer. - Directly return non-string Empty-type attributes as empty numpy-ndarray. By Kai Mühlbauer. - Add chunking_heuristic keyword and custom heuristic chunking_heuristic="h5netcdf" with better handling of unlimited dimensions. By Dion Häfner. - Return group name instead of full group path for legacy API. By Kai Mühlbauer. - Add endian keyword argument legacyapi.Dataset.createVariable. By Kai Mühlbauer. - Resize Dimensions when writing to variables (legacy API only), return padded arrays. By Kai Mühlbauer. - Allow 1D boolean indexers in legacy API. By Kai Mühlbauer. - Revert order tracking by default to avoid a bug in h5py (Closes Issue #136). By Mark Harfouche. - Implement Dimension-class. By Kai Mühlbauer. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-h5netcdf?expand=0&rev=11
2022-07-29 17:53:32 +00:00
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-h5py
Requires: python-packaging
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module h5py}
BuildRequires: %{python_module netCDF4}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
A Python interface for the netCDF4 file-format that reads and writes
local or remote HDF5 files directly via h5py or h5pyd, without
relying on the Unidata netCDF library.
%prep
%autosetup -p1 -n h5netcdf-%{version}
%build
- Update to 1.0.1: - Fix failing tests when using netCDF4 4.9.0. - Add HSDS pytest-fixture, make tests work with h5ypd. By Aleksandar Jelenak. - Remove _NCProperties from existing file if writing invalid netcdf features. Warn users if .nc file extension is used writing invalid netcdf features. By Kai Mühlbauer. - Remove deprecated code (eg. remove deprecated code (eg. handling mode, chunking_heuristics, decode_vlen_strings), adapt LICENSE/AUTHOR.txt, prepare repository for release 1.0. By Kai Mühlbauer. - Add documentation to h5netcdf, merging current available documentation available as .rst-files, in the repo-wiki and new API-docs into one document using sphinx-doc and sphinx-book-theme. By Kai Mühlbauer. - Directly return non-string Empty-type attributes as empty numpy-ndarray. By Kai Mühlbauer. - Add chunking_heuristic keyword and custom heuristic chunking_heuristic="h5netcdf" with better handling of unlimited dimensions. By Dion Häfner. - Return group name instead of full group path for legacy API. By Kai Mühlbauer. - Add endian keyword argument legacyapi.Dataset.createVariable. By Kai Mühlbauer. - Resize Dimensions when writing to variables (legacy API only), return padded arrays. By Kai Mühlbauer. - Allow 1D boolean indexers in legacy API. By Kai Mühlbauer. - Revert order tracking by default to avoid a bug in h5py (Closes Issue #136). By Mark Harfouche. - Implement Dimension-class. By Kai Mühlbauer. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-h5netcdf?expand=0&rev=11
2022-07-29 17:53:32 +00:00
%pyproject_wheel
%install
- Update to 1.0.1: - Fix failing tests when using netCDF4 4.9.0. - Add HSDS pytest-fixture, make tests work with h5ypd. By Aleksandar Jelenak. - Remove _NCProperties from existing file if writing invalid netcdf features. Warn users if .nc file extension is used writing invalid netcdf features. By Kai Mühlbauer. - Remove deprecated code (eg. remove deprecated code (eg. handling mode, chunking_heuristics, decode_vlen_strings), adapt LICENSE/AUTHOR.txt, prepare repository for release 1.0. By Kai Mühlbauer. - Add documentation to h5netcdf, merging current available documentation available as .rst-files, in the repo-wiki and new API-docs into one document using sphinx-doc and sphinx-book-theme. By Kai Mühlbauer. - Directly return non-string Empty-type attributes as empty numpy-ndarray. By Kai Mühlbauer. - Add chunking_heuristic keyword and custom heuristic chunking_heuristic="h5netcdf" with better handling of unlimited dimensions. By Dion Häfner. - Return group name instead of full group path for legacy API. By Kai Mühlbauer. - Add endian keyword argument legacyapi.Dataset.createVariable. By Kai Mühlbauer. - Resize Dimensions when writing to variables (legacy API only), return padded arrays. By Kai Mühlbauer. - Allow 1D boolean indexers in legacy API. By Kai Mühlbauer. - Revert order tracking by default to avoid a bug in h5py (Closes Issue #136). By Mark Harfouche. - Implement Dimension-class. By Kai Mühlbauer. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-h5netcdf?expand=0&rev=11
2022-07-29 17:53:32 +00:00
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -rs
%files %{python_files}
%doc README.rst
%license LICENSE
- Update to 1.0.1: - Fix failing tests when using netCDF4 4.9.0. - Add HSDS pytest-fixture, make tests work with h5ypd. By Aleksandar Jelenak. - Remove _NCProperties from existing file if writing invalid netcdf features. Warn users if .nc file extension is used writing invalid netcdf features. By Kai Mühlbauer. - Remove deprecated code (eg. remove deprecated code (eg. handling mode, chunking_heuristics, decode_vlen_strings), adapt LICENSE/AUTHOR.txt, prepare repository for release 1.0. By Kai Mühlbauer. - Add documentation to h5netcdf, merging current available documentation available as .rst-files, in the repo-wiki and new API-docs into one document using sphinx-doc and sphinx-book-theme. By Kai Mühlbauer. - Directly return non-string Empty-type attributes as empty numpy-ndarray. By Kai Mühlbauer. - Add chunking_heuristic keyword and custom heuristic chunking_heuristic="h5netcdf" with better handling of unlimited dimensions. By Dion Häfner. - Return group name instead of full group path for legacy API. By Kai Mühlbauer. - Add endian keyword argument legacyapi.Dataset.createVariable. By Kai Mühlbauer. - Resize Dimensions when writing to variables (legacy API only), return padded arrays. By Kai Mühlbauer. - Allow 1D boolean indexers in legacy API. By Kai Mühlbauer. - Revert order tracking by default to avoid a bug in h5py (Closes Issue #136). By Mark Harfouche. - Implement Dimension-class. By Kai Mühlbauer. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-h5netcdf?expand=0&rev=11
2022-07-29 17:53:32 +00:00
%{python_sitelib}/h5netcdf
%{python_sitelib}/h5netcdf-%{version}.dist-info
%changelog