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-11-22 23:04:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-rt (Old) and /work/SRC/openSUSE:Factory/.python-rt.new.1895 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rt" Mon Nov 22 23:04:42 2021 rev:10 rq:933166 version:2.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-rt/python-rt.changes 2021-04-19 21:07:28.576162222 +0200 +++ /work/SRC/openSUSE:Factory/.python-rt.new.1895/python-rt.changes 2021-11-22 23:05:39.213636174 +0100 @@ -1,0 +2,6 @@ +Mon Nov 15 20:53:35 UTC 2021 - Sebastian Wagner <sebix+novell....@sebix.at> + +- Update to version 2.2.0: + - Search has a parameter fields that can be used to return only particular fields for tickets. In some cases I noticed it will improve the speed of the query completion if you only need specific fields (#65 by @kimmoal). + +------------------------------------------------------------------- Old: ---- rt-2.1.1.tar.gz New: ---- rt-2.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-rt.spec ++++++ --- /var/tmp/diff_new_pack.dsaPQa/_old 2021-11-22 23:05:39.685634590 +0100 +++ /var/tmp/diff_new_pack.dsaPQa/_new 2021-11-22 23:05:39.685634590 +0100 @@ -19,7 +19,7 @@ # Tests require internet connection %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-rt -Version: 2.1.1 +Version: 2.2.0 Release: 0 Summary: Python interface to Request Tracker API License: GPL-3.0-only ++++++ rt-2.1.1.tar.gz -> rt-2.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-2.1.1/CHANGES new/rt-2.2.0/CHANGES --- old/rt-2.1.1/CHANGES 2021-04-08 13:12:05.000000000 +0200 +++ new/rt-2.2.0/CHANGES 2021-11-15 21:38:44.000000000 +0100 @@ -1,3 +1,6 @@ +v2.2.0, 2021-11-15 +- Search has a parameter fields that can be used to return only particular fields for tickets. In some cases I noticed it will improve the speed of the query completion if you only need specific fields (#65 by @kimmoal). + v2.1.1, 2021-03-23 - Fix support for custom field values containing newlines in API responses (#10, #11) (the previous change in v1.0.11 fixed API requests) (#64) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-2.1.1/PKG-INFO new/rt-2.2.0/PKG-INFO --- old/rt-2.1.1/PKG-INFO 2021-04-08 13:12:15.110848200 +0200 +++ new/rt-2.2.0/PKG-INFO 2021-11-15 21:38:54.438564300 +0100 @@ -1,107 +1,11 @@ -Metadata-Version: 1.2 +Metadata-Version: 2.1 Name: rt -Version: 2.1.1 +Version: 2.2.0 Summary: Python interface to Request Tracker API Home-page: https://github.com/CZ-NIC/python-rt Author: Jiri Machalek Author-email: edvard.rejt...@nic.cz License: GNU General Public License (GPL) -Description: - .. image:: https://travis-ci.org/CZ-NIC/python-rt.svg?branch=master - :target: https://travis-ci.org/CZ-NIC/python-rt - .. image:: https://readthedocs.org/projects/python-rt/badge/?version=latest - :target: https://python-rt.readthedocs.io/en/latest/?badge=latest - :alt: Documentation Status - - ============================================== - Rt - Python interface to Request Tracker API - ============================================== - - Python implementation of REST API described here: https://rt-wiki.bestpractical.com/wiki/REST - - **Note:** Please note that starting with the major release of v2.0.0, this library requires a Python version >= 3.5. - In case you still require a Python 2 version or one compatible with Python < 3.5, please use a version < 2.0.0 of this library. - - - REQUIREMENTS - ============ - - This module uses following Python modules: - - - requests (http://docs.python-requests.org/) - - Unit-tests are implemented using: - - nose (http://nose.readthedocs.org) - - - INSTALLATION - ============ - - Install the python-rt package using:: - - pip install rt - - - LICENCE - ======= - - This module is distributed under the terms of GNU General Public Licence v3 - and was developed by CZ.NIC Labs - research and development department of - CZ.NIC association - top level domain registy for .CZ. Copy of the GNU - General Public License is distributed along with this module. - - USAGE - ===== - - An example is worth a thousand words:: - - >>> import rt - >>> tracker = rt.Rt('http://localhost/rt/REST/1.0/', 'user_login', 'user_pass') - >>> tracker.login() - True - >>> map(lambda x: x['id'], tracker.search(Queue='helpdesk', Status='open')) - ['ticket/1', 'ticket/2', 'ticket/10', 'ticket/15'] - >>> tracker.create_ticket(Queue='helpdesk', \ - ... Subject='Coffee (important)', Text='Help I Ran Out of Coffee!') - 19 - >>> tracker.edit_ticket(19, Requestors='addic...@example.com') - True - >>> tracker.reply(19, text='Do you know Starbucks?') - True - >>> tracker.logout() - True - - Get the last important updates from a specific queue that have been updated recently:: - - >>> import rt - >>> tracker = rt.Rt('http://localhost/rt/REST/1.0/', http_auth=HTTPBasicAuth(os.environ['rtuser'], os.environ['rtpasswd'])) - >>> tracker.default_queue = "my-queue" - >>> fifteen_minutes_ago = str(datetime.datetime.now() - datetime.timedelta(minutes=15)) - >>> tickets = tracker.last_updated(since=fifteen_minutes_ago) - >>> for ticket in tickets: - >>> id = ticket['id'][7:] - >>> history = tracker.get_short_history(id) - >>> last_update = list(reversed([h for h in history if h[1].startswith('Correspondence added') or h[1].startswith('Comments added')])) - >>> hid = tracker.get_history(id, last_update[0][0] if last_update else history[0][0])[0] - >>> print("http://localhost/rt/Ticket/Display.html?id=%s" % id) - >>> print(hid['Content']) - >>> print("\n") - - - Please use docstrings to see how to use different functions. They are written - in ReStructuredText. You can also generate HTML documentation by running - ``make html`` in doc directory (Sphinx required). - - OFFICIAL SITE - ============= - - Project site and issue tracking: - https://github.com/CZ-NIC/python-rt - - Git repository: - git://github.com/CZ-NIC/python-rt.git - - Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console @@ -113,3 +17,103 @@ Classifier: Programming Language :: Python :: 3 Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: >=3.5 +License-File: COPYING +License-File: AUTHORS + + +.. image:: https://travis-ci.org/CZ-NIC/python-rt.svg?branch=master + :target: https://travis-ci.org/CZ-NIC/python-rt +.. image:: https://readthedocs.org/projects/python-rt/badge/?version=latest + :target: https://python-rt.readthedocs.io/en/latest/?badge=latest + :alt: Documentation Status + +============================================== + Rt - Python interface to Request Tracker API +============================================== + +Python implementation of REST API described here: https://rt-wiki.bestpractical.com/wiki/REST + +**Note:** Please note that starting with the major release of v2.0.0, this library requires a Python version >= 3.5. +In case you still require a Python 2 version or one compatible with Python < 3.5, please use a version < 2.0.0 of this library. + + +REQUIREMENTS +============ + +This module uses following Python modules: + +- requests (http://docs.python-requests.org/) + +Unit-tests are implemented using: +- nose (http://nose.readthedocs.org) + + +INSTALLATION +============ + +Install the python-rt package using:: + + pip install rt + + +LICENCE +======= + +This module is distributed under the terms of GNU General Public Licence v3 +and was developed by CZ.NIC Labs - research and development department of +CZ.NIC association - top level domain registy for .CZ. Copy of the GNU +General Public License is distributed along with this module. + +USAGE +===== + +An example is worth a thousand words:: + + >>> import rt + >>> tracker = rt.Rt('http://localhost/rt/REST/1.0/', 'user_login', 'user_pass') + >>> tracker.login() + True + >>> map(lambda x: x['id'], tracker.search(Queue='helpdesk', Status='open')) + ['ticket/1', 'ticket/2', 'ticket/10', 'ticket/15'] + >>> tracker.create_ticket(Queue='helpdesk', \ + ... Subject='Coffee (important)', Text='Help I Ran Out of Coffee!') + 19 + >>> tracker.edit_ticket(19, Requestors='addic...@example.com') + True + >>> tracker.reply(19, text='Do you know Starbucks?') + True + >>> tracker.logout() + True + +Get the last important updates from a specific queue that have been updated recently:: + + >>> import rt + >>> tracker = rt.Rt('http://localhost/rt/REST/1.0/', http_auth=HTTPBasicAuth(os.environ['rtuser'], os.environ['rtpasswd'])) + >>> tracker.default_queue = "my-queue" + >>> fifteen_minutes_ago = str(datetime.datetime.now() - datetime.timedelta(minutes=15)) + >>> tickets = tracker.last_updated(since=fifteen_minutes_ago) + >>> for ticket in tickets: + >>> id = ticket['id'][7:] + >>> history = tracker.get_short_history(id) + >>> last_update = list(reversed([h for h in history if h[1].startswith('Correspondence added') or h[1].startswith('Comments added')])) + >>> hid = tracker.get_history(id, last_update[0][0] if last_update else history[0][0])[0] + >>> print("http://localhost/rt/Ticket/Display.html?id=%s" % id) + >>> print(hid['Content']) + >>> print("\n") + + +Please use docstrings to see how to use different functions. They are written +in ReStructuredText. You can also generate HTML documentation by running +``make html`` in doc directory (Sphinx required). + +OFFICIAL SITE +============= + +Project site and issue tracking: + https://github.com/CZ-NIC/python-rt + +Git repository: + git://github.com/CZ-NIC/python-rt.git + + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-2.1.1/rt/rt.py new/rt-2.2.0/rt/rt.py --- old/rt-2.1.1/rt/rt.py 2021-04-08 13:12:05.000000000 +0200 +++ new/rt-2.2.0/rt/rt.py 2021-11-15 21:38:44.000000000 +0100 @@ -457,7 +457,8 @@ return self.search(Queue=queue, order='-LastUpdated', LastUpdatedBy__notexact=self.default_login, LastUpdated__gt=since) def search(self, Queue: typing.Optional[typing.Union[str, object]] = None, order: typing.Optional[str] = None, - raw_query: typing.Optional[str] = None, Format: str = 'l', **kwargs: typing.Any) -> typing.List[dict]: + raw_query: typing.Optional[str] = None, Format: str = 'l', Fields: typing.Optional[typing.List[str]] = None, + **kwargs: typing.Any) -> typing.List[dict]: """ Search arbitrary needles in given fields and queue. Example:: @@ -546,6 +547,9 @@ get_params['orderby'] = order get_params['format'] = Format + if Fields: + get_params['fields'] = ''.join(Fields) + msg = self.__request(url, get_params=get_params) lines = msg.split('\n') if len(lines) > 2: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-2.1.1/rt.egg-info/PKG-INFO new/rt-2.2.0/rt.egg-info/PKG-INFO --- old/rt-2.1.1/rt.egg-info/PKG-INFO 2021-04-08 13:12:14.000000000 +0200 +++ new/rt-2.2.0/rt.egg-info/PKG-INFO 2021-11-15 21:38:53.000000000 +0100 @@ -1,107 +1,11 @@ -Metadata-Version: 1.2 +Metadata-Version: 2.1 Name: rt -Version: 2.1.1 +Version: 2.2.0 Summary: Python interface to Request Tracker API Home-page: https://github.com/CZ-NIC/python-rt Author: Jiri Machalek Author-email: edvard.rejt...@nic.cz License: GNU General Public License (GPL) -Description: - .. image:: https://travis-ci.org/CZ-NIC/python-rt.svg?branch=master - :target: https://travis-ci.org/CZ-NIC/python-rt - .. image:: https://readthedocs.org/projects/python-rt/badge/?version=latest - :target: https://python-rt.readthedocs.io/en/latest/?badge=latest - :alt: Documentation Status - - ============================================== - Rt - Python interface to Request Tracker API - ============================================== - - Python implementation of REST API described here: https://rt-wiki.bestpractical.com/wiki/REST - - **Note:** Please note that starting with the major release of v2.0.0, this library requires a Python version >= 3.5. - In case you still require a Python 2 version or one compatible with Python < 3.5, please use a version < 2.0.0 of this library. - - - REQUIREMENTS - ============ - - This module uses following Python modules: - - - requests (http://docs.python-requests.org/) - - Unit-tests are implemented using: - - nose (http://nose.readthedocs.org) - - - INSTALLATION - ============ - - Install the python-rt package using:: - - pip install rt - - - LICENCE - ======= - - This module is distributed under the terms of GNU General Public Licence v3 - and was developed by CZ.NIC Labs - research and development department of - CZ.NIC association - top level domain registy for .CZ. Copy of the GNU - General Public License is distributed along with this module. - - USAGE - ===== - - An example is worth a thousand words:: - - >>> import rt - >>> tracker = rt.Rt('http://localhost/rt/REST/1.0/', 'user_login', 'user_pass') - >>> tracker.login() - True - >>> map(lambda x: x['id'], tracker.search(Queue='helpdesk', Status='open')) - ['ticket/1', 'ticket/2', 'ticket/10', 'ticket/15'] - >>> tracker.create_ticket(Queue='helpdesk', \ - ... Subject='Coffee (important)', Text='Help I Ran Out of Coffee!') - 19 - >>> tracker.edit_ticket(19, Requestors='addic...@example.com') - True - >>> tracker.reply(19, text='Do you know Starbucks?') - True - >>> tracker.logout() - True - - Get the last important updates from a specific queue that have been updated recently:: - - >>> import rt - >>> tracker = rt.Rt('http://localhost/rt/REST/1.0/', http_auth=HTTPBasicAuth(os.environ['rtuser'], os.environ['rtpasswd'])) - >>> tracker.default_queue = "my-queue" - >>> fifteen_minutes_ago = str(datetime.datetime.now() - datetime.timedelta(minutes=15)) - >>> tickets = tracker.last_updated(since=fifteen_minutes_ago) - >>> for ticket in tickets: - >>> id = ticket['id'][7:] - >>> history = tracker.get_short_history(id) - >>> last_update = list(reversed([h for h in history if h[1].startswith('Correspondence added') or h[1].startswith('Comments added')])) - >>> hid = tracker.get_history(id, last_update[0][0] if last_update else history[0][0])[0] - >>> print("http://localhost/rt/Ticket/Display.html?id=%s" % id) - >>> print(hid['Content']) - >>> print("\n") - - - Please use docstrings to see how to use different functions. They are written - in ReStructuredText. You can also generate HTML documentation by running - ``make html`` in doc directory (Sphinx required). - - OFFICIAL SITE - ============= - - Project site and issue tracking: - https://github.com/CZ-NIC/python-rt - - Git repository: - git://github.com/CZ-NIC/python-rt.git - - Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console @@ -113,3 +17,103 @@ Classifier: Programming Language :: Python :: 3 Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: >=3.5 +License-File: COPYING +License-File: AUTHORS + + +.. image:: https://travis-ci.org/CZ-NIC/python-rt.svg?branch=master + :target: https://travis-ci.org/CZ-NIC/python-rt +.. image:: https://readthedocs.org/projects/python-rt/badge/?version=latest + :target: https://python-rt.readthedocs.io/en/latest/?badge=latest + :alt: Documentation Status + +============================================== + Rt - Python interface to Request Tracker API +============================================== + +Python implementation of REST API described here: https://rt-wiki.bestpractical.com/wiki/REST + +**Note:** Please note that starting with the major release of v2.0.0, this library requires a Python version >= 3.5. +In case you still require a Python 2 version or one compatible with Python < 3.5, please use a version < 2.0.0 of this library. + + +REQUIREMENTS +============ + +This module uses following Python modules: + +- requests (http://docs.python-requests.org/) + +Unit-tests are implemented using: +- nose (http://nose.readthedocs.org) + + +INSTALLATION +============ + +Install the python-rt package using:: + + pip install rt + + +LICENCE +======= + +This module is distributed under the terms of GNU General Public Licence v3 +and was developed by CZ.NIC Labs - research and development department of +CZ.NIC association - top level domain registy for .CZ. Copy of the GNU +General Public License is distributed along with this module. + +USAGE +===== + +An example is worth a thousand words:: + + >>> import rt + >>> tracker = rt.Rt('http://localhost/rt/REST/1.0/', 'user_login', 'user_pass') + >>> tracker.login() + True + >>> map(lambda x: x['id'], tracker.search(Queue='helpdesk', Status='open')) + ['ticket/1', 'ticket/2', 'ticket/10', 'ticket/15'] + >>> tracker.create_ticket(Queue='helpdesk', \ + ... Subject='Coffee (important)', Text='Help I Ran Out of Coffee!') + 19 + >>> tracker.edit_ticket(19, Requestors='addic...@example.com') + True + >>> tracker.reply(19, text='Do you know Starbucks?') + True + >>> tracker.logout() + True + +Get the last important updates from a specific queue that have been updated recently:: + + >>> import rt + >>> tracker = rt.Rt('http://localhost/rt/REST/1.0/', http_auth=HTTPBasicAuth(os.environ['rtuser'], os.environ['rtpasswd'])) + >>> tracker.default_queue = "my-queue" + >>> fifteen_minutes_ago = str(datetime.datetime.now() - datetime.timedelta(minutes=15)) + >>> tickets = tracker.last_updated(since=fifteen_minutes_ago) + >>> for ticket in tickets: + >>> id = ticket['id'][7:] + >>> history = tracker.get_short_history(id) + >>> last_update = list(reversed([h for h in history if h[1].startswith('Correspondence added') or h[1].startswith('Comments added')])) + >>> hid = tracker.get_history(id, last_update[0][0] if last_update else history[0][0])[0] + >>> print("http://localhost/rt/Ticket/Display.html?id=%s" % id) + >>> print(hid['Content']) + >>> print("\n") + + +Please use docstrings to see how to use different functions. They are written +in ReStructuredText. You can also generate HTML documentation by running +``make html`` in doc directory (Sphinx required). + +OFFICIAL SITE +============= + +Project site and issue tracking: + https://github.com/CZ-NIC/python-rt + +Git repository: + git://github.com/CZ-NIC/python-rt.git + + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-2.1.1/setup.py new/rt-2.2.0/setup.py --- old/rt-2.1.1/setup.py 2021-04-08 13:12:05.000000000 +0200 +++ new/rt-2.2.0/setup.py 2021-11-15 21:38:44.000000000 +0100 @@ -6,7 +6,7 @@ README = open(os.path.join(here, 'README.rst')).read() setup(name='rt', - version='2.1.1', + version='2.2.0', description='Python interface to Request Tracker API', long_description=README, license='GNU General Public License (GPL)',