Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pecan for openSUSE:Factory checked in at 2025-04-08 17:51:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pecan (Old) and /work/SRC/openSUSE:Factory/.python-pecan.new.1907 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pecan" Tue Apr 8 17:51:04 2025 rev:35 rq:1267652 version:1.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pecan/python-pecan.changes 2024-09-09 14:43:33.488502513 +0200 +++ /work/SRC/openSUSE:Factory/.python-pecan.new.1907/python-pecan.changes 2025-04-08 17:51:40.567614708 +0200 @@ -1,0 +2,9 @@ +Mon Apr 7 10:19:18 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- Update to 1.6.0 + * address a few deprecation warnings + * update doc to address upcoming setuptools deprecation + * remove the colorlog dependency +- Use Python 3.11 on SLE-15 by default + +------------------------------------------------------------------- Old: ---- pecan-1.5.1.tar.gz New: ---- pecan-1.6.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pecan.spec ++++++ --- /var/tmp/diff_new_pack.KjkOSb/_old 2025-04-08 17:51:41.023633822 +0200 +++ /var/tmp/diff_new_pack.KjkOSb/_new 2025-04-08 17:51:41.023633822 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pecan # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,8 +22,9 @@ %bcond_with libalternatives %endif +%{?sle15_python_module_pythons} Name: python-pecan -Version: 1.5.1 +Version: 1.6.0 Release: 0 Summary: A WSGI object-dispatching web framework License: BSD-3-Clause ++++++ pecan-1.5.1.tar.gz -> pecan-1.6.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecan-1.5.1/AUTHORS new/pecan-1.6.0/AUTHORS --- old/pecan-1.5.1/AUTHORS 2023-07-15 16:41:22.000000000 +0200 +++ new/pecan-1.6.0/AUTHORS 2025-03-17 21:27:14.000000000 +0100 @@ -14,3 +14,4 @@ Wesley Spikes Steven Berler Chad Lung +Sambhav Dixit diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecan-1.5.1/PKG-INFO new/pecan-1.6.0/PKG-INFO --- old/pecan-1.5.1/PKG-INFO 2023-07-15 16:48:01.144419400 +0200 +++ new/pecan-1.6.0/PKG-INFO 2025-03-17 21:57:59.112224300 +0100 @@ -1,6 +1,6 @@ -Metadata-Version: 2.1 +Metadata-Version: 2.2 Name: pecan -Version: 1.5.1 +Version: 1.6.0 Summary: A WSGI object-dispatching web framework, designed to be lean and fast, with few dependencies. Home-page: http://github.com/pecan/pecan Author: Jonathan LaCour @@ -18,8 +18,6 @@ Classifier: Operating System :: POSIX Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.6 -Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 @@ -28,3 +26,14 @@ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks License-File: LICENSE License-File: AUTHORS +Requires-Dist: WebOb>=1.8 +Requires-Dist: Mako>=0.4.0 +Requires-Dist: setuptools +Dynamic: author +Dynamic: author-email +Dynamic: classifier +Dynamic: home-page +Dynamic: keywords +Dynamic: license +Dynamic: requires-dist +Dynamic: summary diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecan-1.5.1/pecan/__init__.py new/pecan-1.6.0/pecan/__init__.py --- old/pecan-1.5.1/pecan/__init__.py 2023-07-15 16:41:22.000000000 +0200 +++ new/pecan-1.6.0/pecan/__init__.py 2025-03-17 21:28:10.000000000 +0100 @@ -15,10 +15,7 @@ from .configuration import _runtime_conf as conf from . import middleware -try: - from logging.config import dictConfig as load_logging_config -except ImportError: - from logutils.dictconfig import dictConfig as load_logging_config # noqa +from logging.config import dictConfig import warnings @@ -80,7 +77,7 @@ logging = logging.to_dict() if 'version' not in logging: logging['version'] = 1 - load_logging_config(logging) + dictConfig(logging) # Instantiate the WSGI app by passing **kw onward app = Pecan(root, **kw) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecan-1.5.1/pecan/core.py new/pecan-1.6.0/pecan/core.py --- old/pecan-1.5.1/pecan/core.py 2023-07-15 16:41:22.000000000 +0200 +++ new/pecan-1.6.0/pecan/core.py 2025-03-17 21:27:14.000000000 +0100 @@ -322,7 +322,7 @@ :param hook_type: The type of hook, including ``before``, ``after``, ``on_error``, and ``on_route``. - :param \*args: Arguments to pass to the hooks. + :param *args: Arguments to pass to the hooks. ''' if hook_type not in ['before', 'on_route']: hooks = reversed(hooks) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecan-1.5.1/pecan/log.py new/pecan-1.6.0/pecan/log.py --- old/pecan-1.5.1/pecan/log.py 2023-07-15 16:41:22.000000000 +0200 +++ new/pecan-1.6.0/pecan/log.py 2025-03-17 21:40:54.000000000 +0100 @@ -1,54 +1,18 @@ import logging -from logutils.colorize import ColorizingStreamHandler - - -class DefaultColorizer(ColorizingStreamHandler): - - level_map = { - logging.DEBUG: (None, 'blue', True), - logging.INFO: (None, None, True), - logging.WARNING: (None, 'yellow', True), - logging.ERROR: (None, 'red', True), - logging.CRITICAL: (None, 'red', True), - } +from warnings import warn class ColorFormatter(logging.Formatter): - """ - A very basic logging formatter that not only applies color to the - levels of the ouput but can also add padding to the the level names so that - they do not alter the visuals of logging when presented on the terminal. - - The padding is provided by a convenient keyword that adds padding to the - ``levelname`` so that log output is easier to follow:: - - %(padded_color_levelname)s - - Which would result in log level output that looks like:: - - [INFO ] - [WARNING ] - [ERROR ] - [DEBUG ] - [CRITICAL] - - If colored output is not supported, it falls back to non-colored output - without any extra settings. - """ def __init__(self, _logging=None, colorizer=None, *a, **kw): - self.logging = _logging or logging - self.color = colorizer or DefaultColorizer() logging.Formatter.__init__(self, *a, **kw) + warn( + 'pecan.log.ColorFormatter is no longer supported; consider an alternative library such as https://pypi.org/project/colorlog/', + DeprecationWarning + ) def format(self, record): - levelname = record.levelname - padded_level = '%-8s' % levelname - - record.color_levelname = self.color.colorize(levelname, record) - record.padded_color_levelname = self.color.colorize( - padded_level, - record - ) - return self.logging.Formatter.format(self, record) + record.color_levelname = '' + record.padded_color_levelname = record.levelname + return logging.Formatter.format(self, record) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecan-1.5.1/pecan/routing.py new/pecan-1.6.0/pecan/routing.py --- old/pecan-1.5.1/pecan/routing.py 2023-07-15 16:41:22.000000000 +0200 +++ new/pecan-1.6.0/pecan/routing.py 2025-03-17 21:27:14.000000000 +0100 @@ -45,7 +45,7 @@ raise TypeError('%s must be a string' % route) if route in ('.', '..') or not re.match( - '^[0-9a-zA-Z-_$\(\)\.~!,;:*+@=]+$', route + r'^[0-9a-zA-Z-_$\(\)\.~!,;:*+@=]+$', route ): raise ValueError( '%s must be a valid path segment. Keep in mind ' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecan-1.5.1/pecan.egg-info/PKG-INFO new/pecan-1.6.0/pecan.egg-info/PKG-INFO --- old/pecan-1.5.1/pecan.egg-info/PKG-INFO 2023-07-15 16:48:01.000000000 +0200 +++ new/pecan-1.6.0/pecan.egg-info/PKG-INFO 2025-03-17 21:57:59.000000000 +0100 @@ -1,6 +1,6 @@ -Metadata-Version: 2.1 +Metadata-Version: 2.2 Name: pecan -Version: 1.5.1 +Version: 1.6.0 Summary: A WSGI object-dispatching web framework, designed to be lean and fast, with few dependencies. Home-page: http://github.com/pecan/pecan Author: Jonathan LaCour @@ -18,8 +18,6 @@ Classifier: Operating System :: POSIX Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.6 -Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 @@ -28,3 +26,14 @@ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks License-File: LICENSE License-File: AUTHORS +Requires-Dist: WebOb>=1.8 +Requires-Dist: Mako>=0.4.0 +Requires-Dist: setuptools +Dynamic: author +Dynamic: author-email +Dynamic: classifier +Dynamic: home-page +Dynamic: keywords +Dynamic: license +Dynamic: requires-dist +Dynamic: summary diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecan-1.5.1/pecan.egg-info/requires.txt new/pecan-1.6.0/pecan.egg-info/requires.txt --- old/pecan-1.5.1/pecan.egg-info/requires.txt 2023-07-15 16:48:01.000000000 +0200 +++ new/pecan-1.6.0/pecan.egg-info/requires.txt 2025-03-17 21:57:59.000000000 +0100 @@ -1,4 +1,3 @@ WebOb>=1.8 Mako>=0.4.0 setuptools -logutils>=0.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecan-1.5.1/requirements.txt new/pecan-1.6.0/requirements.txt --- old/pecan-1.5.1/requirements.txt 2023-07-15 16:41:22.000000000 +0200 +++ new/pecan-1.6.0/requirements.txt 2025-03-17 21:34:21.000000000 +0100 @@ -1,4 +1,3 @@ WebOb>=1.8 Mako>=0.4.0 setuptools -logutils>=0.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecan-1.5.1/setup.py new/pecan-1.6.0/setup.py --- old/pecan-1.5.1/setup.py 2023-07-15 16:44:27.000000000 +0200 +++ new/pecan-1.6.0/setup.py 2025-03-17 21:45:00.000000000 +0100 @@ -3,7 +3,7 @@ from setuptools import setup, find_packages -version = '1.5.1' +version = '1.6.0' # # determine requirements @@ -67,8 +67,6 @@ 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pecan-1.5.1/test-requirements.txt new/pecan-1.6.0/test-requirements.txt --- old/pecan-1.5.1/test-requirements.txt 2023-07-15 16:41:22.000000000 +0200 +++ new/pecan-1.6.0/test-requirements.txt 2025-03-17 21:46:01.000000000 +0100 @@ -4,4 +4,5 @@ sqlalchemy uwsgi virtualenv +pytest WebTest>=1.3.1