c136fe8
%global forgeurl https://github.com/noxdafox/pebble
c136fe8
6b6e262
# Tests take rather long compared to build. Allow skipping.
6b6e262
%bcond tests 1
6b6e262
a97489b
Name:           python-pebble
062a246
Version:        5.0.7
f01009c
Release:        %autorelease
cca640b
Summary:        Threading and multiprocessing eye-candy for Python
c136fe8
c136fe8
%global tag %{version}
c136fe8
%forgemeta
c136fe8
ad6fe10
License:        LGPL-3.0-or-later
c136fe8
URL:            %{forgeurl}
c136fe8
Source:         %{forgesource}
0159e45
Patch:          %{forgeurl}/pull/130.patch
0159e45
cca640b
BuildArch:      noarch
cca640b
0159e45
BuildRequires:  python3-devel
0159e45
BuildRequires:  python3-pytest
0159e45
cca640b
%global _description %{expand:
cca640b
Pebble provides an API to manage threads and processes within an application.
cca640b
It wraps Python’s standard library threading and multiprocessing objects.}
cca640b
cca640b
%description %_description
cca640b
a97489b
%package -n python3-pebble
cca640b
Summary:        %{summary}
cca640b
a97489b
%description -n python3-pebble %_description
cca640b
cca640b
%prep
c136fe8
%forgeautosetup
a97489b
a97489b
%generate_buildrequires
0159e45
%pyproject_buildrequires
cca640b
cca640b
%build
a97489b
%pyproject_wheel
cca640b
cca640b
%install
a97489b
%pyproject_install
fd71a55
%pyproject_save_files -l pebble
cca640b
cca640b
%check
6b6e262
%if %{with tests}
6b6e262
  # test intermittently hangs
6b6e262
  %{pytest} -v -k "not test_process_pool_multiple_futures"
6b6e262
%else
6b6e262
  %pyproject_check_import
6b6e262
%endif
cca640b
a97489b
%files -n python3-pebble -f %{pyproject_files}
cca640b
%doc README.rst
cca640b
cca640b
%changelog
f01009c
%autochangelog