diff --git a/makefun-1.11.3.tar.gz b/makefun-1.11.3.tar.gz deleted file mode 100644 index 5d95d32..0000000 --- a/makefun-1.11.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:033eed65e2c1804fca84161a38d1fc8bb8650d32a89ac1c5dc7e54b2b2c2e88c -size 69038 diff --git a/makefun-1.12.1.tar.gz b/makefun-1.12.1.tar.gz new file mode 100644 index 0000000..2d5caa5 --- /dev/null +++ b/makefun-1.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d0e90ca3fdbdeb6a4a0891e2da7d4b8e80386e19e6db91ce29b8aa5c876ecfe +size 71410 diff --git a/python-makefun.changes b/python-makefun.changes index 6c89ffd..b02eef2 100644 --- a/python-makefun.changes +++ b/python-makefun.changes @@ -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 diff --git a/python-makefun.spec b/python-makefun.spec index a5392ba..f010195 100644 --- a/python-makefun.spec +++ b/python-makefun.spec @@ -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