2015-02-09 15:29:26 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-wrapt
|
|
|
|
#
|
Accepting request 1249203 from home:glaubitz:branches:devel:languages:python
- 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
OBS-URL: https://build.opensuse.org/request/show/1249203
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wrapt?expand=0&rev=39
2025-02-28 14:24:50 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2015-02-09 15:30:00 +00:00
|
|
|
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
|
2015-02-09 15:29:26 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-03-11 13:29:34 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-09-01 07:28:49 +00:00
|
|
|
#
|
2015-02-09 15:29:26 +00:00
|
|
|
|
|
|
|
|
2023-04-21 13:28:10 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2015-02-09 15:29:26 +00:00
|
|
|
Name: python-wrapt
|
Accepting request 1249203 from home:glaubitz:branches:devel:languages:python
- 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
OBS-URL: https://build.opensuse.org/request/show/1249203
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wrapt?expand=0&rev=39
2025-02-28 14:24:50 +00:00
|
|
|
Version: 1.17.2
|
2015-02-09 15:29:26 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A Python module for decorators, wrappers and monkey patching
|
2016-09-01 07:28:49 +00:00
|
|
|
License: BSD-2-Clause
|
2015-02-09 15:29:26 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-03-11 13:29:34 +00:00
|
|
|
URL: https://github.com/GrahamDumpleton/wrapt
|
|
|
|
Source: https://github.com/GrahamDumpleton/wrapt/archive/%{version}.tar.gz
|
2017-03-15 15:12:50 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2025-06-13 02:58:02 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-03-11 13:29:34 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-03-15 15:12:50 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-13 02:58:02 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-03-11 13:29:34 +00:00
|
|
|
BuildRequires: fdupes
|
2017-03-15 15:12:50 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%python_subpackages
|
2015-02-09 15:29:26 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
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/
|
|
|
|
|
|
|
|
%prep
|
2021-03-22 10:45:17 +00:00
|
|
|
%autosetup -p1 -n wrapt-%{version}
|
2015-02-09 15:29:26 +00:00
|
|
|
|
|
|
|
%build
|
2017-03-15 15:12:50 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2025-06-13 02:58:02 +00:00
|
|
|
%pyproject_wheel
|
2015-02-09 15:29:26 +00:00
|
|
|
|
|
|
|
%install
|
2025-06-13 02:58:02 +00:00
|
|
|
%pyproject_install
|
2019-03-11 13:29:34 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pytest_arch
|
2015-02-09 15:29:26 +00:00
|
|
|
|
2017-03-15 15:12:50 +00:00
|
|
|
%files %{python_files}
|
2019-03-11 13:29:34 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst docs/changes.rst
|
2021-03-22 10:45:17 +00:00
|
|
|
%{python_sitearch}/wrapt
|
2025-06-13 02:58:02 +00:00
|
|
|
%{python_sitearch}/wrapt-%{version}.dist-info
|
2015-02-09 15:29:26 +00:00
|
|
|
|
|
|
|
%changelog
|