Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-phabricator for 
openSUSE:Factory checked in at 2022-10-06 07:42:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-phabricator (Old)
 and      /work/SRC/openSUSE:Factory/.python-phabricator.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-phabricator"

Thu Oct  6 07:42:11 2022 rev:3 rq:1008166 version:0.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-phabricator/python-phabricator.changes    
2021-06-02 22:11:42.516134741 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-phabricator.new.2275/python-phabricator.changes
  2022-10-06 07:42:22.344709788 +0200
@@ -1,0 +2,9 @@
+Tue Oct  4 23:02:50 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com>
+
+- version update to  0.9.1
+  * Update requests version.
+
+- version update to 0.9.0
+  * Add default retry to API calls. 
+
+-------------------------------------------------------------------

Old:
----
  phabricator-0.8.1.tar.gz

New:
----
  phabricator-0.9.1.tar.gz

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

Other differences:
------------------
++++++ python-phabricator.spec ++++++
--- /var/tmp/diff_new_pack.4lnj7g/_old  2022-10-06 07:42:22.888710999 +0200
+++ /var/tmp/diff_new_pack.4lnj7g/_new  2022-10-06 07:42:22.896711017 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-phabricator
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-phabricator
-Version:        0.8.1
+Version:        0.9.1
 Release:        0
 Summary:        Phabricator API Bindings
 License:        Apache-2.0

++++++ phabricator-0.8.1.tar.gz -> phabricator-0.9.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-phabricator-0.8.1/CHANGES 
new/python-phabricator-0.9.1/CHANGES
--- old/python-phabricator-0.8.1/CHANGES        2021-02-23 22:35:45.000000000 
+0100
+++ new/python-phabricator-0.9.1/CHANGES        2022-04-15 03:23:34.000000000 
+0200
@@ -1,3 +1,11 @@
+0.9.1
+
+* Update requests version.
+
+0.9.0
+
+* Add default retry to API calls.
+
 0.8.1
 
 * Fixed bug where built-in interface dict overwrote `interface` methods from 
Almanac (`interface.search`, `interface.edit`). The `Resource` attribute 
`interface` is renamed `_interface`.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-phabricator-0.8.1/bin/publish 
new/python-phabricator-0.9.1/bin/publish
--- old/python-phabricator-0.8.1/bin/publish    1970-01-01 01:00:00.000000000 
+0100
+++ new/python-phabricator-0.9.1/bin/publish    2022-04-15 03:23:34.000000000 
+0200
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -eo pipefail
+python setup.py sdist bdist_wheel
+twine upload dist/*
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-phabricator-0.8.1/phabricator/__init__.py 
new/python-phabricator-0.9.1/phabricator/__init__.py
--- old/python-phabricator-0.8.1/phabricator/__init__.py        2021-02-23 
22:35:45.000000000 +0100
+++ new/python-phabricator-0.9.1/phabricator/__init__.py        2022-04-15 
03:23:34.000000000 +0200
@@ -24,6 +24,7 @@
 import pkgutil
 import time
 import requests
+from requests.adapters import HTTPAdapter, Retry
 
 from ._compat import (
     MutableMapping, iteritems, string_types, urlencode,
@@ -228,6 +229,15 @@
         self.endpoint = endpoint
         self.method = method
         self.nested = nested
+        self.session = requests.Session()
+        adapter = HTTPAdapter(max_retries=Retry(
+            total=3,
+            connect=3,
+            allowed_methods=["HEAD", "GET", "POST", "PATCH", "PUT", "OPTIONS"]
+        ))
+        self.session.mount("https://";, adapter)
+        self.session.mount("http://";, adapter)
+
 
     def __getattr__(self, attr):
         if attr in getattr(self, '__dict__'):
@@ -304,7 +314,7 @@
 
         # TODO: Use HTTP "method" from interfaces.json
         path = '%s%s.%s' % (self.api.host, self.method, self.endpoint)
-        response = requests.post(path, data=body, headers=headers, 
timeout=self.api.timeout)
+        response = self.session.post(path, data=body, headers=headers, 
timeout=self.api.timeout)
 
         # Make sure we got a 2xx response indicating success
         if not response.status_code >= 200 or not response.status_code < 300:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-phabricator-0.8.1/setup.py 
new/python-phabricator-0.9.1/setup.py
--- old/python-phabricator-0.8.1/setup.py       2021-02-23 22:35:45.000000000 
+0100
+++ new/python-phabricator-0.9.1/setup.py       2022-04-15 03:23:34.000000000 
+0200
@@ -14,14 +14,14 @@
 
 setup(
     name='phabricator',
-    version='0.8.1',
+    version='0.9.1',
     author='Disqus',
     author_email='opensou...@disqus.com',
     url='http://github.com/disqus/python-phabricator',
     description='Phabricator API Bindings',
     packages=find_packages(),
     zip_safe=False,
-    install_requires=['requests>=2.22'],
+    install_requires=['requests>=2.26'],
     test_suite='phabricator.tests.test_phabricator',
     extras_require={
         'tests': tests_requires,

Reply via email to