From 3078c64bfc622e700535acdeec5e92f4a0775b85e6bd5e95c0bbf8391f349c0f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 29 Oct 2024 21:11:40 +0000 Subject: [PATCH] - 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 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + makefun-1.15.2.tar.gz | 3 ++ makefun-1.15.6.tar.gz | 3 ++ python-makefun.changes | 78 ++++++++++++++++++++++++++++++++++++++++++ python-makefun.spec | 64 ++++++++++++++++++++++++++++++++++ 6 files changed, 172 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 makefun-1.15.2.tar.gz create mode 100644 makefun-1.15.6.tar.gz create mode 100644 python-makefun.changes create mode 100644 python-makefun.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/makefun-1.15.2.tar.gz b/makefun-1.15.2.tar.gz new file mode 100644 index 0000000..2712d2f --- /dev/null +++ b/makefun-1.15.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16f2a2b34d9ee0c2b578c960a1808c974e2822cf79f6e9b9c455aace10882d45 +size 74602 diff --git a/makefun-1.15.6.tar.gz b/makefun-1.15.6.tar.gz new file mode 100644 index 0000000..51e89a3 --- /dev/null +++ b/makefun-1.15.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26bc63442a6182fb75efed8b51741dd2d1db2f176bec8c64e20a586256b8f149 +size 72583 diff --git a/python-makefun.changes b/python-makefun.changes new file mode 100644 index 0000000..6208069 --- /dev/null +++ b/python-makefun.changes @@ -0,0 +1,78 @@ +------------------------------------------------------------------- +Tue Oct 29 21:11:12 UTC 2024 - Dirk Müller + +- 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. + +------------------------------------------------------------------- +Thu Dec 7 22:55:39 UTC 2023 - Dirk Müller + +- update to 1.15.2: + * Fixed `SyntaxError` happening when the name of a native + coroutine function to create contains `'return'`. + * Fixes #96. + +------------------------------------------------------------------- +Tue Mar 28 09:39:24 UTC 2023 - pgajdos@suse.com + +- python-six is not required + +------------------------------------------------------------------- +Sun Mar 26 18:45:31 UTC 2023 - Dirk Müller + +- update to 1.15.1: + * Fixed `ValueError: Invalid co_name` happening on python 2 + when the name of a function to create starts or ends with + `_` or contains a double `__` + +------------------------------------------------------------------- +Fri Dec 2 20:29:56 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 1.15.0 + Moved auto signature string to Signature object conversion to wraps. … + …Added a test. + +------------------------------------------------------------------- +Thu Sep 29 15:46:07 UTC 2022 - Yogalakshmi Arunachalam + +- 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. + +------------------------------------------------------------------- +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 + +- Initial package for version 1.11.3 diff --git a/python-makefun.spec b/python-makefun.spec new file mode 100644 index 0000000..dbad63f --- /dev/null +++ b/python-makefun.spec @@ -0,0 +1,64 @@ +# +# 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