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 2022-12-03 12:48:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-rt (Old) and /work/SRC/openSUSE:Factory/.python-rt.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rt" Sat Dec 3 12:48:31 2022 rev:16 rq:1039758 version:3.0.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-rt/python-rt.changes 2022-07-11 19:11:08.443760511 +0200 +++ /work/SRC/openSUSE:Factory/.python-rt.new.1835/python-rt.changes 2022-12-03 12:48:33.038125787 +0100 @@ -1,0 +2,6 @@ +Sat Dec 3 00:27:47 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- Update to version 3.0.4: + * Workaround for parsing issues with tickets with only 1 attachment (#80), due to probably an upstream bug. + +------------------------------------------------------------------- Old: ---- rt-3.0.3.tar.gz New: ---- rt-3.0.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-rt.spec ++++++ --- /var/tmp/diff_new_pack.KEHyzq/_old 2022-12-03 12:48:35.026136892 +0100 +++ /var/tmp/diff_new_pack.KEHyzq/_new 2022-12-03 12:48:35.074137160 +0100 @@ -19,7 +19,7 @@ # Tests require internet connection %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-rt -Version: 3.0.3 +Version: 3.0.4 Release: 0 Summary: Python interface to Request Tracker API License: GPL-3.0-only ++++++ rt-3.0.3.tar.gz -> rt-3.0.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.3/CHANGELOG.md new/rt-3.0.4/CHANGELOG.md --- old/rt-3.0.3/CHANGELOG.md 2022-06-16 00:27:27.000000000 +0200 +++ new/rt-3.0.4/CHANGELOG.md 2022-11-08 01:15:08.000000000 +0100 @@ -3,6 +3,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v3.0.4], 2022-11-08 +### Fixes +- Workaround for parsing issues with tickets with only 1 attachment (#80), due to probably an upstream bug. + ## [v3.0.3], 2022-06-16 ### Changes - Move package metadata and configuration from setup.cfg to pyproject.toml. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.3/PKG-INFO new/rt-3.0.4/PKG-INFO --- old/rt-3.0.3/PKG-INFO 2022-06-16 00:27:53.170233500 +0200 +++ new/rt-3.0.4/PKG-INFO 2022-11-08 01:15:23.136767600 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: rt -Version: 3.0.3 +Version: 3.0.4 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.3/doc/changelog.rst new/rt-3.0.4/doc/changelog.rst --- old/rt-3.0.3/doc/changelog.rst 2022-06-16 00:27:27.000000000 +0200 +++ new/rt-3.0.4/doc/changelog.rst 2022-11-08 01:15:08.000000000 +0100 @@ -1,6 +1,12 @@ Change Log ========== +Version 3.0.4 (2022-11-08) +---------------------------- +Fixes +^^^^^ +- Workaround for parsing issues with tickets with only 1 attachment (#80), due to probably an upstream bug. + Version 3.0.3 (2022-06-16) ---------------------------- Changes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.3/pyproject.toml new/rt-3.0.4/pyproject.toml --- old/rt-3.0.3/pyproject.toml 2022-06-16 00:27:27.000000000 +0200 +++ new/rt-3.0.4/pyproject.toml 2022-11-08 01:15:08.000000000 +0100 @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"] +requires = ["setuptools>=61.2", "setuptools_scm[toml]>=6.2"] build-backend = "setuptools.build_meta" [project] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.3/rt/rest1.py new/rt-3.0.4/rt/rest1.py --- old/rt-3.0.3/rt/rest1.py 2022-06-16 00:27:27.000000000 +0200 +++ new/rt-3.0.4/rt/rest1.py 2022-11-08 01:15:08.000000000 +0100 @@ -113,7 +113,7 @@ default_queue: str = DEFAULT_QUEUE, skip_login: bool = False, verify_cert: typing.Optional[typing.Union[str, bool]] = True, - http_auth: requests.auth.AuthBase = None) -> None: + http_auth: typing.Optional[requests.auth.AuthBase] = None) -> None: """ API initialization. :keyword url: Base URL for Request Tracker API. @@ -162,8 +162,8 @@ def __request(self, selector: str, - get_params: typing.Dict[str, typing.Any] = None, - post_data: typing.Dict[str, typing.Any] = None, + get_params: typing.Optional[typing.Dict[str, typing.Any]] = None, + post_data: typing.Optional[typing.Dict[str, typing.Any]] = None, files: typing.Optional[typing.List[typing.Tuple[str, typing.IO, typing.Optional[str]]]] = None, without_login: bool = False, text_response: bool = True) -> str: @@ -208,7 +208,7 @@ self.logger.debug("### %s", datetime.datetime.now().isoformat()) self.logger.debug("Request URL: %s", url) self.logger.debug("Request method: %s", method) - self.logger.debug("Respone status code: %s", str(response.status_code)) + self.logger.debug("Response status code: %s", str(response.status_code)) self.logger.debug("Response content:") self.logger.debug(response.content.decode(errors='ignore')) @@ -924,7 +924,13 @@ return None attachment_infos = [] if (self.__get_status_code(lines[0]) == 200) and (len(lines) >= 4): - for line in lines[4:]: + # The format of tickets with 1 attachments varies from those with >=2. + # *Attachments: ...* starts at line 3 with single attachment tickets, whereas + # with >=2 attachment tickets, it starts at line 4. As in the latter case, + # line 3 is just an empty line, we changed this to "3:" in order to work with + # single attachment tickets. + # -> Bug in RT + for line in lines[3:]: info = self.RE_PATTERNS['attachments_list_pattern'].match(line) if info: attachment_infos.append(info.groups()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.3/rt.egg-info/PKG-INFO new/rt-3.0.4/rt.egg-info/PKG-INFO --- old/rt-3.0.3/rt.egg-info/PKG-INFO 2022-06-16 00:27:52.000000000 +0200 +++ new/rt-3.0.4/rt.egg-info/PKG-INFO 2022-11-08 01:15:23.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: rt -Version: 3.0.3 +Version: 3.0.4 Summary: Python interface to Request Tracker API Author-email: Georges Toth <georges.t...@govcert.etat.lu> License: GNU General Public License v3 (GPLv3)