Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-decorator for openSUSE:Factory checked in at 2022-01-11 21:17:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-decorator (Old) and /work/SRC/openSUSE:Factory/.python-decorator.new.1892 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-decorator" Tue Jan 11 21:17:07 2022 rev:25 rq:945419 version:5.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-decorator/python-decorator.changes 2021-10-20 20:24:17.169378144 +0200 +++ /work/SRC/openSUSE:Factory/.python-decorator.new.1892/python-decorator.changes 2022-01-11 21:20:26.733008455 +0100 @@ -1,0 +2,9 @@ +Mon Jan 10 22:16:37 UTC 2022 - Dirk M??ller <dmuel...@suse.com> + +- update to 5.1.1: + * cythonized functions can now be decorated. + * fixed an issue in the `decorator_apply` example and + * regression fix for the "fix" in version 5.1 broke + ` decorator.contextmanager` even more. Both issues are now solved. + +------------------------------------------------------------------- Old: ---- decorator-5.1.0.tar.gz New: ---- decorator-5.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-decorator.spec ++++++ --- /var/tmp/diff_new_pack.UEsktb/_old 2022-01-11 21:20:27.261008826 +0100 +++ /var/tmp/diff_new_pack.UEsktb/_new 2022-01-11 21:20:27.261008826 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-decorator # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global skip_python2 1 Name: python-decorator -Version: 5.1.0 +Version: 5.1.1 Release: 0 Summary: Decorators for Humans License: BSD-2-Clause ++++++ decorator-5.1.0.tar.gz -> decorator-5.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/decorator-5.1.0/CHANGES.md new/decorator-5.1.1/CHANGES.md --- old/decorator-5.1.0/CHANGES.md 2021-09-11 07:21:30.000000000 +0200 +++ new/decorator-5.1.1/CHANGES.md 2022-01-07 08:49:37.000000000 +0100 @@ -1,6 +1,15 @@ HISTORY -------- +## Unreleased + +## 5.1.1 (2022-01-07) + +Sangwoo Shim contributed a fix so that cythonized functions can be decorated. +Brian McFee pointed out an issue in the `decorator_apply` example and +Wim Glenn pointed out that the "fix" in version 5.1 broke +`decorator.contextmanager` even more. Both issues are now solved. + ## 5.1.0 (2021-09-11) Added a function `decoratorx` using the `FunctionMaker` and thus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/decorator-5.1.0/PKG-INFO new/decorator-5.1.1/PKG-INFO --- old/decorator-5.1.0/PKG-INFO 2021-09-11 07:30:13.176995000 +0200 +++ new/decorator-5.1.1/PKG-INFO 2022-01-07 09:11:37.281304000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: decorator -Version: 5.1.0 +Version: 5.1.1 Summary: Decorators for Humans Home-page: https://github.com/micheles/decorator Author: Michele Simionato @@ -118,6 +118,7 @@ Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Topic :: Software Development :: Libraries Classifier: Topic :: Utilities diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/decorator-5.1.0/setup.cfg new/decorator-5.1.1/setup.cfg --- old/decorator-5.1.0/setup.cfg 2021-09-11 07:30:13.176995000 +0200 +++ new/decorator-5.1.1/setup.cfg 2022-01-07 09:11:37.281304000 +0100 @@ -1,5 +1,5 @@ [upload_docs] -upload-dir = docs +upload_dir = docs [egg_info] tag_build = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/decorator-5.1.0/setup.py new/decorator-5.1.1/setup.py --- old/decorator-5.1.0/setup.py 2021-09-11 06:07:12.000000000 +0200 +++ new/decorator-5.1.1/setup.py 2021-11-01 16:34:35.000000000 +0100 @@ -30,6 +30,7 @@ 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Software Development :: Libraries', 'Topic :: Utilities'], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/decorator-5.1.0/src/decorator.egg-info/PKG-INFO new/decorator-5.1.1/src/decorator.egg-info/PKG-INFO --- old/decorator-5.1.0/src/decorator.egg-info/PKG-INFO 2021-09-11 07:30:12.000000000 +0200 +++ new/decorator-5.1.1/src/decorator.egg-info/PKG-INFO 2022-01-07 09:11:37.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: decorator -Version: 5.1.0 +Version: 5.1.1 Summary: Decorators for Humans Home-page: https://github.com/micheles/decorator Author: Michele Simionato @@ -118,6 +118,7 @@ Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Topic :: Software Development :: Libraries Classifier: Topic :: Utilities diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/decorator-5.1.0/src/decorator.py new/decorator-5.1.1/src/decorator.py --- old/decorator-5.1.0/src/decorator.py 2021-09-11 07:19:46.000000000 +0200 +++ new/decorator-5.1.1/src/decorator.py 2022-01-07 08:50:09.000000000 +0100 @@ -40,7 +40,7 @@ from contextlib import _GeneratorContextManager from inspect import getfullargspec, iscoroutinefunction, isgeneratorfunction -__version__ = '5.1.0' +__version__ = '5.1.1' DEF = re.compile(r'\s*def\s*([_\w][_\w\d]*)\s*\(') POS = inspect.Parameter.POSITIONAL_OR_KEYWORD @@ -71,7 +71,7 @@ self.name = '_lambda_' self.doc = func.__doc__ self.module = func.__module__ - if inspect.isfunction(func): + if inspect.isroutine(func): argspec = getfullargspec(func) self.annotations = getattr(func, '__annotations__', {}) for a in ('args', 'varargs', 'varkw', 'defaults', 'kwonlyargs', @@ -313,7 +313,7 @@ def __call__(self, func): def caller(f, *a, **k): - with self._recreate_cm(): + with self.__class__(self.func, *self.args, **self.kwds): return f(*a, **k) return decorate(func, caller) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/decorator-5.1.0/src/tests/documentation.py new/decorator-5.1.1/src/tests/documentation.py --- old/decorator-5.1.0/src/tests/documentation.py 2021-09-11 07:28:23.000000000 +0200 +++ new/decorator-5.1.1/src/tests/documentation.py 2022-01-07 08:38:28.000000000 +0100 @@ -14,7 +14,7 @@ |---|---| |E-mail | michele.simion...@gmail.com| |Version| $VERSION ($DATE)| -|Supports| Python 3.5, 3.6, 3.7, 3.8, 3.9| +|Supports| Python 3.5, 3.6, 3.7, 3.8, 3.9, 3.10| |Download page| http://pypi.python.org/pypi/decorator/$VERSION| |Installation| ``pip install decorator``| |License | BSD license| @@ -1385,7 +1385,7 @@ is not a signature-preserving decorator. """ return FunctionMaker.create( - func, 'return decfunc(%(signature)s)', + func, 'return decfunc(%(shortsignature)s)', dict(decfunc=dec(func)), __wrapped__=func)