|
Rohan McGovern |
fd805c7 |
%global srcname more-executors
|
|
Rohan McGovern |
fd805c7 |
%global srcname_py more_executors
|
|
Rohan McGovern |
fd805c7 |
|
|
Rohan McGovern |
fd805c7 |
Summary: A library of composable Python executors and futures
|
|
Rohan McGovern |
fd805c7 |
Name: python-%{srcname}
|
|
Rohan McGovern |
a1fca6b |
Version: 2.7.0
|
|
Rohan McGovern |
03e8371 |
Release: %autorelease
|
|
Rohan McGovern |
fd805c7 |
License: GPLv3+
|
|
Rohan McGovern |
fd805c7 |
BuildArch: noarch
|
|
Rohan McGovern |
fd805c7 |
URL: https://github.com/rohanpm/%{srcname}
|
|
Rohan McGovern |
6f84ccb |
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
|
Rohan McGovern |
fd805c7 |
|
|
Rohan McGovern |
fd805c7 |
%{?python_enable_dependency_generator}
|
|
Rohan McGovern |
fd805c7 |
|
|
Rohan McGovern |
fd805c7 |
%description
|
|
Rohan McGovern |
fd805c7 |
This library is intended for use with the concurrent.futures module.
|
|
Rohan McGovern |
fd805c7 |
It includes a collection of Executor implementations in order to extend
|
|
Rohan McGovern |
fd805c7 |
the behavior of Future objects.
|
|
Rohan McGovern |
fd805c7 |
|
|
Rohan McGovern |
fd805c7 |
%package -n python3-%{srcname}
|
|
Rohan McGovern |
fd805c7 |
Summary: %{summary}
|
|
Rohan McGovern |
fd805c7 |
BuildRequires: python3-devel
|
|
Rohan McGovern |
a57212b |
BuildRequires: python3-setuptools
|
|
Rohan McGovern |
6f84ccb |
|
|
Rohan McGovern |
6f84ccb |
# dependencies for test suite
|
|
Rohan McGovern |
6f84ccb |
BuildRequires: python3dist(pytest)
|
|
Rohan McGovern |
6f84ccb |
BuildRequires: python3dist(pyhamcrest)
|
|
Rohan McGovern |
6f84ccb |
BuildRequires: python3dist(monotonic)
|
|
Rohan McGovern |
6f84ccb |
BuildRequires: python3dist(six)
|
|
Rohan McGovern |
6f84ccb |
|
|
Rohan McGovern |
fd805c7 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
Rohan McGovern |
fd805c7 |
|
|
Rohan McGovern |
a1fca6b |
%{?python_extras_subpkg:%python_extras_subpkg -n python3-%{srcname} -i %{python3_sitelib}/*.egg-info prometheus}
|
|
Rohan McGovern |
a1fca6b |
|
|
Rohan McGovern |
fd805c7 |
%description -n python3-%{srcname}
|
|
Rohan McGovern |
fd805c7 |
This library is intended for use with the concurrent.futures module.
|
|
Rohan McGovern |
fd805c7 |
It includes a collection of Executor implementations in order to extend
|
|
Rohan McGovern |
fd805c7 |
the behavior of Future objects.
|
|
Rohan McGovern |
fd805c7 |
|
|
Rohan McGovern |
fd805c7 |
%prep
|
|
Rohan McGovern |
03a627d |
%autosetup -n %{srcname}-%{version} -p1
|
|
Rohan McGovern |
fd805c7 |
|
|
Rohan McGovern |
fd805c7 |
%build
|
|
Rohan McGovern |
fd805c7 |
%py3_build
|
|
Rohan McGovern |
fd805c7 |
|
|
Rohan McGovern |
fd805c7 |
%install
|
|
Rohan McGovern |
fd805c7 |
%py3_install
|
|
Rohan McGovern |
fd805c7 |
|
|
Rohan McGovern |
6f84ccb |
%check
|
|
Rohan McGovern |
6f84ccb |
%{__python3} -m pytest -v
|
|
Rohan McGovern |
6f84ccb |
|
|
Rohan McGovern |
fd805c7 |
%files -n python3-%{srcname}
|
|
Rohan McGovern |
fd805c7 |
%doc README.md
|
|
Rohan McGovern |
fd805c7 |
%license LICENSE
|
|
Rohan McGovern |
fd805c7 |
|
|
Rohan McGovern |
fd805c7 |
%{python3_sitelib}/%{srcname_py}*.egg-info/
|
|
Rohan McGovern |
fd805c7 |
%{python3_sitelib}/%{srcname_py}/
|
|
Rohan McGovern |
fd805c7 |
|
|
Rohan McGovern |
fd805c7 |
%changelog
|
|
Rohan McGovern |
03e8371 |
%autochangelog
|