15
0

- Update to 4.4.0:

* Fixed a regression with decorator factories breaking the case with no
    arguments by going back to the syntax used in version 4.2.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-decorator?expand=0&rev=42
This commit is contained in:
Tomáš Chvátal
2019-03-19 15:19:51 +00:00
committed by Git OBS Bridge
parent 787b8e8efe
commit f9c8c76296
4 changed files with 17 additions and 7 deletions

View File

@@ -20,14 +20,15 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-decorator
Version: 4.3.2
Version: 4.4.0
Release: 0
Summary: Non-nested signature-retaining Python decorators
License: BSD-2-Clause
Group: Development/Languages/Python
URL: http://pypi.python.org/pypi/decorator
URL: https://github.com/micheles/decorator
Source: https://files.pythonhosted.org/packages/source/d/decorator/decorator-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -44,7 +45,6 @@ redirecting_stdout, locked, etc. more accessible.
%prep
%setup -q -n decorator-%{version}
sed -i 's/\r//' README.rst # Fix EOL encoding
%build
%python_build
@@ -53,9 +53,12 @@ sed -i 's/\r//' README.rst # Fix EOL encoding
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python src/tests/test.py -v
%files %{python_files}
%license LICENSE.txt
%doc CHANGES.md README.rst
%doc CHANGES.md README.md
%{python_sitelib}/decorator.py*
%pycache_only %{python_sitelib}/__pycache__/decorator.*.py*
%{python_sitelib}/decorator-%{version}-py*.egg-info