https://bugzilla.redhat.com/show_bug.cgi?id=2213561
Felix Wang topazus@outlook.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|nobody@fedoraproject.org |topazus@outlook.com Status|NEW |ASSIGNED CC| |topazus@outlook.com Flags| |fedora-review?
--- Comment #2 from Felix Wang topazus@outlook.com --- %bcond_without check
%global srcname xarray-einstats
Name: python-%{srcname} Version: 0.5.1 Release: 1%{?dist} Summary: Stats, linear algebra and einops for xarray License: Apache-2.0
URL: https://github.com/arviz-devs/xarray-einstats Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch BuildRequires: python3-devel
%global _description %{expand: xarray-einstats is an open source Python library part of the ArviZ project. It acts as a bridge between the xarray library for labelled arrays and libraries for raw arrays such as NumPy or SciPy.}
%description %_description
%package -n python3-%{srcname} Summary: %{summary}
%description -n python3-%{srcname} %_description
%prep %autosetup -n %{srcname}-%{version} -p1
%generate_buildrequires %pyproject_buildrequires
%build %pyproject_wheel
%install %pyproject_install
%pyproject_save_files xarray_einstats
%check # use pytest, but skip tests/test_einops.py and tests/test_numba.py files #rm tests/test_einops.py tests/test_numba.py %pytest -v --ignore=tests/test_einops.py --ignore=tests/test_numba.py
%files -n python3-%{srcname} -f %{pyproject_files} %doc README.md
%changelog * Sat Jun 03 2023 Sergio Pascual sergiopr@fedoraproject.org - 0.5.1-1 - Initial package
----
# Tests are not included in the tarball %pyproject_check_import -t
You can use the tarball from github instead, which may do testing. Ref: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_source_fi...
Only the following place is the one needs to be modified, others look fine to me.