diff --git a/decorator-5.0.9.tar.gz b/decorator-5.0.9.tar.gz deleted file mode 100644 index dbfbf33..0000000 --- a/decorator-5.0.9.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:72ecfba4320a893c53f9706bebb2d55c270c1e51a28789361aa93e4a21319ed5 -size 34544 diff --git a/decorator-5.1.0.tar.gz b/decorator-5.1.0.tar.gz new file mode 100644 index 0000000..1a070a1 --- /dev/null +++ b/decorator-5.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e59913af105b9860aa2c8d3272d9de5a56a4e608db9a2f167a8480b323d529a7 +size 34900 diff --git a/kwsyntax.patch b/kwsyntax.patch deleted file mode 100644 index ca9ff49..0000000 --- a/kwsyntax.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 817d070db3c9cc5900d118837c533c039982b050 Mon Sep 17 00:00:00 2001 -From: Michele Simionato -Date: Fri, 28 May 2021 08:30:09 +0200 -Subject: [PATCH] Fixed decorator.decorator not passing kwsyntax - ---- - CHANGES.md | 2 ++ - src/decorator.py | 2 +- - 2 files changed, 3 insertions(+), 1 deletion(-) - -diff --git a/CHANGES.md b/CHANGES.md -index 596559b..876df34 100644 ---- a/CHANGES.md -+++ b/CHANGES.md -@@ -3,6 +3,8 @@ HISTORY - - ## unreleased - -+decorator.decorator was not passing the kwsyntax. -+ - ## 5.0.9 (2021-05-16) - - Fixed a test breaking PyPy. Restored support for Sphinx. -diff --git a/src/decorator.py b/src/decorator.py -index 438dff6..dab0d7c 100644 ---- a/src/decorator.py -+++ b/src/decorator.py -@@ -265,7 +265,7 @@ def decorator(caller, _func=None, kwsyntax=False): - """ - if _func is not None: # return a decorated function - # this is obsolete behavior; you should use decorate instead -- return decorate(_func, caller) -+ return decorate(_func, caller, (), kwsyntax) - # else return a decorator function - sig = inspect.signature(caller) - dec_params = [p for p in sig.parameters.values() if p.kind is POS] diff --git a/python-decorator.changes b/python-decorator.changes index c7f8c56..9fbd127 100644 --- a/python-decorator.changes +++ b/python-decorator.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sat Oct 16 20:56:50 UTC 2021 - Dirk Müller + +- update to 5.1.0: + * Added a function `decoratorx` using the `FunctionMaker` and thus + preserving the signature of `__code__` objects. + * Sphinx was printing a few warnings when building the documentation + * functions decorated with `decorator.contextmanager` were one-shot, + as discovered by Alex Pizarro. + * `decorator.decorator` was not passing the kwsyntax argument. +- drop kwsyntax.patch (usptream) + ------------------------------------------------------------------- Thu Aug 5 15:25:53 UTC 2021 - Markéta Machová diff --git a/python-decorator.spec b/python-decorator.spec index ee0ef01..f4430a0 100644 --- a/python-decorator.spec +++ b/python-decorator.spec @@ -21,15 +21,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global skip_python2 1 Name: python-decorator -Version: 5.0.9 +Version: 5.1.0 Release: 0 Summary: Decorators for Humans License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/micheles/decorator Source: https://files.pythonhosted.org/packages/source/d/decorator/decorator-%{version}.tar.gz -# PATCH-FIX-UPSTREAM https://github.com/micheles/decorator/commit/817d070db3c9cc5900d118837c533c039982b050 Fixed decorator.decorator not passing kwsyntax -Patch0: kwsyntax.patch BuildRequires: %{python_module setuptools} BuildRequires: dos2unix BuildRequires: fdupes