| Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
| Name: python313-wrapt | Distribution: openSUSE:Factory:zSystems |
| Version: 2.0.1 | Vendor: openSUSE |
| Release: 1.1 | Build date: Wed Nov 26 02:59:50 2025 |
| Group: Unspecified | Build host: reproducible |
| Size: 453274 | Source RPM: python-wrapt-2.0.1-1.1.src.rpm |
| Packager: https://bugs.opensuse.org | |
| Url: https://github.com/GrahamDumpleton/wrapt | |
| Summary: A Python module for decorators, wrappers and monkey patching | |
The aim of the **wrapt** module is to provide a transparent object proxy for Python, which can be used as the basis for the construction of function wrappers and decorator functions. The **wrapt** module focuses very much on correctness. It therefore goes way beyond existing mechanisms such as ``functools.wraps()`` to ensure that decorators preserve introspectability, signatures, type checking abilities etc. The decorators that can be constructed using this module will work in far more scenarios than typical decorators and provide more predictable and consistent behaviour. To ensure that the overhead is as minimal as possible, a C extension module is used for performance critical components. An automatic fallback to a pure Python implementation is also provided where a target system does not have a compiler to allow the C extension to be compiled. Documentation ------------- For further information on the **wrapt** module see: * http://wrapt.readthedocs.org/
BSD-2-Clause
* Wed Nov 26 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 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 2025 Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
* Fri Feb 28 2025 John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.17.2
* Added universal binary wheels for macOS. That is, contains
both x86_64 and arm64 architectures in the same wheel.
- from version 1.17.1
* Due to GitHub actions changes, binary wheels were missing
for macOS Intel.
* Not implemented error for __reduce__() on ObjectProxy was
incorrectly displaying the error as being on __reduce_ex__().
- from version 1.17.0
* Add __format__() method to ObjectProxy class to allow formatting
of wrapped object.
* Added C extension internal flag to indicate that wrapt should be
safe for Python 3.13 free threading mode. Releases will include
free threading variants of Python wheels. Note that as free
threading is new, one should be cautious about using it in
production until it has been more widely tested.
* When a normal function or builtin function which had wrapt.decorator
or a function wrapper applied, was assigned as a class attribute,
and the function attribute called via the class or an instance of
the class, an additional argument was being passed, inserted as the
first argument, which was the class or instance. This was not the
correct behaviour and the class or instance should not have been
passed as the first argument.
* When an instance of a callable class object was wrapped which didn’t
not have a __get__() method for binding, and it was called in context
where binding would be attempted, it would fail with error that __get__()
did not exist when instead it should have been called directly, ignoring
that binding was not possible.
* The __round__ hook for the object proxy didn’t accept ndigits argument.
- Drop py313-classmethods.patch, merged upstream
* Mon Oct 28 2024 Dirk Müller <dmueller@suse.com>
- add py313-classmethods.patch to fix test failures with py313
* Mon Nov 27 2023 Dirk Müller <dmueller@suse.com>
- update to 1.16.0:
* Note that version 1.16.0 drops support for Python 2.7 and
3.5. Python version 3.6 or later is required.
* The ``patch_function_wrapper()`` decorator now accepts an
``enabled`` argument, which can be a literal boolean value,
object that evaluates as boolean, or a callable object which
returns a boolean. In the case of a callable, determination
of whether the wrapper is invoked will be left until
the point of the call. In the other cases, the wrapper will
not be applied if the value evaluates false at the point of
applying the wrapper.
* The import hook loader and finder objects are now implemented
as transparent object proxies so they properly proxy pass
access to attributes/functions of the wrapped loader or finder.
* Code files in the implementation have been reorganized such
that the pure Python version of the ``ObjectProxy`` class
is directly available even if the C extension variant is
being used. This is to allow the pure Python variant to
be used in exceptional cases where the C extension variant is
not fully compatible with the pure Python implementation and the
behaviour of the pure Python variant is what is required.
* It was not possible to update the ``__class__`` attribute
through the transparent object proxy when relying on the C
implementation.
* Thu May 04 2023 Dirk Müller <dmueller@suse.com>
- update to 1.15.0:
* When the C extension for wrapt was being used, and a property
was used on an object proxy wrapping another object to intercept
access to an attribute of the same name on the wrapped object,
if the function implementing the property
raised an exception, then the exception was ignored and not
propagated back to the caller.
* Address issue where the post import hook mechanism of wrapt
wasn't transparent and left the __loader__ and __spec__.loader
attributes of a module as the wrapt import hook loader and
not the original loader.
* Address issues where a thread deadlock could occur within the
wrapt module import handler, when code executed from a post
import hook created a new thread and code executed in the
context of the new thread itself tried to register a post
import hook, or imported a new module.
* When using ``CallableObjectProxy`` as a wrapper for a type or
function and calling the wrapped object, it was not possible
to pass a keyword argument named ``self``.
* Fri Apr 21 2023 Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
* Thu Apr 13 2023 Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
* Sat Oct 01 2022 Dirk Müller <dmueller@suse.com>
- update to 1.14.1:
* When the post import hooks mechanism was being used, and a Python package with
its own custom module importer was used, importing modules could fail if the
custom module importer didn't use the latest Python import hook finder/loader
APIs and instead used the deprecated API. This was actually occurring with the
`zipimporter` in Python itself, which was not updated to use the newer Python
APIs until Python 3.10.
* *Bugs Fixed**
* Python 3.11 dropped ``inspect.formatargspec()`` which was used in creating
signature changing decorators. Now bundling a version of this function
which uses ``Parameter`` and ``Signature`` from ``inspect`` module when
available. The replacement function is exposed as ``wrapt.formatargspec()``
if need it for your own code.
* When using a decorator on a class, ``isinstance()`` checks wouldn't previously
work as expected and you had to manually use ``Type.__wrapped__`` to access
the real type when doing instance checks. The ``__instancecheck__`` hook is
now implemented such that you don't have to use ``Type.__wrapped__`` instead
of ``Type`` as last argument to ``isinstance()``.
* Eliminated deprecation warnings related to Python module import system, which
would have turned into broken code in Python 3.12. This was used by the post
import hook mechanism.
/usr/lib64/python3.13/site-packages/wrapt /usr/lib64/python3.13/site-packages/wrapt-2.0.1.dist-info /usr/lib64/python3.13/site-packages/wrapt-2.0.1.dist-info/INSTALLER /usr/lib64/python3.13/site-packages/wrapt-2.0.1.dist-info/METADATA /usr/lib64/python3.13/site-packages/wrapt-2.0.1.dist-info/RECORD /usr/lib64/python3.13/site-packages/wrapt-2.0.1.dist-info/REQUESTED /usr/lib64/python3.13/site-packages/wrapt-2.0.1.dist-info/WHEEL /usr/lib64/python3.13/site-packages/wrapt-2.0.1.dist-info/licenses /usr/lib64/python3.13/site-packages/wrapt-2.0.1.dist-info/licenses/LICENSE /usr/lib64/python3.13/site-packages/wrapt-2.0.1.dist-info/top_level.txt /usr/lib64/python3.13/site-packages/wrapt/__init__.py /usr/lib64/python3.13/site-packages/wrapt/__init__.pyi /usr/lib64/python3.13/site-packages/wrapt/__pycache__ /usr/lib64/python3.13/site-packages/wrapt/__pycache__/__init__.cpython-313.opt-1.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/__init__.cpython-313.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/__wrapt__.cpython-313.opt-1.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/__wrapt__.cpython-313.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/arguments.cpython-313.opt-1.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/arguments.cpython-313.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/decorators.cpython-313.opt-1.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/decorators.cpython-313.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/importer.cpython-313.opt-1.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/importer.cpython-313.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/patches.cpython-313.opt-1.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/patches.cpython-313.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/proxies.cpython-313.opt-1.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/proxies.cpython-313.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/weakrefs.cpython-313.opt-1.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/weakrefs.cpython-313.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/wrappers.cpython-313.opt-1.pyc /usr/lib64/python3.13/site-packages/wrapt/__pycache__/wrappers.cpython-313.pyc /usr/lib64/python3.13/site-packages/wrapt/__wrapt__.py /usr/lib64/python3.13/site-packages/wrapt/_wrappers.c /usr/lib64/python3.13/site-packages/wrapt/_wrappers.cpython-313-s390x-linux-gnu.so /usr/lib64/python3.13/site-packages/wrapt/arguments.py /usr/lib64/python3.13/site-packages/wrapt/decorators.py /usr/lib64/python3.13/site-packages/wrapt/importer.py /usr/lib64/python3.13/site-packages/wrapt/patches.py /usr/lib64/python3.13/site-packages/wrapt/proxies.py /usr/lib64/python3.13/site-packages/wrapt/py.typed /usr/lib64/python3.13/site-packages/wrapt/weakrefs.py /usr/lib64/python3.13/site-packages/wrapt/wrappers.py /usr/share/doc/packages/python313-wrapt /usr/share/doc/packages/python313-wrapt/README.md /usr/share/doc/packages/python313-wrapt/changes.rst /usr/share/licenses/python313-wrapt /usr/share/licenses/python313-wrapt/LICENSE
Generated by rpm2html 1.8.1
Fabrice Bellet, Wed Dec 3 23:12:00 2025