From f1b135ae4b179ec1436852a4cafd62ab3dedc229893f5d02d657c5a2a43a5550 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 27 Jul 2021 06:17:07 +0000 Subject: [PATCH] - update to 5.0.9: * Fixed a test breaking PyPy. Restored support for Sphinx. * Made the decorator module more robust when decorating builtin functions lacking dunder attributes, like `dict.__setitem__`. * The decorator module was not passing correctly the defaults inside the `*args` tuple, thanks to Dan Shult for the fix. * The decorator module was not copying the __module__ attribute anymore. * Dropped support for Python < 3.5 with a substantial simplification of the code base (now building a decorator does not require calling "exec"). Added a way to mimic functools.wraps-generated decorators. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-decorator?expand=0&rev=48 --- decorator-4.4.2.tar.gz | 3 --- decorator-5.0.9.tar.gz | 3 +++ python-decorator.changes | 14 ++++++++++++++ python-decorator.spec | 5 +++-- 4 files changed, 20 insertions(+), 5 deletions(-) delete mode 100644 decorator-4.4.2.tar.gz create mode 100644 decorator-5.0.9.tar.gz diff --git a/decorator-4.4.2.tar.gz b/decorator-4.4.2.tar.gz deleted file mode 100644 index 4d4d8da..0000000 --- a/decorator-4.4.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e3a62f0520172440ca0dcc823749319382e377f37f140a0b99ef45fecb84bfe7 -size 33629 diff --git a/decorator-5.0.9.tar.gz b/decorator-5.0.9.tar.gz new file mode 100644 index 0000000..dbfbf33 --- /dev/null +++ b/decorator-5.0.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72ecfba4320a893c53f9706bebb2d55c270c1e51a28789361aa93e4a21319ed5 +size 34544 diff --git a/python-decorator.changes b/python-decorator.changes index 9a8cdd4..d987046 100644 --- a/python-decorator.changes +++ b/python-decorator.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Tue Jul 27 06:15:15 UTC 2021 - Dirk Müller + +- update to 5.0.9: + * Fixed a test breaking PyPy. Restored support for Sphinx. + * Made the decorator module more robust when decorating builtin functions + lacking dunder attributes, like `dict.__setitem__`. + * The decorator module was not passing correctly the defaults inside the + `*args` tuple, thanks to Dan Shult for the fix. + * The decorator module was not copying the __module__ attribute anymore. + * Dropped support for Python < 3.5 with a substantial simplification of + the code base (now building a decorator does not require calling "exec"). + Added a way to mimic functools.wraps-generated decorators. + ------------------------------------------------------------------- Sat Mar 14 15:50:24 UTC 2020 - Dirk Mueller diff --git a/python-decorator.spec b/python-decorator.spec index 322d354..32a5c50 100644 --- a/python-decorator.spec +++ b/python-decorator.spec @@ -1,7 +1,7 @@ # # spec file for package python-decorator # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,8 +19,9 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global skip_python2 1 Name: python-decorator -Version: 4.4.2 +Version: 5.0.9 Release: 0 Summary: Decorators for Humans License: BSD-2-Clause