14
0
forked from pool/python-wrapt

Commit Graph

  • 3cfe85f741 Accepting request 1285287 from devel:languages:python main Ana Guerrero 2025-06-13 16:43:27 +00:00
  • 8ba394d86d - Switch to pyproject macros. Steve Kowalik 2025-06-13 02:58:02 +00:00
  • f22020647a Accepting request 1249256 from devel:languages:python slfo-main slfo-1.2 Dominique Leuenberger 2025-03-01 18:16:12 +00:00
  • ac6bc4b7b1 Accepting request 1249256 from devel:languages:python Dominique Leuenberger 2025-03-01 18:16:12 +00:00
  • 24a4468b88 - 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 Nico Krapp 2025-02-28 14:24:50 +00:00
  • 9b6e8b7db3 Accepting request 1249203 from home:glaubitz:branches:devel:languages:python Nico Krapp 2025-02-28 14:24:50 +00:00
  • 7c19886876 Accepting request 1218799 from devel:languages:python Ana Guerrero 2024-10-29 13:32:03 +00:00
  • de7749fbe4 Accepting request 1218799 from devel:languages:python Ana Guerrero 2024-10-29 13:32:03 +00:00
  • a5a43c8d1f - add py313-classmethods.patch to fix test failures with py313 Dirk Mueller 2024-10-28 11:56:41 +00:00
  • 7f125fd1d3 - add py313-classmethods.patch to fix test failures with py313 Dirk Mueller 2024-10-28 11:56:41 +00:00
  • 069af16b21 Accepting request 1129246 from devel:languages:python Ana Guerrero 2023-11-28 21:18:56 +00:00
  • d2ef78250f - 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. generating binary wheels for musllinux`. * When using an adapter function to change the signature of the decorated * Code for inspect.getargspec() when using Python 2.6 was missing Dirk Mueller 2023-11-27 20:33:38 +00:00
  • 63ff26bb01 Accepting request 1084875 from devel:languages:python Dominique Leuenberger 2023-05-09 11:06:08 +00:00
  • 8abbe278cb - 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`. Dirk Mueller 2023-05-04 20:46:16 +00:00
  • 12fae08657 Accepting request 1081724 from devel:languages:python Dominique Leuenberger 2023-04-22 19:58:08 +00:00
  • 71e22486bf Accepting request 1081698 from home:dirkmueller:acdc:as_python3_module Dirk Mueller 2023-04-21 13:28:10 +00:00
  • 220675eeba Accepting request 1007459 from devel:languages:python Dominique Leuenberger 2022-10-03 11:44:34 +00:00
  • 06a6995124 - 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. Dirk Mueller 2022-10-01 14:05:53 +00:00
  • f14f5fc4fa Accepting request 929911 from devel:languages:python Dominique Leuenberger 2021-11-09 22:54:07 +00:00
  • b62d187077 - update to 1.13.3: * Adds wheels for Python 3.10 on PyPi and where possible also now generating binary wheels for `musllinux`. Dirk Mueller 2021-11-06 18:23:49 +00:00
  • ed9522d934 Accepting request 927607 from devel:languages:python Dominique Leuenberger 2021-10-29 20:32:57 +00:00
  • 5d7d7b6a0d - update to 1.13.2: * Note that the next signficant release of wrapt will drop support for Python 2.7 and Python 3.5. * Fix Python version constraint so PyPi classifier for `pip requires Python 2.7 or Python 3.5+. * When a reference to a class method was taken out of a class, and then wrapped in a function wrapper, and called, the class type was not being passed as the instance argument, but as the first argument in args, with the instance being None. The class type should have been passed as the instance argument. * If supplying an adapter function for a signature changing decorator using input in the form of a function argument specification, name lookup exceptions would occur where the adaptor function had annotations which referenced non builtin Python types. Although the issues have been addressed where using input data in the format usually returned by inspect.getfullargspec() to pass the function argument specification, you can still have problems when supplying a function signature as string. In the latter case only Python builtin types can be referenced in annotations. * When a decorator was applied on top of a data/non-data descriptor in a class definition, the call to the special method __set_name__() to notify the descriptor of the variable name was not being propogated. Note that this issue has been addressed in the FunctionWrapper used by @wrapt.decorator but has not been applied to the generic ObjectProxy class. If using ObjectProxy directly to construct a custom wrapper which is applied to a descriptor, you will need to propogate the __set_name__() call yourself if required. * The issubclass()` builtin method would give incorrect results when used with a class which had a decorator applied to it. Note that this has only been able to be fixed for Python 3.7+. Also, due to what is arguably a Dirk Mueller 2021-10-26 21:16:57 +00:00
  • 976513bf57 Accepting request 880495 from devel:languages:python Dominique Leuenberger 2021-03-24 15:10:28 +00:00
  • 4a45431977 Accepting request 880266 from home:bnavigator:branches:devel:languages:python Dirk Mueller 2021-03-22 10:45:17 +00:00
  • 17b4c72c18 Accepting request 853084 from devel:languages:python Dominique Leuenberger 2020-12-05 19:35:33 +00:00
  • 39009f250a Accepting request 853000 from home:bnavigator:branches:devel:languages:python Markéta Machová 2020-12-04 10:49:15 +00:00
  • 863d2ac133 Accepting request 785594 from devel:languages:python Dominique Leuenberger 2020-03-26 23:26:03 +00:00
  • 6ab6e1f8b1 - update to 1.12.1: * Applying a function wrapper to a static method of a class using the `wrap_function_wrapper()` function, or wrapper for the same, wasn't being done correctly when the static method was the immediate child of the target object. It was working when the name path had multiple name components. A failure would subsequently occur when the static method was called via an instance of the class, rather than the class. Dirk Mueller 2020-03-16 11:02:48 +00:00
  • 6649e2c473 Accepting request 783021 from devel:languages:python Dominique Leuenberger 2020-03-11 17:45:32 +00:00
  • b20b330dda - update to 1.12.0: * Provided that you only want to support Python 3.7, when deriving from a base class which has a decorator applied to it, you no longer need to access the true type of the base class using `__wrapped__ in the inherited class list of the derived class. * When using the synchronized decorator on instance methods of a class, if the class declared special methods to override the result for when the class instance was tested as a boolean so that it returned False all the time, the synchronized method would fail when called. * When using an adapter function to change the signature of the decorated function, inspect.signature()` was returning the wrong signature when an instance method was inspected by accessing the method via the class type. Dirk Mueller 2020-03-09 16:26:38 +00:00
  • 0ca00775c8 Accepting request 717552 from devel:languages:python Dominique Leuenberger 2019-07-30 11:04:35 +00:00
  • 2e45767abf - Update to 1.11.2: * Fix possible crash when garbage collection kicks in when invoking a destructor of wrapped object. Tomáš Chvátal 2019-07-22 11:37:49 +00:00
  • ee13742b99 Accepting request 683895 from devel:languages:python Dominique Leuenberger 2019-03-12 08:46:44 +00:00
  • db9958982d - Update to 1.11.1: * Many bugfixes all around * see changes.rst for detailed list - Switch to github to include tests Tomáš Chvátal 2019-03-11 13:29:34 +00:00
  • 946b7e8f58 Accepting request 527615 from devel:languages:python Dominique Leuenberger 2017-09-23 19:33:15 +00:00
  • c94da7a2f8 - update to version 1.10.10: * Added back missing description and categorisations when releasing to PyPi. * Code for inspect.getargspec() when using Python 2.6 was missing import of sys module. Dirk Mueller 2017-09-20 20:04:23 +00:00
  • f9d765630d Accepting request 509027 from devel:languages:python Dominique Leuenberger 2017-07-21 20:46:46 +00:00
  • 92750aa542 Accepting request 509008 from science:unstable Thomas Bechtold 2017-07-09 14:37:34 +00:00
  • 87d1c2d9b2 Accepting request 479713 from devel:languages:python Dominique Leuenberger 2017-03-18 19:50:44 +00:00
  • 044a3ea1c9 Accepting request 479711 from devel:languages:python:singlespec Jan Matejek 2017-03-15 15:12:50 +00:00
  • bc27e045bb Accepting request 424131 from devel:languages:python Dominique Leuenberger 2016-09-01 12:03:45 +00:00
  • 73d08d378a Accepting request 424121 from home:tbechtold:branches:devel:languages:python Dirk Mueller 2016-09-01 07:28:49 +00:00
  • edb4ec5d6b Accepting request 359586 from devel:languages:python Dominique Leuenberger 2016-02-17 09:26:35 +00:00
  • f4b62ff794 Accepting request 359583 from home:stroeder:branches:devel:languages:python Todd R 2016-02-16 08:39:02 +00:00
  • 652cddcf37 Accepting request 318875 from devel:languages:python Stephan Kulow 2015-08-05 04:50:50 +00:00
  • f78beaf65e OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wrapt?expand=0&rev=3 Denisart Benjamin 2015-02-09 15:30:03 +00:00
  • 8a2f76b5e8 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wrapt?expand=0&rev=2 Denisart Benjamin 2015-02-09 15:30:00 +00:00
  • 8bf241f096 Accepting request 284598 from home:frispete:python Denisart Benjamin 2015-02-09 15:29:26 +00:00