Hello community,

here is the log from the commit of package python-requests-futures for 
openSUSE:Factory checked in at 2019-06-13 23:02:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-requests-futures (Old)
 and      /work/SRC/openSUSE:Factory/.python-requests-futures.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-requests-futures"

Thu Jun 13 23:02:22 2019 rev:4 rq:709356 version:1.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-requests-futures/python-requests-futures.changes
  2019-05-17 23:42:27.689935942 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-requests-futures.new.4811/python-requests-futures.changes
        2019-06-13 23:02:23.539443187 +0200
@@ -1,0 +2,8 @@
+Wed Jun 12 08:47:57 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- update to 1.0.0
+  * The 'warn' method is deprecated, use 'warning' instead
+  * Fix default number of workers
+  * Drop Python 3.3
+
+-------------------------------------------------------------------

Old:
----
  requests-futures-0.9.9.tar.gz

New:
----
  requests-futures-1.0.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-requests-futures.spec ++++++
--- /var/tmp/diff_new_pack.73IYJB/_old  2019-06-13 23:02:24.107442694 +0200
+++ /var/tmp/diff_new_pack.73IYJB/_new  2019-06-13 23:02:24.111442691 +0200
@@ -19,14 +19,14 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         short_name requests-futures
 Name:           python-%{short_name}
-Version:        0.9.9
+Version:        1.0.0
 Release:        0
 Summary:        Asynchronous Python HTTP Requests for Humans using Futures
 License:        Apache-2.0
 Group:          Development/Languages/Python
 URL:            https://github.com/ross/%{short_name}
 Source:         
https://files.pythonhosted.org/packages/source/r/%{short_name}/%{short_name}-%{version}.tar.gz
-BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module setuptools >= 38.6.1}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-requests >= 1.2.0
@@ -51,7 +51,7 @@
 %python_expand %fdupes -s %{buildroot}%{$python_sitelib}
 
 %check
-# online tests
+# online tests on http://httpbin.org
 # %%python_exec -m unittest test_requests_futures
 
 %files %{python_files}

++++++ requests-futures-0.9.9.tar.gz -> requests-futures-1.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/requests-futures-0.9.9/PKG-INFO 
new/requests-futures-1.0.0/PKG-INFO
--- old/requests-futures-0.9.9/PKG-INFO 2018-12-02 23:50:49.000000000 +0100
+++ new/requests-futures-1.0.0/PKG-INFO 2019-06-11 05:22:21.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: requests-futures
-Version: 0.9.9
+Version: 1.0.0
 Summary: Asynchronous Python HTTP for Humans.
 Home-page: https://github.com/ross/requests-futures
 Author: Ross McFarland
@@ -56,7 +56,7 @@
             print('response two status: {0}'.format(response_two.status_code))
             print(response_two.content)
         
-        By default a ThreadPoolExecutor is created with 2 workers. If you 
would like to
+        By default a ThreadPoolExecutor is created with 8 workers. If you 
would like to
         adjust that value or share a executor across multiple sessions you can 
provide
         one to the FuturesSession constructor.
         
@@ -91,7 +91,7 @@
         moved there.
         
         Canceling queued requests (a.k.a cleaning up after yourself)
-        =========================
+        ============================================================
         
         If you know that you won't be needing any additional responses from 
futures that
         haven't yet resolved, it's a good idea to cancel those requests. You 
can do this
@@ -177,7 +177,7 @@
                     try:
                         if isinstance(hooks['response'], (list, tuple)):
                             # needs to be first so we don't time other hooks 
execution
-                            hooks['response'].prepend(timing)
+                            hooks['response'].insert(0, timing)
                         else:
                             hooks['response'] = [timing, hooks['response']]
                     except KeyError:
@@ -272,6 +272,5 @@
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/requests-futures-0.9.9/README.rst 
new/requests-futures-1.0.0/README.rst
--- old/requests-futures-0.9.9/README.rst       2018-12-02 23:50:06.000000000 
+0100
+++ new/requests-futures-1.0.0/README.rst       2019-06-11 05:22:02.000000000 
+0200
@@ -48,7 +48,7 @@
     print('response two status: {0}'.format(response_two.status_code))
     print(response_two.content)
 
-By default a ThreadPoolExecutor is created with 2 workers. If you would like to
+By default a ThreadPoolExecutor is created with 8 workers. If you would like to
 adjust that value or share a executor across multiple sessions you can provide
 one to the FuturesSession constructor.
 
@@ -83,7 +83,7 @@
 moved there.
 
 Canceling queued requests (a.k.a cleaning up after yourself)
-=========================
+============================================================
 
 If you know that you won't be needing any additional responses from futures 
that
 haven't yet resolved, it's a good idea to cancel those requests. You can do 
this
@@ -169,7 +169,7 @@
             try:
                 if isinstance(hooks['response'], (list, tuple)):
                     # needs to be first so we don't time other hooks execution
-                    hooks['response'].prepend(timing)
+                    hooks['response'].insert(0, timing)
                 else:
                     hooks['response'] = [timing, hooks['response']]
             except KeyError:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/requests-futures-0.9.9/requests_futures/__init__.py 
new/requests-futures-1.0.0/requests_futures/__init__.py
--- old/requests-futures-0.9.9/requests_futures/__init__.py     2018-12-02 
23:50:24.000000000 +0100
+++ new/requests-futures-1.0.0/requests_futures/__init__.py     2019-06-11 
05:18:01.000000000 +0200
@@ -12,7 +12,7 @@
 import logging
 
 __title__ = 'requests-futures'
-__version__ = '0.9.9'
+__version__ = '1.0.0'
 __build__ = 0x000000
 __author__ = 'Ross McFarland'
 __license__ = 'Apache 2.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/requests-futures-0.9.9/requests_futures/sessions.py 
new/requests-futures-1.0.0/requests_futures/sessions.py
--- old/requests-futures-0.9.9/requests_futures/sessions.py     2018-12-02 
23:49:48.000000000 +0100
+++ new/requests-futures-1.0.0/requests_futures/sessions.py     2019-06-11 
05:17:00.000000000 +0200
@@ -91,7 +91,7 @@
         background_callback = kwargs.pop('background_callback', None)
         if background_callback:
             logger = getLogger(self.__class__.__name__)
-            logger.warn('`background_callback` is deprecated and will be '
+            logger.warning('`background_callback` is deprecated and will be '
                         'removed in 1.0, use `hooks` instead')
             func = partial(wrap, self, func, background_callback)
 
@@ -109,3 +109,73 @@
         if self._owned_executor:
             self.executor.shutdown()
 
+    def get(self, url, **kwargs):
+        r"""
+        Sends a GET request. Returns :class:`Future` object.
+
+        :param url: URL for the new :class:`Request` object.
+        :param \*\*kwargs: Optional arguments that ``request`` takes.
+        :rtype : concurrent.futures.Future
+        """
+        return super(FuturesSession, self).get(url, **kwargs)
+
+    def options(self, url, **kwargs):
+        r"""Sends a OPTIONS request. Returns :class:`Future` object.
+
+        :param url: URL for the new :class:`Request` object.
+        :param \*\*kwargs: Optional arguments that ``request`` takes.
+        :rtype : concurrent.futures.Future
+        """
+        return super(FuturesSession, self).options(url, **kwargs)
+
+    def head(self, url, **kwargs):
+        r"""Sends a HEAD request. Returns :class:`Future` object.
+
+        :param url: URL for the new :class:`Request` object.
+        :param \*\*kwargs: Optional arguments that ``request`` takes.
+        :rtype : concurrent.futures.Future
+        """
+        return super(FuturesSession, self).head(url, **kwargs)
+
+    def post(self, url, data=None, json=None, **kwargs):
+        r"""Sends a POST request. Returns :class:`Future` object.
+
+        :param url: URL for the new :class:`Request` object.
+        :param data: (optional) Dictionary, list of tuples, bytes, or file-like
+            object to send in the body of the :class:`Request`.
+        :param json: (optional) json to send in the body of the 
:class:`Request`.
+        :param \*\*kwargs: Optional arguments that ``request`` takes.
+        :rtype : concurrent.futures.Future
+        """
+        return super(FuturesSession, self).post(url, data=data, json=json, 
**kwargs)
+
+    def put(self, url, data=None, **kwargs):
+        r"""Sends a PUT request. Returns :class:`Future` object.
+
+        :param url: URL for the new :class:`Request` object.
+        :param data: (optional) Dictionary, list of tuples, bytes, or file-like
+            object to send in the body of the :class:`Request`.
+        :param \*\*kwargs: Optional arguments that ``request`` takes.
+        :rtype : concurrent.futures.Future
+        """
+        return super(FuturesSession, self).put(url, data=data, **kwargs)
+
+    def patch(self, url, data=None, **kwargs):
+        r"""Sends a PATCH request. Returns :class:`Future` object.
+
+        :param url: URL for the new :class:`Request` object.
+        :param data: (optional) Dictionary, list of tuples, bytes, or file-like
+            object to send in the body of the :class:`Request`.
+        :param \*\*kwargs: Optional arguments that ``request`` takes.
+        :rtype : concurrent.futures.Future
+        """
+        return super(FuturesSession, self).patch(url, data=data, **kwargs)
+
+    def delete(self, url, **kwargs):
+        r"""Sends a DELETE request. Returns :class:`Future` object.
+
+        :param url: URL for the new :class:`Request` object.
+        :param \*\*kwargs: Optional arguments that ``request`` takes.
+        :rtype : concurrent.futures.Future
+        """
+        return super(FuturesSession, self).delete(url, **kwargs)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/requests-futures-0.9.9/requests_futures.egg-info/PKG-INFO 
new/requests-futures-1.0.0/requests_futures.egg-info/PKG-INFO
--- old/requests-futures-0.9.9/requests_futures.egg-info/PKG-INFO       
2018-12-02 23:50:47.000000000 +0100
+++ new/requests-futures-1.0.0/requests_futures.egg-info/PKG-INFO       
2019-06-11 05:22:21.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: requests-futures
-Version: 0.9.9
+Version: 1.0.0
 Summary: Asynchronous Python HTTP for Humans.
 Home-page: https://github.com/ross/requests-futures
 Author: Ross McFarland
@@ -56,7 +56,7 @@
             print('response two status: {0}'.format(response_two.status_code))
             print(response_two.content)
         
-        By default a ThreadPoolExecutor is created with 2 workers. If you 
would like to
+        By default a ThreadPoolExecutor is created with 8 workers. If you 
would like to
         adjust that value or share a executor across multiple sessions you can 
provide
         one to the FuturesSession constructor.
         
@@ -91,7 +91,7 @@
         moved there.
         
         Canceling queued requests (a.k.a cleaning up after yourself)
-        =========================
+        ============================================================
         
         If you know that you won't be needing any additional responses from 
futures that
         haven't yet resolved, it's a good idea to cancel those requests. You 
can do this
@@ -177,7 +177,7 @@
                     try:
                         if isinstance(hooks['response'], (list, tuple)):
                             # needs to be first so we don't time other hooks 
execution
-                            hooks['response'].prepend(timing)
+                            hooks['response'].insert(0, timing)
                         else:
                             hooks['response'] = [timing, hooks['response']]
                     except KeyError:
@@ -272,6 +272,5 @@
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/requests-futures-0.9.9/requests_futures.egg-info/requires.txt 
new/requests-futures-1.0.0/requests_futures.egg-info/requires.txt
--- old/requests-futures-0.9.9/requests_futures.egg-info/requires.txt   
2018-12-02 23:50:47.000000000 +0100
+++ new/requests-futures-1.0.0/requests_futures.egg-info/requires.txt   
2019-06-11 05:22:21.000000000 +0200
@@ -1,2 +1,4 @@
 requests>=1.2.0
+
+[:python_version < "3.2"]
 futures>=2.1.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/requests-futures-0.9.9/setup.cfg 
new/requests-futures-1.0.0/setup.cfg
--- old/requests-futures-0.9.9/setup.cfg        2018-12-02 23:50:49.000000000 
+0100
+++ new/requests-futures-1.0.0/setup.cfg        2019-06-11 05:22:21.000000000 
+0200
@@ -1,5 +1,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/requests-futures-0.9.9/setup.py 
new/requests-futures-1.0.0/setup.py
--- old/requests-futures-0.9.9/setup.py 2017-11-03 14:09:48.000000000 +0100
+++ new/requests-futures-1.0.0/setup.py 2019-06-11 05:17:01.000000000 +0200
@@ -19,12 +19,10 @@
 ]
 
 requires = [
-    'requests>=1.2.0'
+    'requests>=1.2.0',
+    'futures>=2.1.3; python_version<"3.2"'
 ]
 
-if sys.version_info < (3, 2):
-    requires.append('futures>=2.1.3')
-
 setup(
     name='requests-futures',
     version=requests_futures.__version__,
@@ -37,10 +35,11 @@
     package_data={'requests_futures': ['LICENSE', 'README.rst']},
     include_package_data=True,
     install_requires=requires,
+    setup_requires=['setuptools>=38.6.1'],
     license='Apache License v2',
     url='https://github.com/ross/requests-futures',
     zip_safe=False,
-    classifiers=(
+    classifiers=[
         'Development Status :: 5 - Production/Stable',
         'Intended Audience :: Developers',
         'Natural Language :: English',
@@ -48,8 +47,7 @@
         'Programming Language :: Python',
         'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.3',
         'Programming Language :: Python :: 3.4',
         'Programming Language :: Python :: 3.5',
-    ),
+    ],
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/requests-futures-0.9.9/test_requests_futures.py 
new/requests-futures-1.0.0/test_requests_futures.py
--- old/requests-futures-0.9.9/test_requests_futures.py 2018-12-02 
23:49:48.000000000 +0100
+++ new/requests-futures-1.0.0/test_requests_futures.py 2019-06-11 
05:17:00.000000000 +0200
@@ -19,7 +19,7 @@
 
 HTTPBIN = environ.get('HTTPBIN_URL', 'http://httpbin.org/')
 logging.basicConfig(level=logging.DEBUG)
-logging.getLogger('urllib3.connectionpool').level = logging.WARN
+logging.getLogger('urllib3.connectionpool').level = logging.WARNING
 logging.getLogger('FuturesSession').level = logging.ERROR
 
 


Reply via email to