Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-wrapt for openSUSE:Factory checked in at 2025-12-02 13:18:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-wrapt (Old) and /work/SRC/openSUSE:Factory/.python-wrapt.new.14147 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-wrapt" Tue Dec 2 13:18:14 2025 rev:23 rq:1320086 version:2.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-wrapt/python-wrapt.changes 2025-10-18 14:37:08.092712433 +0200 +++ /work/SRC/openSUSE:Factory/.python-wrapt.new.14147/python-wrapt.changes 2025-12-02 13:18:21.738334157 +0100 @@ -1,0 +2,67 @@ +Wed Nov 26 01:59:50 UTC 2025 - Steve Kowalik <[email protected]> + +- Update to 2.0.1: + ## New Features + * Added __all__ attribute to wrapt module to expose the public API. + * The wrapt.PartialCallableObjectProxy class can now be accessed via the + alias wrapt.partial, which is a convenience for users who are used to + using functools.partial and want to use the wrapt version of it. + * Type hints have been added to the wrapt module. + * Added wrapt.BaseObjectProxy class which is the base class for all object + proxy classes. + * Added wrapt.AutoObjectProxy class which is a pure Python subclass of + BaseObjectProxy which overrides the __new__() method to dynamically + generate a custom subclass which includes methods for callable, + descriptor and iterator protocols, as well as other select special + methods. + * Added wrapt.LazyObjectProxy class which is a variant of AutoObjectProxy + which takes a callable which returns the object to be wrapped. The + callable is only invoked the first time an attribute of the wrapped + object is accessed. + * Added wrapt.lazy_import() function which takes a module name and returns + a LazyObjectProxy which will import the module when it is first needed. + ## Features Changed + * Code related to Python 2.X and workarounds for older Python 3.X versions + has been removed. + * Dependency at runtime on setuptools for calculating package entry points + has been removed. Instead the importlib.metadata module is now used for + this purpose. + * For reasons to do with backward/forward compatibility the wrapt module + included references to getcallargs() and formatargspec() functions which + were part of the inspect module at one time or another. These were + provided as convenience for users of the wrapt module, but were not + actually part of the public API. They have now been removed from the + wrapt module and are no longer available. + * The enabled, adapter and proxy arguments to the @decorator decorator had + to be keyword parameters, and the initial wrapped argument had to be + positional only. Because though Python 2.X was still being supported it + was not possible to use appropriate syntax to mark them as such. These + arguments are now marked as positional and keyword only parameters in the + function signature as appropriate. + * The object proxy classes now raise a WrapperNotInitializedError exception + rather than Python builtin ValueError exception when an attempt is made + to access an attribute of the wrapped object before the wrapper has been + initialized. + ## Bugs Fixed + * The wrapt.lazy_import() function wasn't included in the __all__ attribute + of the wrapt module. + * When using wrapt.lazy_import() to lazily import a function of a module, + the resulting proxy object wasn't marked as callable until something + triggered the import of the module via the proxy. This meant a callable() + check on the proxy would return False until the module was actually + imported. + * Reference count was not being incremented on type object for C + implementation of the partial callable object proxy when module was + initialized. If wrapt was being used in Python sub interpreters which + were deleted it could lead to the process crashing. + * Wasn't chaining __mro_entries__() calls when the wrapped object was not a + type (class) and itself had a __mro_entries__() method. This meant that + if using the object proxy as a base class for a generic class, the + generic parameters were being ignored. + * When an object proxy wrapped an immutable type, such as an integer, and + the object proxy had been assigned to a second variable, the result of an + in-place operation on the second variable was also affecting the first + variable, when instead the lifetime of the two variables should have been + independent to reflect what occurs for normal immutable types. + +------------------------------------------------------------------- Old: ---- 1.17.3.tar.gz New: ---- 2.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-wrapt.spec ++++++ --- /var/tmp/diff_new_pack.bjQEBj/_old 2025-12-02 13:18:23.598412253 +0100 +++ /var/tmp/diff_new_pack.bjQEBj/_new 2025-12-02 13:18:23.610412757 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-wrapt # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -19,14 +19,14 @@ %{?sle15_python_module_pythons} Name: python-wrapt -Version: 1.17.3 +Version: 2.0.1 Release: 0 Summary: A Python module for decorators, wrappers and monkey patching License: BSD-2-Clause -Group: Development/Languages/Python URL: https://github.com/GrahamDumpleton/wrapt Source: https://github.com/GrahamDumpleton/wrapt/archive/%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module mypy} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -75,7 +75,7 @@ %files %{python_files} %license LICENSE -%doc README.rst docs/changes.rst +%doc README.md docs/changes.rst %{python_sitearch}/wrapt %{python_sitearch}/wrapt-%{version}.dist-info ++++++ 1.17.3.tar.gz -> 2.0.1.tar.gz ++++++ ++++ 32593 lines of diff (skipped)
