File project.diff of Package python-grequests
--- python-grequests.changes.orig
+++ python-grequests.changes
@@ -1,4 +1,20 @@
-------------------------------------------------------------------
+Sat Mar 1 11:54:22 UTC 2025 - Martin Hauke <mardnh@gmx.de>
+
+- Update to version 0.7.0
+ * Use assertEqual instead of assertEquals for Python 3.11
+ compatibility.
+ * add imap_enumerated.
+- Update to version 0.6.0
+ * https://github.com/spyoungtech/grequests/compare/v0.5.0...v0.6.0
+- Update to version 0.5.0
+ * Allows the exception handler to handle failed requests (ones
+ without a response) even if the exception attribute is not
+ present.
+- Update to version 0.4.0
+ * call exception handler even if there's no exception attribute.
+
+-------------------------------------------------------------------
Wed May 6 12:47:45 UTC 2015 - benoit.monin@gmx.fr
- update to version 0.2.0:
--- python-grequests.spec.orig
+++ python-grequests.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-grequests
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,73 +12,50 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-grequests
-Version: 0.2.0
+Version: 0.7.0
Release: 0
Summary: Requests + Gevent
License: BSD-2-Clause
-Group: Development/Languages/Python
-Url: https://github.com/kennethreitz/grequests
-Source: http://pypi.python.org/packages/source/g/grequests/grequests-%{version}.tar.gz
-Source1: LICENSE
-BuildRequires: python-devel
-BuildRequires: python-gevent
-BuildRequires: python-requests >= 1.0.0
-BuildRequires: python-setuptools
+URL: https://github.com/spyoungtech/grequests
+Source: https://files.pythonhosted.org/packages/source/g/grequests/grequests-%{version}.tar.gz
+BuildRequires: python-rpm-macros
+BuildRequires: %{python_module pip}
+BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
+# SECTION test requirements
+BuildRequires: %{python_module gevent}
+BuildRequires: %{python_module requests}
+# /SECTION
+BuildRequires: fdupes
Requires: python-gevent
-Requires: python-requests >= 1.0.0
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
+Requires: python-requests
BuildArch: noarch
-%endif
+%python_subpackages
%description
GRequests allows you to use Requests with Gevent to make asyncronous HTTP
Requests easily.
-Usage
------
-
-Usage is simple::
-
- import grequests
-
- urls = [
- 'http://www.heroku.com',
- 'http://tablib.org',
- 'http://httpbin.org',
- 'http://python-requests.org',
- 'http://kennethreitz.com'
- ]
-
-Create a set of unsent Requests::
-
- >>> rs = (grequests.get(u) for u in urls)
-
-Send them all at the same time::
-
- >>> grequests.map(rs)
- [<Response [200]>, <Response [200]>, <Response [200]>, <Response [200]>, <Response [200]>]
-
%prep
-%setup -q -n grequests-%{version}
-cp %{SOURCE1} .
+%autosetup -p1 -n grequests-%{version}
%build
-python setup.py build
+%pyproject_wheel
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%pyproject_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%files
-%defattr(-,root,root,-)
-%doc README.rst LICENSE
-%{python_sitelib}/*
+%files %{python_files}
+%license LICENSE
+%doc AUTHORS.rst README.rst
+%{python_sitelib}/grequests.py
+%{python_sitelib}/grequests-%{version}.dist-info
+%pycache_only %{python_sitelib}/__pycache__/
%changelog