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-06-28 15:22:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-rt (Old) and /work/SRC/openSUSE:Factory/.python-rt.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rt" Tue Jun 28 15:22:56 2022 rev:14 rq:985526 version:3.0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-rt/python-rt.changes 2022-06-03 14:17:06.057350370 +0200 +++ /work/SRC/openSUSE:Factory/.python-rt.new.1548/python-rt.changes 2022-06-28 15:23:16.062022583 +0200 @@ -1,0 +2,8 @@ +Tue Jun 21 08:49:07 UTC 2022 - Sebastian Wagner <sebix+novell....@sebix.at> + +- update to version 3.0.3: + - Move package metadata and configuration from setup.cfg to pyproject.toml. +- update to version 3.0.2 + - Fix edit_user() response handling in case a user_id name (str) was passed instead of a number. + +------------------------------------------------------------------- Old: ---- rt-3.0.1.tar.gz New: ---- rt-3.0.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-rt.spec ++++++ --- /var/tmp/diff_new_pack.tS8wvT/_old 2022-06-28 15:23:16.578023353 +0200 +++ /var/tmp/diff_new_pack.tS8wvT/_new 2022-06-28 15:23:16.582023359 +0200 @@ -19,7 +19,7 @@ # Tests require internet connection %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-rt -Version: 3.0.1 +Version: 3.0.3 Release: 0 Summary: Python interface to Request Tracker API License: GPL-3.0-only ++++++ rt-3.0.1.tar.gz -> rt-3.0.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.1/.flake8 new/rt-3.0.3/.flake8 --- old/rt-3.0.1/.flake8 1970-01-01 01:00:00.000000000 +0100 +++ new/rt-3.0.3/.flake8 2022-06-16 00:27:27.000000000 +0200 @@ -0,0 +1,3 @@ +[flake8] +max-line-length = 240 +ignore = D210, D400, W503, D205, D209, D401, E126, E124, N803 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.1/CHANGELOG.md new/rt-3.0.3/CHANGELOG.md --- old/rt-3.0.1/CHANGELOG.md 2022-05-26 23:55:25.000000000 +0200 +++ new/rt-3.0.3/CHANGELOG.md 2022-06-16 00:27:27.000000000 +0200 @@ -3,6 +3,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v3.0.3], 2022-06-16 +### Changes +- Move package metadata and configuration from setup.cfg to pyproject.toml. + +## [v3.0.2], 2022-06-12 +### Fixes +- Fix edit_user() response handling in case a user_id name (str) was passed instead of a number. + ## [v3.0.1], 2022-05-26 ### Fixes - Make sure to include _hyperlinks in history items diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.1/PKG-INFO new/rt-3.0.3/PKG-INFO --- old/rt-3.0.1/PKG-INFO 2022-05-26 23:55:46.536424600 +0200 +++ new/rt-3.0.3/PKG-INFO 2022-06-16 00:27:53.170233500 +0200 @@ -1,11 +1,10 @@ Metadata-Version: 2.1 Name: rt -Version: 3.0.1 +Version: 3.0.3 Summary: Python interface to Request Tracker API -Home-page: https://github.com/python-rt/python-rt -Author: Georges Toth -Author-email: georges.t...@govcert.etat.lu +Author-email: Georges Toth <georges.t...@govcert.etat.lu> License: GNU General Public License v3 (GPLv3) +Project-URL: Homepage, https://github.com/python-rt/python-rt Project-URL: Documentation, https://python-rt.readthedocs.io/ Project-URL: Source, https://github.com/python-rt/python-rt Project-URL: Tracker, https://github.com/python-rt/python-rt/issues @@ -25,6 +24,7 @@ Provides-Extra: dev Provides-Extra: test License-File: LICENSE +License-File: AUTHORS .. image:: https://codebeat.co/badges/a52cfe15-b824-435b-a594-4bf2be2fb06f :target: https://codebeat.co/projects/github-com-python-rt-python-rt-master diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.1/doc/changelog.rst new/rt-3.0.3/doc/changelog.rst --- old/rt-3.0.1/doc/changelog.rst 2022-05-26 23:55:25.000000000 +0200 +++ new/rt-3.0.3/doc/changelog.rst 2022-06-16 00:27:27.000000000 +0200 @@ -1,6 +1,18 @@ Change Log ========== +Version 3.0.3 (2022-06-16) +---------------------------- +Changes +^^^^^^^ +- Move package metadata and configuration from setup.cfg to pyproject.toml. + +Version 3.0.2 (2022-06-12) +---------------------------- +Fixes +^^^^^ +- Fix edit_user() response handling in case a user_id name (str) was passed instead of a number. + Version 3.0.1 (2022-05-26) ---------------------------- Fixes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.1/pyproject.toml new/rt-3.0.3/pyproject.toml --- old/rt-3.0.1/pyproject.toml 2022-05-26 23:55:25.000000000 +0200 +++ new/rt-3.0.3/pyproject.toml 2022-06-16 00:27:27.000000000 +0200 @@ -2,6 +2,74 @@ requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"] build-backend = "setuptools.build_meta" +[project] +name = "rt" +description = "Python interface to Request Tracker API" +readme = "README.rst" +license = { text = "GNU General Public License v3 (GPLv3)" } +authors = [{ name = "Georges Toth", email = "georges.t...@govcert.etat.lu" }] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Operating System :: POSIX", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", + "Topic :: Software Development :: Libraries :: Python Modules", +] +requires-python = ">= 3.7" +dependencies = [ + "requests", + "requests_toolbelt", + 'typing-extensions ; python_version < "3.8"', +] +dynamic = ["version"] + +[project.urls] +Homepage = "https://github.com/python-rt/python-rt" +Documentation = "https://python-rt.readthedocs.io/" +Source = "https://github.com/python-rt/python-rt" +Tracker = "https://github.com/python-rt/python-rt/issues" +Changelog = "https://github.com/python-rt/python-rt/blob/master/CHANGELOG.md" + +[project.optional-dependencies] +docs = [ + "sphinx", + "sphinx-autodoc-typehints", + "sphinx-rtd-theme", + "furo", + "sphinx-copybutton", +] +dev = [ + "pycodestyle", + "pylint", + "mypy", + "flake8", + "flake8-bandit", + "flake8-comprehensions", + "flake8-docstrings", + "pep8-naming", + "types-requests", + "codespell", +] +test = [ + "pytest", + "coverage", +] + +[tool.setuptools] +include-package-data = true + +[tool.setuptools.packages.find] +exclude = ["tests"] +namespaces = false + +[tool.pycodestyle] +filename = "rt/rt.py" +ignore = "E501, W503, E124, E126" + [tool.setuptools_scm] [tool.mypy] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.1/rt/rest1.py new/rt-3.0.3/rt/rest1.py --- old/rt-3.0.1/rt/rest1.py 2022-05-26 23:55:25.000000000 +0200 +++ new/rt-3.0.3/rt/rest1.py 2022-06-16 00:27:27.000000000 +0200 @@ -35,7 +35,8 @@ import requests import requests.auth -from .exceptions import NotAllowedError, UnexpectedResponseError, UnexpectedMessageFormatError, InvalidUseError, BadRequestError, AuthorizationError, APISyntaxError, InvalidQueryError +from .exceptions import NotAllowedError, UnexpectedResponseError, UnexpectedMessageFormatError, InvalidUseError, \ + BadRequestError, AuthorizationError, APISyntaxError, InvalidQueryError, NotFoundError __license__ = """ Copyright (C) 2012 CZ.NIC, z.s.p.o. Copyright (c) 2015 Genome Research Ltd. @@ -1163,6 +1164,15 @@ if not used_fields <= valid_fields: invalid_fields = ", ".join(list(used_fields - valid_fields)) raise InvalidUseError(f"Unsupported names of fields: {invalid_fields}.") + + if isinstance(user_id, str) and not user_id.isnumeric(): + _user = self.get_user(user_id) + + if _user is None: + raise NotFoundError(f'User "{user_id}" does not exist.') + + user_id = _user['id'].split('/', 1)[1] + post_data = f'id: user/{user_id}\n' for key, val in kwargs.items(): post_data += f'{key}: {val}\n' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.1/rt.egg-info/PKG-INFO new/rt-3.0.3/rt.egg-info/PKG-INFO --- old/rt-3.0.1/rt.egg-info/PKG-INFO 2022-05-26 23:55:45.000000000 +0200 +++ new/rt-3.0.3/rt.egg-info/PKG-INFO 2022-06-16 00:27:52.000000000 +0200 @@ -1,11 +1,10 @@ Metadata-Version: 2.1 Name: rt -Version: 3.0.1 +Version: 3.0.3 Summary: Python interface to Request Tracker API -Home-page: https://github.com/python-rt/python-rt -Author: Georges Toth -Author-email: georges.t...@govcert.etat.lu +Author-email: Georges Toth <georges.t...@govcert.etat.lu> License: GNU General Public License v3 (GPLv3) +Project-URL: Homepage, https://github.com/python-rt/python-rt Project-URL: Documentation, https://python-rt.readthedocs.io/ Project-URL: Source, https://github.com/python-rt/python-rt Project-URL: Tracker, https://github.com/python-rt/python-rt/issues @@ -25,6 +24,7 @@ Provides-Extra: dev Provides-Extra: test License-File: LICENSE +License-File: AUTHORS .. image:: https://codebeat.co/badges/a52cfe15-b824-435b-a594-4bf2be2fb06f :target: https://codebeat.co/projects/github-com-python-rt-python-rt-master diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.1/rt.egg-info/SOURCES.txt new/rt-3.0.3/rt.egg-info/SOURCES.txt --- old/rt-3.0.1/rt.egg-info/SOURCES.txt 2022-05-26 23:55:46.000000000 +0200 +++ new/rt-3.0.3/rt.egg-info/SOURCES.txt 2022-06-16 00:27:53.000000000 +0200 @@ -1,4 +1,5 @@ .editorconfig +.flake8 .pylintrc AUTHORS CHANGELOG.md @@ -6,7 +7,6 @@ MANIFEST.in README.rst pyproject.toml -setup.cfg setup.py doc/Makefile doc/changelog.rst @@ -25,7 +25,6 @@ rt.egg-info/PKG-INFO rt.egg-info/SOURCES.txt rt.egg-info/dependency_links.txt -rt.egg-info/not-zip-safe rt.egg-info/requires.txt rt.egg-info/top_level.txt tests/__init__.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.1/rt.egg-info/not-zip-safe new/rt-3.0.3/rt.egg-info/not-zip-safe --- old/rt-3.0.1/rt.egg-info/not-zip-safe 2022-05-26 23:55:44.000000000 +0200 +++ new/rt-3.0.3/rt.egg-info/not-zip-safe 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.1/setup.cfg new/rt-3.0.3/setup.cfg --- old/rt-3.0.1/setup.cfg 2022-05-26 23:55:46.536424600 +0200 +++ new/rt-3.0.3/setup.cfg 2022-06-16 00:27:53.170233500 +0200 @@ -1,79 +1,3 @@ -[bdist_wheel] -universal = 0 - -[metadata] -name = rt -description = Python interface to Request Tracker API -long_description = file: README.rst -long_description_content_type = text/x-rst -license = GNU General Public License v3 (GPLv3) -license_file = LICENSE -author = Georges Toth -author_email = georges.t...@govcert.etat.lu -url = https://github.com/python-rt/python-rt -classifiers = - Development Status :: 5 - Production/Stable - Environment :: Console - Intended Audience :: Developers - License :: OSI Approved :: GNU General Public License v3 (GPLv3) - Operating System :: POSIX - Programming Language :: Python - Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3 - Topic :: Software Development :: Libraries :: Python Modules -project_urls = - Documentation = https://python-rt.readthedocs.io/ - Source = https://github.com/python-rt/python-rt - Tracker = https://github.com/python-rt/python-rt/issues - Changelog = https://github.com/python-rt/python-rt/blob/master/CHANGELOG.md - -[options] -zip_safe = False -packages = rt -include_package_data = True -python_requires = >= 3.7 -install_requires = - requests - requests_toolbelt - typing-extensions ; python_version < "3.8" - -[options.packages.find] -exclude = - tests - -[options.package_data] -rt = py.typed - -[options.extras_require] -docs = - sphinx - sphinx-autodoc-typehints - sphinx-rtd-theme - furo - sphinx-copybutton -dev = - pycodestyle - pylint - mypy - flake8 - flake8-bandit - flake8-comprehensions - flake8-docstrings - pep8-naming - types-requests - codespell -test = - pytest - coverage - -[pycodestyle] -filename = rt/rt.py -ignore = E501, W503, E124, E126 - -[flake8] -max-line-length = 240 -ignore = D210, D400, W503, D205, D209, D401, E126, E124, N803 - [egg_info] tag_build = tag_date = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rt-3.0.1/setup.py new/rt-3.0.3/setup.py --- old/rt-3.0.1/setup.py 2022-05-26 23:55:25.000000000 +0200 +++ new/rt-3.0.3/setup.py 2022-06-16 00:27:27.000000000 +0200 @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- - import setuptools setuptools.setup() +