14
0

Accepting request 940869 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/940869
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-makefun?expand=0&rev=2
This commit is contained in:
2021-12-16 20:19:40 +00:00
committed by Git OBS Bridge
4 changed files with 27 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:033eed65e2c1804fca84161a38d1fc8bb8650d32a89ac1c5dc7e54b2b2c2e88c
size 69038

3
makefun-1.12.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4d0e90ca3fdbdeb6a4a0891e2da7d4b8e80386e19e6db91ce29b8aa5c876ecfe
size 71410

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue Dec 14 12:04:47 UTC 2021 - pgajdos@suse.com
- 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
-------------------------------------------------------------------
Thu May 6 15:50:16 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>

View File

@@ -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