Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 3cfe85f741 | |||
| 8ba394d86d | |||
| ac6bc4b7b1 | |||
| 9b6e8b7db3 | |||
| de7749fbe4 | |||
| 7f125fd1d3 |
BIN
1.17.2.tar.gz
LFS
Normal file
BIN
1.17.2.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:54dd4dd4f357e398ffc3d70b7d89cc56b8e5e535dc1a4de2e5015f05e4896be6
|
|
||||||
size 184792
|
|
||||||
@@ -1,77 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Wed Nov 26 01:59:50 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- 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.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Thu Oct 16 14:09:34 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
|
||||||
|
|
||||||
- Update to 1.17.3
|
|
||||||
* Added universal binary wheels for macOS. That is, contains
|
|
||||||
both x86_64 and arm64 architectures in the same wheel.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 13 02:42:47 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
Fri Jun 13 02:42:47 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-wrapt
|
# spec file for package python-wrapt
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# Copyright (c) 2025 SUSE LLC
|
||||||
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
|
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -19,14 +19,14 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-wrapt
|
Name: python-wrapt
|
||||||
Version: 2.0.1
|
Version: 1.17.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Python module for decorators, wrappers and monkey patching
|
Summary: A Python module for decorators, wrappers and monkey patching
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/GrahamDumpleton/wrapt
|
URL: https://github.com/GrahamDumpleton/wrapt
|
||||||
Source: https://github.com/GrahamDumpleton/wrapt/archive/%{version}.tar.gz
|
Source: https://github.com/GrahamDumpleton/wrapt/archive/%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module mypy}
|
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -75,7 +75,7 @@ export CFLAGS="%{optflags}"
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md docs/changes.rst
|
%doc README.rst docs/changes.rst
|
||||||
%{python_sitearch}/wrapt
|
%{python_sitearch}/wrapt
|
||||||
%{python_sitearch}/wrapt-%{version}.dist-info
|
%{python_sitearch}/wrapt-%{version}.dist-info
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user