14
0
Files
python-makefun/python-makefun.spec
Matej Cepl 270c455177 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
2021-12-16 11:31:31 +00:00

66 lines
1.9 KiB
RPMSpec

#
# spec file for package python-makefun
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# 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.12.1
Release: 0
License: BSD-3-Clause
Summary: Small library to dynamically create python functions
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_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
BuildRequires: fdupes
Requires: python-six
Suggests: python-funcsigs
BuildArch: noarch
%python_subpackages
%description
Small library to dynamically create python functions.
%prep
%setup -q -n makefun-%{version}
sed -i '/pytest-runner/d' setup.cfg
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%changelog