forked from pool/python-makefun
Accepting request 940461 from home:pgajdos:python
- version update to 1.12.1 ### 1.12.1 - Bugfix - Fixed `TypeError` when a `func` attribute is present on the function provided to `create_function`. Fixed [#76] ### 1.12.0 - Refactoring and consistency improvement - Fixed `partial` so that : - when no argument is provided, it is equivalent to `wraps(f)(f)`. That is, the `__wrapped__` attribute is set. Fixed [#73] - it sets the `func` attribute just as `functools.partial` does. Fixed [#75] - Removed `pytest-cases` dependency as it was a circular one. Fixed [#68] - Now using `flake8` for qualimetry and `genbadge` for badges. Fixed [#71] - Restructured project so that tests are truly independent, to ease rpm/apt/etc. packaging. Fixed [#69] - test the package OBS-URL: https://build.opensuse.org/request/show/940461 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-makefun?expand=0&rev=3
This commit is contained in:
@@ -13,22 +13,23 @@
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-makefun
|
||||
Version: 1.11.3
|
||||
Version: 1.12.1
|
||||
Release: 0
|
||||
License: BSD-3-Clause
|
||||
Summary: Small library to dynamically create python functions
|
||||
Url: https://github.com/smarie/python-makefun
|
||||
URL: https://github.com/smarie/python-makefun
|
||||
Group: Development/Languages/Python
|
||||
Source: https://files.pythonhosted.org/packages/source/m/makefun/makefun-%{version}.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
@@ -44,6 +45,7 @@ Small library to dynamically create python functions.
|
||||
|
||||
%prep
|
||||
%setup -q -n makefun-%{version}
|
||||
sed -i '/pytest-runner/d' setup.cfg
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -52,9 +54,8 @@ Small library to dynamically create python functions.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
# No tests, as tests require pytest-cases, which requires makefun
|
||||
#%%check
|
||||
#%%pytest
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
|
||||
Reference in New Issue
Block a user