Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-bugzilla for openSUSE:Factory 
checked in at 2022-12-23 10:20:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-bugzilla (Old)
 and      /work/SRC/openSUSE:Factory/.python-bugzilla.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-bugzilla"

Fri Dec 23 10:20:47 2022 rev:32 rq:1044082 version:3.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-bugzilla/python-bugzilla.changes  
2021-10-29 22:34:50.979696090 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-bugzilla.new.1563/python-bugzilla.changes    
    2022-12-23 10:20:50.863256130 +0100
@@ -1,0 +2,11 @@
+Wed Dec 21 08:41:46 UTC 2022 - Julio González Gil <jgonza...@suse.com>
+
+- Update to 3.2.0:
+  * Use soon-to-be-required Authorization header for RH bugzilla
+  * Remove cookie auth support
+  * Detect bugzilla.stage.redhat.com as RHBugzilla
+  * Add limit as option to build_query
+- Modified:
+  * 106-basic-auth.diff
+
+-------------------------------------------------------------------

Old:
----
  python-bugzilla-3.0.2.tar.gz

New:
----
  python-bugzilla-3.2.0.tar.gz

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

Other differences:
------------------
++++++ python-bugzilla.spec ++++++
--- /var/tmp/diff_new_pack.P7rS2B/_old  2022-12-23 10:20:51.967262439 +0100
+++ /var/tmp/diff_new_pack.P7rS2B/_new  2022-12-23 10:20:51.975262485 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-bugzilla
 #
-# 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
@@ -16,11 +16,10 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
 %define skip_python2 1
 Name:           python-bugzilla
-Version:        3.0.2
+Version:        3.2.0
 Release:        0
 Summary:        Python library for Bugzilla
 License:        GPL-2.0-or-later
@@ -74,10 +73,9 @@
 %python_uninstall_alternative bugzilla
 
 %check
-%python_expand py.test-%{$python_version}
+%pytest
 
 %files %{python_files}
-%defattr(-,root,root,-)
 %python_alternative %{_bindir}/bugzilla
 %python_alternative %{_mandir}/man1/bugzilla.1%{ext_man}
 %{python_sitelib}/bugzilla

++++++ 106-basic-auth.diff ++++++
--- /var/tmp/diff_new_pack.P7rS2B/_old  2022-12-23 10:20:51.999262622 +0100
+++ /var/tmp/diff_new_pack.P7rS2B/_new  2022-12-23 10:20:51.999262622 +0100
@@ -1,12 +1,6 @@
----
- bugzilla/base.py |    8 +++++++-
- 1 file changed, 7 insertions(+), 1 deletion(-)
-
-Index: python-bugzilla-3.0.2/bugzilla/base.py
-===================================================================
---- python-bugzilla-3.0.2.orig/bugzilla/base.py
-+++ python-bugzilla-3.0.2/bugzilla/base.py
-@@ -175,7 +175,8 @@ class Bugzilla(object):
+--- python-bugzilla-3.2.0.orig/bugzilla/base.py        2022-01-12 
19:09:08.000000000 +0100
++++ python-bugzilla-3.2.0/bugzilla/base.py     2022-12-21 09:32:01.324613243 
+0100
+@@ -174,7 +174,8 @@
      def __init__(self, url=-1, user=None, password=None, cookiefile=-1,
                   sslverify=True, tokenfile=-1, use_creds=True, api_key=None,
                   cert=None, configpaths=-1,
@@ -16,7 +10,7 @@
          """
          :param url: The bugzilla instance URL, which we will connect
              to immediately. Most users will want to specify this at
-@@ -212,6 +213,7 @@ class Bugzilla(object):
+@@ -207,6 +208,7 @@
          :param requests_session: An optional requests.Session object the
              API will use to contact the remote bugzilla instance. This
              way the API user can set up whatever auth bits they may need.
@@ -24,28 +18,25 @@
          """
          if url == -1:
              raise TypeError("Specify a valid bugzilla url, or pass url=None")
-@@ -253,6 +255,7 @@ class Bugzilla(object):
-         self._setcookiefile(cookiefile)
+@@ -246,6 +248,7 @@
+ 
          self._settokenfile(tokenfile)
          self._setconfigpath(configpaths)
 +        self._basic_auth = basic_auth
  
          if url:
              self.connect(url)
-@@ -607,6 +610,9 @@ class Bugzilla(object):
+@@ -598,6 +601,8 @@
+             raise ValueError("missing username")
          if not self.password:
              raise ValueError("missing password")
- 
 +        if self._basic_auth:
 +            self._backend.set_basic_auth(self.user, self.password)
-+
+ 
          payload = {"login": self.user}
          if restrict_login:
-             payload['restrict_login'] = True
-Index: python-bugzilla-3.0.2/bugzilla/_backendxmlrpc.py
-===================================================================
---- python-bugzilla-3.0.2.orig/bugzilla/_backendxmlrpc.py
-+++ python-bugzilla-3.0.2/bugzilla/_backendxmlrpc.py
+--- python-bugzilla-3.2.0.orig/bugzilla/_backendxmlrpc.py      2022-01-12 
19:09:08.000000000 +0100
++++ python-bugzilla-3.2.0/bugzilla/_backendxmlrpc.py           2022-12-21 
09:35:40.471278786 +0100
 @@ -2,6 +2,7 @@
  # See the COPYING file in the top-level directory.
  
@@ -54,23 +45,23 @@
  import sys
  from xmlrpc.client import (Binary, Fault, ProtocolError,
                             ServerProxy, Transport)
-@@ -136,6 +137,9 @@ class _BugzillaXMLRPCProxy(ServerProxy,
-             self.__bugzillasession.set_token_value(ret.get('token'))
-         return ret
+@@ -127,6 +128,9 @@
+         # pylint: enable=no-member
  
+         return ret
++    
 +    def clear_token(self):
 +        self.__bugzillasession.set_token_value(None)
-+
+ 
  
  class _BackendXMLRPC(_BackendBase):
-     """
-@@ -150,6 +154,16 @@ class _BackendXMLRPC(_BackendBase):
+@@ -142,6 +146,16 @@
      def is_xmlrpc(self):
          return True
  
 +    def set_basic_auth(self, user, password):
 +        """
-+        Set basic authentication method.
++       Set basic authentication method.
 +
 +        :return:
 +        """

++++++ python-bugzilla-3.0.2.tar.gz -> python-bugzilla-3.2.0.tar.gz ++++++
++++ 1977 lines of diff (skipped)

Reply via email to