6 Commits

Author SHA256 Message Date
3cfe85f741 Accepting request 1285287 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1285287
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wrapt?expand=0&rev=21
2025-06-13 16:43:27 +00:00
8ba394d86d - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wrapt?expand=0&rev=41
2025-06-13 02:58:02 +00:00
ac6bc4b7b1 Accepting request 1249256 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1249256
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wrapt?expand=0&rev=20
2025-03-01 18:16:12 +00:00
9b6e8b7db3 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
de7749fbe4 Accepting request 1218799 from devel:languages:python
- add py313-classmethods.patch to fix test failures with py313

OBS-URL: https://build.opensuse.org/request/show/1218799
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wrapt?expand=0&rev=19
2024-10-29 13:32:03 +00:00
7f125fd1d3 - add py313-classmethods.patch to fix test failures with py313
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wrapt?expand=0&rev=37
2024-10-28 11:56:41 +00:00
4 changed files with 54 additions and 8 deletions

BIN
1.16.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
1.17.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,47 @@
-------------------------------------------------------------------
Fri Jun 13 02:42:47 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Fri Feb 28 08:57:55 UTC 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 didnt
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 didnt accept ndigits argument.
- Drop py313-classmethods.patch, merged upstream
-------------------------------------------------------------------
Mon Oct 28 11:56:13 UTC 2024 - Dirk Müller <dmueller@suse.com>
- add py313-classmethods.patch to fix test failures with py313
-------------------------------------------------------------------
Mon Nov 27 20:31:38 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-wrapt
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -19,7 +19,7 @@
%{?sle15_python_module_pythons}
Name: python-wrapt
Version: 1.16.0
Version: 1.17.2
Release: 0
Summary: A Python module for decorators, wrappers and monkey patching
License: BSD-2-Clause
@@ -27,8 +27,10 @@ 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 pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%python_subpackages
@@ -62,10 +64,10 @@ For further information on the **wrapt** module see:
%build
export CFLAGS="%{optflags}"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
@@ -75,6 +77,6 @@ export CFLAGS="%{optflags}"
%license LICENSE
%doc README.rst docs/changes.rst
%{python_sitearch}/wrapt
%{python_sitearch}/wrapt-%{version}*-info
%{python_sitearch}/wrapt-%{version}.dist-info
%changelog