From 7353b561f282586ff86976234b598d8702d0d595 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Jan 09 2020 15:18:22 +0000 Subject: * Mon Jan 06 2020 Fabian Affolter - 1.0.0-2 - Condition for test with network * Sat Dec 28 2019 Fabian Affolter - 1.0.0-1 - Initial package for Fedora --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c3a4626 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/requests-futures-1.0.0.tar.gz diff --git a/python-requests-futures.spec b/python-requests-futures.spec new file mode 100644 index 0000000..471dc3f --- /dev/null +++ b/python-requests-futures.spec @@ -0,0 +1,59 @@ +%global pypi_name requests-futures +%bcond_with network + +Name: python-%{pypi_name} +Version: 1.0.0 +Release: 2%{?dist} +Summary: Asynchronous Python HTTP Requests + +License: ASL 2.0 +URL: https://github.com/ross/requests-futures +Source0: %pypi_source +BuildArch: noarch + +%description +Small add-on for the Python requests http library. Makes use of Python 3.2’s +concurrent.futures or the back-port for prior versions of Python. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-requests +BuildRequires: python3-pytest +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Small add-on for the Python requests http library. Makes use of Python 3.2’s +concurrent.futures or the backport for prior versions of Python. + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +%if %{with network} +pytest-%{python3_version} -v test_requests_futures.py +%else +pytest-%{python3_version} test_requests_futures.py::RequestsTestCase::test_adapter_kwargs \ + test_requests_futures.py::RequestsTestCase::test_max_workers +%endif + + +%files +%doc README.rst +%license LICENSE +%{python3_sitelib}/requests_futures/ +%{python3_sitelib}/requests_futures*.egg-info + +%changelog +* Mon Jan 06 2020 Fabian Affolter - 1.0.0-2 +- Condition for test with network + +* Sat Dec 28 2019 Fabian Affolter - 1.0.0-1 +- Initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..d1d71a4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (requests-futures-1.0.0.tar.gz) = 64b39ed99712df8f1be74b2de97500d89711c0d5d3ba0f2b64e3bab755d0bf82029d7ced13b755ce12a2b86f3b673305b651ba6ff4cfb60aed40c8d5876f202c