14
0
Files
python-makefun/python-makefun.spec
Dirk Mueller 5420741f3f - update to 1.15.6:
* Fixed issue with legacy python 2.7 and 3.5.
  * Python 3.13 is now supported.
  * Fixed `SyntaxError: invalid syntax` happening when the
    default value of one argument of the created function is a
  * subclass of a basic primitive.
    `_` or contains a double `__`
- Update to Version 1.13.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-makefun?expand=0&rev=14
2024-10-29 21:11:40 +00:00

65 lines
1.8 KiB
RPMSpec

#
# spec file for package python-makefun
#
# Copyright (c) 2024 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/
#
Name: python-makefun
Version: 1.15.6
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 pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
BuildRequires: fdupes
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
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/makefun
%{python_sitelib}/makefun-%{version}.dist-info
%changelog