2017-03-01 12:43:23 +01:00
|
|
|
|
#
|
2023-04-21 15:37:34 +02:00
|
|
|
|
# spec file
|
2017-03-01 12:43:23 +01:00
|
|
|
|
#
|
2023-04-21 15:37:34 +02:00
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-03-01 12:43:23 +01:00
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2019-05-07 15:47:31 +02:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-03-01 12:43:23 +01:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define short_name requests-futures
|
2023-04-21 15:37:34 +02:00
|
|
|
|
%{?sle15_python_module_pythons}
|
2017-03-01 12:43:23 +01:00
|
|
|
|
Name: python-%{short_name}
|
2023-09-07 13:26:49 +02:00
|
|
|
|
Version: 1.0.1
|
2017-03-01 12:43:23 +01:00
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Asynchronous Python HTTP Requests for Humans using Futures
|
|
|
|
|
License: Apache-2.0
|
2023-09-07 13:26:49 +02:00
|
|
|
|
URL: https://github.com/ross/requests-futures
|
2019-05-07 15:47:31 +02:00
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/r/%{short_name}/%{short_name}-%{version}.tar.gz
|
2019-06-12 11:19:17 +02:00
|
|
|
|
BuildRequires: %{python_module setuptools >= 38.6.1}
|
2017-06-06 10:13:24 +02:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2023-09-07 13:26:49 +02:00
|
|
|
|
Requires: python-requests >= 2.31.0
|
2017-03-01 12:43:23 +01:00
|
|
|
|
BuildArch: noarch
|
2017-06-06 10:13:24 +02:00
|
|
|
|
%python_subpackages
|
2017-03-01 12:43:23 +01:00
|
|
|
|
|
|
|
|
|
%description
|
2017-06-06 10:13:24 +02:00
|
|
|
|
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.
|
2017-03-01 12:43:23 +01:00
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{short_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2017-06-06 10:13:24 +02:00
|
|
|
|
%python_build
|
2017-03-01 12:43:23 +01:00
|
|
|
|
|
|
|
|
|
%install
|
2017-06-06 10:13:24 +02:00
|
|
|
|
%python_install
|
2019-10-14 16:41:41 +02:00
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-03-01 12:43:23 +01:00
|
|
|
|
|
2019-05-07 15:47:31 +02:00
|
|
|
|
%check
|
2019-06-12 11:19:17 +02:00
|
|
|
|
# online tests on http://httpbin.org
|
2019-05-07 15:47:31 +02:00
|
|
|
|
# %%python_exec -m unittest test_requests_futures
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2017-03-01 12:43:23 +01:00
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|