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 2023-08-18 19:29:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rt (Old)
 and      /work/SRC/openSUSE:Factory/.python-rt.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-rt"

Fri Aug 18 19:29:06 2023 rev:18 rq:1104646 version:3.0.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rt/python-rt.changes      2023-07-19 
19:10:27.400503907 +0200
+++ /work/SRC/openSUSE:Factory/.python-rt.new.1766/python-rt.changes    
2023-08-18 19:29:40.283457099 +0200
@@ -1,0 +2,6 @@
+Fri Aug 11 07:39:10 UTC 2023 - Sebastian Wagner <se...@sebix.at>
+
+- update to version 3.0.7:
+ - Fix sorting when using search() method (#90)
+
+-------------------------------------------------------------------
@@ -25 +31 @@
-- update to version 3.0.2
+- update to version 3.0.2:

Old:
----
  rt-3.0.6.tar.gz

New:
----
  rt-3.0.7.tar.gz

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

Other differences:
------------------
++++++ python-rt.spec ++++++
--- /var/tmp/diff_new_pack.qKBwmJ/_old  2023-08-18 19:29:41.047458469 +0200
+++ /var/tmp/diff_new_pack.qKBwmJ/_new  2023-08-18 19:29:41.055458484 +0200
@@ -16,10 +16,8 @@
 #
 
 
-# Tests require internet connection
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-rt
-Version:        3.0.6
+Version:        3.0.7
 Release:        0
 Summary:        Python interface to Request Tracker API
 License:        GPL-3.0-only
@@ -27,11 +25,14 @@
 URL:            https://github.com/CZ-NIC/python-rt
 Source:         
https://files.pythonhosted.org/packages/source/r/rt/rt-%{version}.tar.gz
 Source1:        setup.cfg
+BuildRequires:  %{python_module base >= 3.7}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-requests
-Requires:       python-six
+Requires:       python-requests-toolbelt
 BuildArch:      noarch
 
 %python_subpackages
@@ -42,17 +43,22 @@
 %prep
 %setup -q -n rt-%{version}
 cp %{SOURCE1} setup.cfg
+sed -i 's/^dynamic = \["version"]/version = "%{version}"/' pyproject.toml
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%check
+# Tests require internet connection
+
 %files %{python_files}
 %doc AUTHORS CHANGELOG.md README.rst
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/rt-%{version}*-info*
+%{python_sitelib}/rt/
 
 %changelog

++++++ rt-3.0.6.tar.gz -> rt-3.0.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-3.0.6/.codespell_ignore 
new/rt-3.0.7/.codespell_ignore
--- old/rt-3.0.6/.codespell_ignore      1970-01-01 01:00:00.000000000 +0100
+++ new/rt-3.0.7/.codespell_ignore      2023-07-27 23:38:56.000000000 +0200
@@ -0,0 +1,2 @@
+requestor
+requestors
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-3.0.6/CHANGELOG.md new/rt-3.0.7/CHANGELOG.md
--- old/rt-3.0.6/CHANGELOG.md   2023-06-21 17:48:45.000000000 +0200
+++ new/rt-3.0.7/CHANGELOG.md   2023-07-27 23:38:56.000000000 +0200
@@ -3,8 +3,12 @@
 
 This project adheres to [Semantic 
Versioning](https://semver.org/spec/v2.0.0.html).
 
+## [v3.0.7], 2023-07-27
+### Fixes
+- Fix sorting when using search() method (#90)
+
 ## [v3.0.6], 2023-06-21
-### Added
+### Fixes
 - Fixed bug in rest1 (#86)
 
 ## [v3.0.5], 2023-02-02
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-3.0.6/PKG-INFO new/rt-3.0.7/PKG-INFO
--- old/rt-3.0.6/PKG-INFO       2023-06-21 17:49:00.058401000 +0200
+++ new/rt-3.0.7/PKG-INFO       2023-07-27 23:39:13.090179400 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: rt
-Version: 3.0.6
+Version: 3.0.7
 Summary: Python interface to Request Tracker API
 Author-email: Georges Toth <georges.t...@govcert.etat.lu>
 License: GNU General Public License v3 (GPLv3)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-3.0.6/doc/changelog.rst 
new/rt-3.0.7/doc/changelog.rst
--- old/rt-3.0.6/doc/changelog.rst      2023-06-21 17:48:45.000000000 +0200
+++ new/rt-3.0.7/doc/changelog.rst      2023-07-27 23:38:56.000000000 +0200
@@ -1,6 +1,24 @@
 Change Log
 ==========
 
+Version 3.0.7 (2023-07-27)
+----------------------------
+Fixes
+^^^^^
+- Fix sorting when using search() method (#90)
+
+Version 3.0.6 (2023-06-21)
+----------------------------
+Fixes
+^^^^^
+- Fixed bug in rest1 (#86)
+
+Version 3.0.5 (2023-02-02)
+----------------------------
+Fixes
+^^^^^
+- Added support for specifying custom fields on user creation/edit (#82).
+
 Version 3.0.4 (2022-11-08)
 ----------------------------
 Fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-3.0.6/rt/rest2.py new/rt-3.0.7/rt/rest2.py
--- old/rt-3.0.6/rt/rest2.py    2023-06-21 17:48:45.000000000 +0200
+++ new/rt-3.0.7/rt/rest2.py    2023-07-27 23:38:56.000000000 +0200
@@ -514,7 +514,11 @@
             query.append(raw_query)
         get_params['query'] = ' AND '.join('(' + part + ')' for part in query)
         if order:
-            get_params['orderby'] = order
+            if order.startswith("-"):
+                get_params['orderby'] = order[1:]
+                get_params['order'] = "DESC"
+            else:
+                get_params['orderby'] = order
 
         if query_format == 'l':
             get_params['fields'] = 
'Owner,Status,Created,Subject,Queue,CustomFields,Requestor,Cc,AdminCc,Started,Created,TimeEstimated,Due,Type,InitialPriority,Priority,TimeLeft,LastUpdated'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-3.0.6/rt.egg-info/PKG-INFO 
new/rt-3.0.7/rt.egg-info/PKG-INFO
--- old/rt-3.0.6/rt.egg-info/PKG-INFO   2023-06-21 17:49:00.000000000 +0200
+++ new/rt-3.0.7/rt.egg-info/PKG-INFO   2023-07-27 23:39:13.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: rt
-Version: 3.0.6
+Version: 3.0.7
 Summary: Python interface to Request Tracker API
 Author-email: Georges Toth <georges.t...@govcert.etat.lu>
 License: GNU General Public License v3 (GPLv3)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-3.0.6/rt.egg-info/SOURCES.txt 
new/rt-3.0.7/rt.egg-info/SOURCES.txt
--- old/rt-3.0.6/rt.egg-info/SOURCES.txt        2023-06-21 17:49:00.000000000 
+0200
+++ new/rt-3.0.7/rt.egg-info/SOURCES.txt        2023-07-27 23:39:13.000000000 
+0200
@@ -1,3 +1,4 @@
+.codespell_ignore
 .editorconfig
 .flake8
 .pylintrc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rt-3.0.6/tests/test_rest1.py 
new/rt-3.0.7/tests/test_rest1.py
--- old/rt-3.0.6/tests/test_rest1.py    2023-06-21 17:48:45.000000000 +0200
+++ new/rt-3.0.7/tests/test_rest1.py    2023-07-27 23:38:56.000000000 +0200
@@ -24,6 +24,8 @@
 import string
 import unittest
 
+import requests.utils
+
 import rt.rest1
 
 
@@ -76,6 +78,17 @@
     def _have_creds(*creds_seq):
         return all(creds[name].get('url') for creds in creds_seq for name in 
creds)
 
+    @staticmethod
+    def _fix_unsecure_cookie(tracker: rt.rest1.Rt) -> None:
+        """As of RT 5.0.4, cookies returned by the REST API are marked as 
secure by default.
+
+        This breaks tests though as we are connecting via HTTP. This method 
fixes these cookies
+        for the tests to work.
+        """
+        cookies = requests.utils.dict_from_cookiejar(tracker.session.cookies)
+        tracker.session.cookies.clear()
+        tracker.session.cookies.update(cookies)
+
     @unittest.skipUnless(_have_creds(RT_VALID_CREDENTIALS,
                                      RT_INVALID_CREDENTIALS,
                                      RT_MISSING_CREDENTIALS,
@@ -85,6 +98,8 @@
         for name in self.RT_VALID_CREDENTIALS:
             tracker = rt.rest1.Rt(self.RT_VALID_CREDENTIALS[name]['url'], 
**self.RT_VALID_CREDENTIALS[name]['support'])
             self.assertTrue(tracker.login(), 'Invalid login to RT demo site ' 
+ name)
+            # unsecure cookie
+            self._fix_unsecure_cookie(tracker)
             self.assertTrue(tracker.logout(), 'Invalid logout from RT demo 
site ' + name)
         for name, params in self.RT_INVALID_CREDENTIALS.items():
             tracker = rt.rest1.Rt(**params)
@@ -108,6 +123,8 @@
             default_password = 
self.RT_VALID_CREDENTIALS[name]['support']['default_password']
             tracker = rt.rest1.Rt(url, default_login=default_login, 
default_password=default_password)
             self.assertTrue(tracker.login(), 'Invalid login to RT demo site ' 
+ name)
+            # unsecure cookie
+            self._fix_unsecure_cookie(tracker)
             # empty search result
             search_result = tracker.search(Subject=ticket_subject)
             self.assertEqual(search_result, [], 'Search for ticket with random 
subject returned non empty list.')
@@ -198,6 +215,9 @@
             tracker = rt.rest1.Rt(url, default_login=default_login, 
default_password=default_password)
             self.assertTrue(tracker.login(), 'Invalid login to RT demo site ' 
+ name)
 
+            # unsecure cookie
+            self._fix_unsecure_cookie(tracker)
+
             ticket_id = tracker.create_ticket(Subject=ticket_subject, 
Text=ticket_text)
             self.assertTrue(ticket_id > -1, 'Creating ticket failed.')
 

Reply via email to