14
0
Files
python-makefun/python-makefun.spec
Dirk Mueller d6bb1cb4ab Accepting request 1007011 from home:yarunachalam:branches:devel:languages:python
- Update to Version 1.15.0
  More PEP-compliant `wraps` Latest
  wraps now always sets the __wrapped__ attribute, and also sets the __signature__ attribute when the signature changes,
  as specified by PEP 362. PR by #86 by lucaswiman.
- Update to Version 1.14.0
  Support for lambda functions
  create_wrapper, create_function, wraps and with_signature now support lambda functions. They also accept a new parameter
  co_name to define the name to be used in the compiled code. PR #80 by andrewcleveland.
- Update to Version 1.13.1
  - Fixed regression with generators in python 3.5
  - Fixed an issue where using partial on a generator function in python 3.5 was raising a SyntaxError. Fixed #79
- Update to Version 1.13.0 
  - Support for async generator functions
    async generator functions are now supported (See PEP525). Fixed #77. PR#78 by broglep-work.

OBS-URL: https://build.opensuse.org/request/show/1007011
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-makefun?expand=0&rev=4
2022-09-29 19:01:34 +00:00

66 lines
1.9 KiB
RPMSpec

#
# spec file for package python-makefun
#
# Copyright (c) 2022 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.14.0
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