Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-rt for openSUSE:Factory 
checked in at 2021-03-05 13:48:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rt (Old)
 and      /work/SRC/openSUSE:Factory/.python-rt.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-rt"

Fri Mar  5 13:48:04 2021 rev:8 rq:876821 version:2.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rt/python-rt.changes      2020-08-29 
20:41:41.277448569 +0200
+++ /work/SRC/openSUSE:Factory/.python-rt.new.2378/python-rt.changes    
2021-03-05 13:50:36.587913086 +0100
@@ -1,0 +2,7 @@
+Thu Feb 25 19:44:00 UTC 2021 - Sebastian Wagner <[email protected]>
+
+- Update to version 2.1.0:
+ - Add the possibility to provide cookies as dict to authenticate (#60)
+ - Add IS and IS NOT operators to search (#57)
+
+-------------------------------------------------------------------

Old:
----
  rt-2.0.1.tar.gz

New:
----
  rt-2.1.0.tar.gz

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

Other differences:
------------------
++++++ python-rt.spec ++++++
--- /var/tmp/diff_new_pack.43BYNs/_old  2021-03-05 13:50:37.203913645 +0100
+++ /var/tmp/diff_new_pack.43BYNs/_new  2021-03-05 13:50:37.207913649 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-rt
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 # Tests require internet connection
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-rt
-Version:        2.0.1
+Version:        2.1.0
 Release:        0
 Summary:        Python interface to Request Tracker API
 License:        GPL-3.0-only

++++++ rt-2.0.1.tar.gz -> rt-2.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-2.0.1/CHANGES new/rt-2.1.0/CHANGES
--- old/rt-2.0.1/CHANGES        2020-08-07 16:28:11.000000000 +0200
+++ new/rt-2.1.0/CHANGES        2021-02-25 18:54:40.000000000 +0100
@@ -1,3 +1,13 @@
+v2.1.0, 2020-02-25
+- Add the possibility to provide cookies as dict to authenticate
+- Add 'Referer' header for CSRF check
+
+v2.0.1, 2020-08-07
+- Fix UnicodeDecodeError in logging code for non-text attachments (#50, #51)
+- Documentation: Add a search example (#49)
+- edit_ticket: Handle possible empty responses: When a ticket is not modified, 
at least with RT 4.x, an empty
+  response could be returned. Gracefully handle that as success. (#47, #48)
+
 v2.0.0, 2020-02-11
 - Drop Python2 support
 - Adjust Travis tests for Python3-only, and add v3.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-2.0.1/PKG-INFO new/rt-2.1.0/PKG-INFO
--- old/rt-2.0.1/PKG-INFO       2020-08-07 16:28:20.254234300 +0200
+++ new/rt-2.1.0/PKG-INFO       2021-02-25 18:54:50.863699400 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: rt
-Version: 2.0.1
+Version: 2.1.0
 Summary: Python interface to Request Tracker API
 Home-page: https://github.com/CZ-NIC/python-rt
 Author: Jiri Machalek
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-2.0.1/rt/rt.py new/rt-2.1.0/rt/rt.py
--- old/rt-2.0.1/rt/rt.py       2020-08-07 16:28:11.000000000 +0200
+++ new/rt-2.1.0/rt/rt.py       2021-02-25 18:54:40.000000000 +0100
@@ -104,6 +104,7 @@
     def __init__(self, url: str,
                  default_login: typing.Optional[str] = None,
                  default_password: typing.Optional[str] = None,
+                 cookies: typing.Optional[dict] = None,
                  proxy: typing.Optional[str] = None,
                  default_queue: str = DEFAULT_QUEUE,
                  skip_login: bool = False,
@@ -136,6 +137,11 @@
         self.default_queue = default_queue
         self.login_result = None
         self.session = requests.session()
+        if cookies:
+            self.session.headers.update({'referer': url})
+            self.session.cookies.update(cookies)
+            self.login_result = True
+
         self.session.verify = verify_cert
         if proxy is not None:
             if url.lower().startswith("https://";):
@@ -390,6 +396,8 @@
                              __lt       for operator <
                              __like     for operator LIKE
                              __notlike  for operator NOT LIKE
+                             __is       for operator IS
+                             __isnot    for operator IS NOT
 
                              Setting values to keywords constrain search
                              result to the tickets satisfying all of them.
@@ -411,7 +419,9 @@
                 'exact': '=',
                 'notexact': '!=',
                 'like': ' LIKE ',
-                'notlike': ' NOT LIKE '
+                'notlike': ' NOT LIKE ',
+                'is': ' IS ',
+                'isnot': ' IS NOT '
             }
 
             for key, value in kwargs.items():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-2.0.1/rt.egg-info/PKG-INFO 
new/rt-2.1.0/rt.egg-info/PKG-INFO
--- old/rt-2.0.1/rt.egg-info/PKG-INFO   2020-08-07 16:28:20.000000000 +0200
+++ new/rt-2.1.0/rt.egg-info/PKG-INFO   2021-02-25 18:54:50.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: rt
-Version: 2.0.1
+Version: 2.1.0
 Summary: Python interface to Request Tracker API
 Home-page: https://github.com/CZ-NIC/python-rt
 Author: Jiri Machalek
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-2.0.1/setup.py new/rt-2.1.0/setup.py
--- old/rt-2.0.1/setup.py       2020-08-07 16:28:11.000000000 +0200
+++ new/rt-2.1.0/setup.py       2021-02-25 18:54:40.000000000 +0100
@@ -6,7 +6,7 @@
 README = open(os.path.join(here, 'README.rst')).read()
 
 setup(name='rt',
-      version='2.0.1',
+      version='2.1.0',
       description='Python interface to Request Tracker API',
       long_description=README,
       license='GNU General Public License (GPL)',

Reply via email to