https://bugzilla.redhat.com/show_bug.cgi?id=2213561

Felix Wang <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|[email protected]    |[email protected]
             Status|NEW                         |ASSIGNED
                 CC|                            |[email protected]
              Flags|                            |fedora-review?



--- Comment #2 from Felix Wang <[email protected]> ---
%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 <[email protected]> - 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_files_from_pypi

Only the following place is the one needs to be modified, others look fine to
me.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2213561

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202213561%23c2
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to