97 lines
3.3 KiB
RPMSpec
97 lines
3.3 KiB
RPMSpec
|
#
|
||
|
# spec file for package python-zarr
|
||
|
#
|
||
|
# Copyright (c) 2024 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-zarr
|
||
|
Version: 2.16.1
|
||
|
Release: 0
|
||
|
Summary: An implementation of chunked, compressed, N-dimensional arrays for Python
|
||
|
License: MIT
|
||
|
URL: https://github.com/zarr-developers/zarr-python
|
||
|
Source: https://files.pythonhosted.org/packages/source/z/zarr/zarr-%{version}.tar.gz
|
||
|
BuildRequires: %{python_module pip}
|
||
|
BuildRequires: %{python_module setuptools >= 64.0.0}
|
||
|
BuildRequires: %{python_module setuptools_scm > 1.5.4}
|
||
|
BuildRequires: %{python_module wheel}
|
||
|
BuildRequires: fdupes
|
||
|
BuildRequires: python-rpm-macros
|
||
|
# Needs full python stdlib, base is not enough
|
||
|
Requires: python >= 3.8
|
||
|
Requires: python-asciitree
|
||
|
Requires: python-fasteners
|
||
|
Requires: python-numcodecs >= 0.6.4
|
||
|
Requires: python-numpy >= 1.20
|
||
|
Suggests: python-dbm
|
||
|
Suggests: python-fsspec >= 0.8.4
|
||
|
Suggests: python-ipytree
|
||
|
Suggests: python-msgpack
|
||
|
Suggests: python-notebook
|
||
|
BuildArch: noarch
|
||
|
# SECTION test requirements
|
||
|
BuildRequires: %{python_module asciitree}
|
||
|
BuildRequires: %{python_module dbm}
|
||
|
BuildRequires: %{python_module fasteners}
|
||
|
BuildRequires: %{python_module fsspec >= 0.8.4}
|
||
|
BuildRequires: %{python_module msgpack}
|
||
|
BuildRequires: %{python_module numcodecs >= 0.6.4}
|
||
|
BuildRequires: %{python_module numpy >= 1.20}
|
||
|
BuildRequires: %{python_module pytest}
|
||
|
# Needs full python stdlib, base is not enough
|
||
|
BuildRequires: %{pythons} >= 3.8
|
||
|
# /SECTION
|
||
|
%python_subpackages
|
||
|
|
||
|
%description
|
||
|
An implementation of chunked, compressed, N-dimensional arrays for Python.
|
||
|
|
||
|
%prep
|
||
|
%autosetup -p1 -n zarr-%{version}
|
||
|
|
||
|
%build
|
||
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||
|
%pyproject_wheel
|
||
|
|
||
|
%install
|
||
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||
|
%pyproject_install
|
||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||
|
|
||
|
%check
|
||
|
# avoid broken tests in s390x, gh#zarr-developers/zarr-python#1375
|
||
|
%if "%_arch" == "s390x"
|
||
|
donttest="test_hexdigest or test_nbytes_stored"
|
||
|
donttest+=" or test_array_1d or test_array_1d_fill_value or test_array_1d_selections"
|
||
|
donttest+=" or test_array_2d or test_array_2d_edge_case or test_array_order"
|
||
|
donttest+=" or test_resize_2d or test_append_2d or test_append_2d_axis"
|
||
|
donttest+=" or test_np_ufuncs or test_iter or test_islice or test_non_cont"
|
||
|
donttest+=" or test_read_nitems_less_than_blocksize_from_multiple_chunks"
|
||
|
donttest+=" or test_read_from_all_blocks"
|
||
|
donttest+=" or test_format_compatibility"
|
||
|
%pytest -k "not ($donttest)"
|
||
|
%else
|
||
|
%pytest
|
||
|
%endif
|
||
|
|
||
|
%files %{python_files}
|
||
|
%doc README.md
|
||
|
%license LICENSE.txt
|
||
|
%{python_sitelib}/zarr
|
||
|
%{python_sitelib}/zarr-%{version}*-info
|
||
|
|
||
|
%changelog
|