commit e80afbd41b48e47e88fe20ea3e05d3f63903e3c3a931004f51eddbd7277453c3 Author: Adrian Schröter Date: Fri May 3 22:48:04 2024 +0200 Sync from SUSE:SLFO:Main python-requests-futures revision ea9941b23917650237adaac06eae8ec5 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/python-requests-futures.changes b/python-requests-futures.changes new file mode 100644 index 0000000..9bec7f6 --- /dev/null +++ b/python-requests-futures.changes @@ -0,0 +1,54 @@ +------------------------------------------------------------------- +Thu Sep 7 11:26:07 UTC 2023 - Dirk Müller + +- update to 1.0.1: + * drop python 2.x support + * format code with black + * add official support for python 3.9+ + +------------------------------------------------------------------- +Fri Apr 21 12:32:57 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:44:28 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Mon Oct 14 14:41:20 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Wed Jun 12 08:47:57 UTC 2019 - Marketa Calabkova + +- update to 1.0.0 + * The 'warn' method is deprecated, use 'warning' instead + * Fix default number of workers + * Drop Python 3.3 + +------------------------------------------------------------------- +Tue May 7 12:54:06 UTC 2019 - pgajdos@suse.com + +- version update to 0.9.9 + * no upstream changelog + +------------------------------------------------------------------- +Thu Jan 4 11:00:16 UTC 2018 - alarrosa@suse.com + +- python3-futures doesn't exist so only require it when building + the python2 flavor + +------------------------------------------------------------------- +Wed May 17 11:34:21 UTC 2017 - cbosdonnat@suse.com + +- Convert the spec file to single spec one + +------------------------------------------------------------------- +Wed Feb 22 19:58:39 UTC 2017 - okurz@suse.com + +- Initial submission of version 0.9.7 based on + https://github.com/ross/requests-futures + diff --git a/python-requests-futures.spec b/python-requests-futures.spec new file mode 100644 index 0000000..e6678a2 --- /dev/null +++ b/python-requests-futures.spec @@ -0,0 +1,58 @@ +# +# spec file +# +# Copyright (c) 2023 SUSE LLC +# +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define short_name requests-futures +%{?sle15_python_module_pythons} +Name: python-%{short_name} +Version: 1.0.1 +Release: 0 +Summary: Asynchronous Python HTTP Requests for Humans using Futures +License: Apache-2.0 +URL: https://github.com/ross/requests-futures +Source: https://files.pythonhosted.org/packages/source/r/%{short_name}/%{short_name}-%{version}.tar.gz +BuildRequires: %{python_module setuptools >= 38.6.1} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-requests >= 2.31.0 +BuildArch: noarch +%python_subpackages + +%description +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 +%setup -q -n %{short_name}-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# online tests on http://httpbin.org +# %%python_exec -m unittest test_requests_futures + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/* + +%changelog diff --git a/requests-futures-1.0.1.tar.gz b/requests-futures-1.0.1.tar.gz new file mode 100644 index 0000000..e9cd2a2 --- /dev/null +++ b/requests-futures-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f55a4ef80070e2858e7d1e73123d2bfaeaf25b93fd34384d8ddf148e2b676373 +size 9921