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.
Version 1.14.0
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.
New Features
Binary wheels provided on PyPi for aarch64 Linux systems and macOS
native silicon where supported by Python when using pypa/cibuildwheel.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
A newer version of wrapt exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.
Bumps wrapt from 1.13.3 to 1.14.1.
Changelog
Sourced from wrapt's changelog.
Commits
f2f1a68
Merge branch 'release/1.14.1'97b72d4
Update version of cibuildwheel for recent Python versions.3370727
Only test Python 3.10 on aarch64 linux due to unreliability of GitHub runners...982ddec
Python 3.6 no longer available on aarch64 linux for testing.240fea8
Update copyright notice year.9668bbd
Update version in preparation for 1.14.1 release.c86a4d3
Add classifier for Python 3.11.07239ac
Document fix for module importers using deprecated APIs.df0e62c
Deal with module importers that don't implement newer API.7262759
Fix change notes formatting.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)