Hello community,
here is the log from the commit of package python-decorator for
openSUSE:Factory checked in at 2020-02-14 16:25:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-decorator (Old)
and /work/SRC/openSUSE:Factory/.python-decorator.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-decorator"
Fri Feb 14 16:25:39 2020 rev:21 rq:773654 version:4.4.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-decorator/python-decorator.changes
2019-03-29 20:36:02.698543212 +0100
+++
/work/SRC/openSUSE:Factory/.python-decorator.new.26092/python-decorator.changes
2020-02-14 16:25:55.243208439 +0100
@@ -1,0 +2,7 @@
+Fri Dec 20 19:11:44 UTC 2019 - Dirk Mueller <[email protected]>
+
+- update to 4.4.1:
+ Changed the description to "Decorators for Humans" are requested by
+ several users. Fixed a .rst bug in the description as seen in PyPI.
+
+-------------------------------------------------------------------
Old:
----
decorator-4.4.0.tar.gz
New:
----
decorator-4.4.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-decorator.spec ++++++
--- /var/tmp/diff_new_pack.cv8t0t/_old 2020-02-14 16:25:57.011209398 +0100
+++ /var/tmp/diff_new_pack.cv8t0t/_new 2020-02-14 16:25:57.011209398 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-decorator
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,9 +20,9 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-decorator
-Version: 4.4.0
+Version: 4.4.1
Release: 0
-Summary: Non-nested signature-retaining Python decorators
+Summary: Decorators for Humans
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/micheles/decorator
@@ -58,7 +58,7 @@
%files %{python_files}
%license LICENSE.txt
-%doc CHANGES.md README.md
+%doc CHANGES.md README.rst
%{python_sitelib}/decorator.py*
%pycache_only %{python_sitelib}/__pycache__/decorator.*.py*
%{python_sitelib}/decorator-%{version}-py*.egg-info
++++++ decorator-4.4.0.tar.gz -> decorator-4.4.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/decorator-4.4.0/CHANGES.md
new/decorator-4.4.1/CHANGES.md
--- old/decorator-4.4.0/CHANGES.md 2019-03-16 07:02:51.000000000 +0100
+++ new/decorator-4.4.1/CHANGES.md 2019-10-27 08:58:49.000000000 +0100
@@ -3,6 +3,11 @@
## unreleased
+## 4.4.1 (2019-10-27)
+
+Changed the description to "Decorators for Humans" are requested by
+several users. Fixed a .rst bug in the description as seen in PyPI.
+
## 4.4.0 (2019-03-16)
Fixed a regression with decorator factories breaking the case with no
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/decorator-4.4.0/PKG-INFO new/decorator-4.4.1/PKG-INFO
--- old/decorator-4.4.0/PKG-INFO 2019-03-16 07:41:53.000000000 +0100
+++ new/decorator-4.4.1/PKG-INFO 2019-10-27 09:08:56.000000000 +0100
@@ -1,13 +1,13 @@
Metadata-Version: 1.2
Name: decorator
-Version: 4.4.0
-Summary: Better living through Python with decorators
+Version: 4.4.1
+Summary: Decorators for Humans
Home-page: https://github.com/micheles/decorator
Author: Michele Simionato
Author-email: [email protected]
License: new BSD License
-Description: Decorator module
- =================
+Description: Decorators for Humans
+ =====================
The goal of the decorator module is to make it easy to define
signature-preserving function decorators and decorator factories.
@@ -21,29 +21,30 @@
If you are lazy, just perform
- ``$ pip install decorator``
+ ``$ pip install decorator``
which will install just the module on your system.
If you prefer to install the full distribution from source, including
- the documentation, clone the [GitHub repo](
- https://github.com/micheles/decorator) or download the
- [tarball](http://pypi.python.org/pypi/decorator), unpack it and run
+ the documentation, clone the `GitHub repo`_ or download the tarball_,
unpack it and run
- ``$ pip install .``
+ ``$ pip install .``
in the main directory, possibly as superuser.
+ .. _tarball: http://pypi.python.org/pypi/decorator
+ .. _GitHub repo: https://github.com/micheles/decorator
+
Testing
--------
If you have the source code installation you can run the tests with
- ``$ python src/tests/test.py -v``
+ `$ python src/tests/test.py -v`
or (if you have setuptools installed)
- ``$ python setup.py test``
+ `$ python setup.py test`
Notice that you may run into trouble if in your system there
is an older version of the decorator module; in such a case remove the
@@ -55,44 +56,52 @@
The project is hosted on GitHub. You can look at the source here:
- https://github.com/micheles/decorator
+ https://github.com/micheles/decorator
Documentation
---------------
- The documentation has been moved to GitHub:
https://raw.githubusercontent.com/micheles/decorator/master/docs/documentation.md
+ The documentation has been moved to
https://github.com/micheles/decorator/blob/master/docs/documentation.md
From there you can get a PDF version by simply using the print
functionality of your browser.
+ Here is the documentation for previous versions of the module:
+
+
https://github.com/micheles/decorator/blob/4.3.2/docs/tests.documentation.rst
+
https://github.com/micheles/decorator/blob/4.2.1/docs/tests.documentation.rst
+
https://github.com/micheles/decorator/blob/4.1.2/docs/tests.documentation.rst
+ https://github.com/micheles/decorator/blob/4.0.0/documentation.rst
+ https://github.com/micheles/decorator/blob/3.4.2/documentation.rst
+
For the impatient
-----------------
Here is an example of how to define a family of decorators tracing slow
operations:
- ```python
- from decorator import decorator
+ .. code-block:: python
+
+ from decorator import decorator
- @decorator
- def warn_slow(func, timelimit=60, *args, **kw):
- t0 = time.time()
- result = func(*args, **kw)
- dt = time.time() - t0
- if dt > timelimit:
+ @decorator
+ def warn_slow(func, timelimit=60, *args, **kw):
+ t0 = time.time()
+ result = func(*args, **kw)
+ dt = time.time() - t0
+ if dt > timelimit:
logging.warn('%s took %d seconds', func.__name__, dt)
else:
logging.info('%s took %d seconds', func.__name__, dt)
return result
- @warn_slow # warn if it takes more than 1 minute
- def preprocess_input_files(inputdir, tempdir):
- ...
-
- @warn_slow(timelimit=600) # warn if it takes more than 10 minutes
- def run_calculation(tempdir, outdir):
- ...
- ```
+ @warn_slow # warn if it takes more than 1 minute
+ def preprocess_input_files(inputdir, tempdir):
+ ...
+
+ @warn_slow(timelimit=600) # warn if it takes more than 10 minutes
+ def run_calculation(tempdir, outdir):
+ ...
Enjoy!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/decorator-4.4.0/README.md
new/decorator-4.4.1/README.md
--- old/decorator-4.4.0/README.md 2019-03-16 07:26:45.000000000 +0100
+++ new/decorator-4.4.1/README.md 1970-01-01 01:00:00.000000000 +0100
@@ -1,89 +0,0 @@
-Decorator module
-=================
-
-The goal of the decorator module is to make it easy to define
-signature-preserving function decorators and decorator factories.
-It also includes an implementation of multiple dispatch and other niceties
-(please check the docs). It is released under a two-clauses
-BSD license, i.e. basically you can do whatever you want with it but I am not
-responsible.
-
-Installation
--------------
-
-If you are lazy, just perform
-
-``$ pip install decorator``
-
-which will install just the module on your system.
-
-If you prefer to install the full distribution from source, including
-the documentation, clone the [GitHub repo](
-https://github.com/micheles/decorator) or download the
-[tarball](http://pypi.python.org/pypi/decorator), unpack it and run
-
-``$ pip install .``
-
-in the main directory, possibly as superuser.
-
-Testing
---------
-
-If you have the source code installation you can run the tests with
-
-``$ python src/tests/test.py -v``
-
-or (if you have setuptools installed)
-
-``$ python setup.py test``
-
-Notice that you may run into trouble if in your system there
-is an older version of the decorator module; in such a case remove the
-old version. It is safe even to copy the module `decorator.py` over
-an existing one, since we kept backward-compatibility for a long time.
-
-Repository
----------------
-
-The project is hosted on GitHub. You can look at the source here:
-
-https://github.com/micheles/decorator
-
-Documentation
----------------
-
-The documentation has been moved to GitHub:
https://raw.githubusercontent.com/micheles/decorator/master/docs/documentation.md
-
-From there you can get a PDF version by simply using the print
-functionality of your browser.
-
-For the impatient
------------------
-
-Here is an example of how to define a family of decorators tracing slow
-operations:
-
-```python
-from decorator import decorator
-
-@decorator
-def warn_slow(func, timelimit=60, *args, **kw):
- t0 = time.time()
- result = func(*args, **kw)
- dt = time.time() - t0
- if dt > timelimit:
- logging.warn('%s took %d seconds', func.__name__, dt)
- else:
- logging.info('%s took %d seconds', func.__name__, dt)
- return result
-
-@warn_slow # warn if it takes more than 1 minute
-def preprocess_input_files(inputdir, tempdir):
- ...
-
-@warn_slow(timelimit=600) # warn if it takes more than 10 minutes
-def run_calculation(tempdir, outdir):
- ...
-```
-
-Enjoy!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/decorator-4.4.0/README.rst
new/decorator-4.4.1/README.rst
--- old/decorator-4.4.0/README.rst 1970-01-01 01:00:00.000000000 +0100
+++ new/decorator-4.4.1/README.rst 2019-10-27 08:59:19.000000000 +0100
@@ -0,0 +1,98 @@
+Decorators for Humans
+=====================
+
+The goal of the decorator module is to make it easy to define
+signature-preserving function decorators and decorator factories.
+It also includes an implementation of multiple dispatch and other niceties
+(please check the docs). It is released under a two-clauses
+BSD license, i.e. basically you can do whatever you want with it but I am not
+responsible.
+
+Installation
+-------------
+
+If you are lazy, just perform
+
+ ``$ pip install decorator``
+
+which will install just the module on your system.
+
+If you prefer to install the full distribution from source, including
+the documentation, clone the `GitHub repo`_ or download the tarball_, unpack
it and run
+
+ ``$ pip install .``
+
+in the main directory, possibly as superuser.
+
+.. _tarball: http://pypi.python.org/pypi/decorator
+.. _GitHub repo: https://github.com/micheles/decorator
+
+Testing
+--------
+
+If you have the source code installation you can run the tests with
+
+ `$ python src/tests/test.py -v`
+
+or (if you have setuptools installed)
+
+ `$ python setup.py test`
+
+Notice that you may run into trouble if in your system there
+is an older version of the decorator module; in such a case remove the
+old version. It is safe even to copy the module `decorator.py` over
+an existing one, since we kept backward-compatibility for a long time.
+
+Repository
+---------------
+
+The project is hosted on GitHub. You can look at the source here:
+
+ https://github.com/micheles/decorator
+
+Documentation
+---------------
+
+The documentation has been moved to
https://github.com/micheles/decorator/blob/master/docs/documentation.md
+
+From there you can get a PDF version by simply using the print
+functionality of your browser.
+
+Here is the documentation for previous versions of the module:
+
+https://github.com/micheles/decorator/blob/4.3.2/docs/tests.documentation.rst
+https://github.com/micheles/decorator/blob/4.2.1/docs/tests.documentation.rst
+https://github.com/micheles/decorator/blob/4.1.2/docs/tests.documentation.rst
+https://github.com/micheles/decorator/blob/4.0.0/documentation.rst
+https://github.com/micheles/decorator/blob/3.4.2/documentation.rst
+
+For the impatient
+-----------------
+
+Here is an example of how to define a family of decorators tracing slow
+operations:
+
+.. code-block:: python
+
+ from decorator import decorator
+
+ @decorator
+ def warn_slow(func, timelimit=60, *args, **kw):
+ t0 = time.time()
+ result = func(*args, **kw)
+ dt = time.time() - t0
+ if dt > timelimit:
+ logging.warn('%s took %d seconds', func.__name__, dt)
+ else:
+ logging.info('%s took %d seconds', func.__name__, dt)
+ return result
+
+ @warn_slow # warn if it takes more than 1 minute
+ def preprocess_input_files(inputdir, tempdir):
+ ...
+
+ @warn_slow(timelimit=600) # warn if it takes more than 10 minutes
+ def run_calculation(tempdir, outdir):
+ ...
+
+Enjoy!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/decorator-4.4.0/setup.py new/decorator-4.4.1/setup.py
--- old/decorator-4.4.0/setup.py 2019-03-16 07:02:51.000000000 +0100
+++ new/decorator-4.4.1/setup.py 2019-10-27 08:59:44.000000000 +0100
@@ -8,8 +8,8 @@
if __name__ == '__main__':
setup(name='decorator',
version=VERSION,
- description='Better living through Python with decorators',
- long_description=open('README.md').read(),
+ description='Decorators for Humans',
+ long_description=open('README.rst').read(),
author='Michele Simionato',
author_email='[email protected]',
url='https://github.com/micheles/decorator',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/decorator-4.4.0/src/decorator.egg-info/PKG-INFO
new/decorator-4.4.1/src/decorator.egg-info/PKG-INFO
--- old/decorator-4.4.0/src/decorator.egg-info/PKG-INFO 2019-03-16
07:41:53.000000000 +0100
+++ new/decorator-4.4.1/src/decorator.egg-info/PKG-INFO 2019-10-27
09:08:56.000000000 +0100
@@ -1,13 +1,13 @@
Metadata-Version: 1.2
Name: decorator
-Version: 4.4.0
-Summary: Better living through Python with decorators
+Version: 4.4.1
+Summary: Decorators for Humans
Home-page: https://github.com/micheles/decorator
Author: Michele Simionato
Author-email: [email protected]
License: new BSD License
-Description: Decorator module
- =================
+Description: Decorators for Humans
+ =====================
The goal of the decorator module is to make it easy to define
signature-preserving function decorators and decorator factories.
@@ -21,29 +21,30 @@
If you are lazy, just perform
- ``$ pip install decorator``
+ ``$ pip install decorator``
which will install just the module on your system.
If you prefer to install the full distribution from source, including
- the documentation, clone the [GitHub repo](
- https://github.com/micheles/decorator) or download the
- [tarball](http://pypi.python.org/pypi/decorator), unpack it and run
+ the documentation, clone the `GitHub repo`_ or download the tarball_,
unpack it and run
- ``$ pip install .``
+ ``$ pip install .``
in the main directory, possibly as superuser.
+ .. _tarball: http://pypi.python.org/pypi/decorator
+ .. _GitHub repo: https://github.com/micheles/decorator
+
Testing
--------
If you have the source code installation you can run the tests with
- ``$ python src/tests/test.py -v``
+ `$ python src/tests/test.py -v`
or (if you have setuptools installed)
- ``$ python setup.py test``
+ `$ python setup.py test`
Notice that you may run into trouble if in your system there
is an older version of the decorator module; in such a case remove the
@@ -55,44 +56,52 @@
The project is hosted on GitHub. You can look at the source here:
- https://github.com/micheles/decorator
+ https://github.com/micheles/decorator
Documentation
---------------
- The documentation has been moved to GitHub:
https://raw.githubusercontent.com/micheles/decorator/master/docs/documentation.md
+ The documentation has been moved to
https://github.com/micheles/decorator/blob/master/docs/documentation.md
From there you can get a PDF version by simply using the print
functionality of your browser.
+ Here is the documentation for previous versions of the module:
+
+
https://github.com/micheles/decorator/blob/4.3.2/docs/tests.documentation.rst
+
https://github.com/micheles/decorator/blob/4.2.1/docs/tests.documentation.rst
+
https://github.com/micheles/decorator/blob/4.1.2/docs/tests.documentation.rst
+ https://github.com/micheles/decorator/blob/4.0.0/documentation.rst
+ https://github.com/micheles/decorator/blob/3.4.2/documentation.rst
+
For the impatient
-----------------
Here is an example of how to define a family of decorators tracing slow
operations:
- ```python
- from decorator import decorator
+ .. code-block:: python
+
+ from decorator import decorator
- @decorator
- def warn_slow(func, timelimit=60, *args, **kw):
- t0 = time.time()
- result = func(*args, **kw)
- dt = time.time() - t0
- if dt > timelimit:
+ @decorator
+ def warn_slow(func, timelimit=60, *args, **kw):
+ t0 = time.time()
+ result = func(*args, **kw)
+ dt = time.time() - t0
+ if dt > timelimit:
logging.warn('%s took %d seconds', func.__name__, dt)
else:
logging.info('%s took %d seconds', func.__name__, dt)
return result
- @warn_slow # warn if it takes more than 1 minute
- def preprocess_input_files(inputdir, tempdir):
- ...
-
- @warn_slow(timelimit=600) # warn if it takes more than 10 minutes
- def run_calculation(tempdir, outdir):
- ...
- ```
+ @warn_slow # warn if it takes more than 1 minute
+ def preprocess_input_files(inputdir, tempdir):
+ ...
+
+ @warn_slow(timelimit=600) # warn if it takes more than 10 minutes
+ def run_calculation(tempdir, outdir):
+ ...
Enjoy!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/decorator-4.4.0/src/decorator.egg-info/SOURCES.txt
new/decorator-4.4.1/src/decorator.egg-info/SOURCES.txt
--- old/decorator-4.4.0/src/decorator.egg-info/SOURCES.txt 2019-03-16
07:41:53.000000000 +0100
+++ new/decorator-4.4.1/src/decorator.egg-info/SOURCES.txt 2019-10-27
09:08:56.000000000 +0100
@@ -1,7 +1,7 @@
CHANGES.md
LICENSE.txt
MANIFEST.in
-README.md
+README.rst
performance.sh
setup.cfg
setup.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/decorator-4.4.0/src/decorator.py
new/decorator-4.4.1/src/decorator.py
--- old/decorator-4.4.0/src/decorator.py 2019-03-16 07:02:51.000000000
+0100
+++ new/decorator-4.4.1/src/decorator.py 2019-10-27 09:00:08.000000000
+0100
@@ -40,7 +40,7 @@
import itertools
import collections
-__version__ = '4.4.0'
+__version__ = '4.4.1'
if sys.version >= '3':
from inspect import getfullargspec
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/decorator-4.4.0/src/tests/documentation.py
new/decorator-4.4.1/src/tests/documentation.py
--- old/decorator-4.4.0/src/tests/documentation.py 2019-03-16
07:39:44.000000000 +0100
+++ new/decorator-4.4.1/src/tests/documentation.py 2019-10-27
09:01:53.000000000 +0100
@@ -12,14 +12,14 @@
from decorator import (decorator, decorate, FunctionMaker, contextmanager,
dispatch_on, __version__)
-doc = r"""The ``decorator`` module
+doc = r"""Decorators for Humans
----------------------------------
|Author | Michele Simionato|
|---|---|
|E-mail | [email protected]|
|Version| $VERSION ($DATE)|
-|Supports| Python 2.6, 2.7, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7|
+|Supports| Python 2.6, 2.7, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8|
|Download page| http://pypi.python.org/pypi/decorator/$VERSION|
|Installation| ``pip install decorator``|
|License | BSD license|
@@ -547,6 +547,8 @@
a ``__call__`` method, so that they can be used as decorators, like so:
```python
+>>> ba = before_after('BEFORE', 'AFTER')
+>>>
>>> @ba # doctest: +SKIP
... def hello():
... print('hello')
@@ -1238,8 +1240,8 @@
They cannot be used on generic callable objects or built-in functions,
due to limitations of the standard library's ``inspect`` module, especially
for Python 2. In Python 3.5, many such limitations have been removed, but
-I still think that it is cleaner and safer to decorate only
-functions. If you want to decorate things like classmethods/staticmethods
+I still think that it is cleaner and safer to decorate only functions and
+coroutines. If you want to decorate things like classmethods/staticmethods
and general callables - which I will never support in the decorator module -
I suggest you to look at the [wrapt](https://wrapt.readthedocs.io/en/latest/)
project by Graeme Dumpleton.
@@ -1329,7 +1331,7 @@
LICENSE (2-clause BSD)
---------------------------------------------
-Copyright (c) 2005-2017, Michele Simionato
+Copyright (c) 2005-2019, Michele Simionato
All rights reserved.
Redistribution and use in source and binary forms, with or without