Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to suppress deprecation for caller on PyPy #327

Closed
jaraco opened this issue Jul 5, 2021 · 0 comments
Closed

Unable to suppress deprecation for caller on PyPy #327

jaraco opened this issue Jul 5, 2021 · 0 comments

Comments

@jaraco
Copy link
Member

jaraco commented Jul 5, 2021

In pypy/pypy#3503, I detail an issue I stumbled onto in Setuptools. To summarize, PyPy has a different call depth for functools.partial than CPython, preventing other consumers from using the warnings filter to accurately target callers of deprecated importlib metadata functionality.

@jaraco jaraco closed this as completed in 596155c Jul 5, 2021
jaraco added a commit to pypa/setuptools that referenced this issue Jul 5, 2021
clrpackages pushed a commit to clearlinux-pkgs/setuptools that referenced this issue Jul 13, 2021
…on 57.1.0

Alexei Colin (1):
      distutils: pass -rpath to linker on macOS >=10.5

Brian Rutledge (1):
      Use shutil for rmtree

Jason R. Coombs (24):
      Test on Python 3.10
      Remove src_root from setup.py, seemingly unused.
      Remove consideration for Java as Jython is no longer supported.
      Unpin dependencies for certs and ssl extras and remove dependency links. Instead, rely on pip for security.
      Remove setup_requires, obviated by build-requires in pyproject.toml.
      Suppress deprecation warnings in flake8 and packaging.tags. Ref pypa/packaging#433.
      👹 Feed the hobgoblins (delint).
      Remove automerge.
      Add test capturing failure. Ref pypa/distutils#44.
      Ensure that the result contains only the one file, not all the different symlink variants to the same file.
      Wrap walk result to prevent infinite recursion. Fixes bpo-44497.
      Extract UniqueDirs for checking uniqueness.
      Rely on stat (inode and device) to deduplicate.
      Move _unique_dirs into classmethod on _UniqueDirs.
      Remove ssl_support. Fixes #2715.
      Update changelog.
      Restore the iterator
      Add test
      Update changelog.
      Add another deprecation warning bypass for flake8 on PyPy because the call depth is missed.
      Remove workaround for pypy/pypy#3503, now that the behavior is consistent with a workaround in importlib_metadata 4.6.1 (python/importlib_metadata#327.
      Remove wincertstore and certifi. Ref #2711 and #2716.
      Update changelog.
      Bump version: 57.0.0 → 57.1.0

Long Nguyen (2):
      Add clang mingw support
      Change get_gcc_versions back to get_versions

Nicolas CANIART (1):
      Entrypoints in declarative config are now supported

Richard Purdie (1):
      setuptools/dist: Fix reproducibility issue by sorting globbing

clint-lawrence (1):
      Fix a broken external link

da-woods (1):
      Fixed get_export_symbols for unicode filenames

messense (1):
      Prefer using `Distribution.has_ext_modules` method
jaraco added a commit that referenced this issue Jul 31, 2021
halstead pushed a commit to openembedded/openembedded-core that referenced this issue Aug 4, 2021
v4.6.3
Moved workaround for #327 to _compat module.

v4.6.2
bpo-44784: Avoid errors in test suite when DeprecationWarnings are
treated as errors.

References:
python/importlib_metadata#327
https://bugs.python.org/issue44784

Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
kraj pushed a commit to YoeDistro/poky-old that referenced this issue Aug 4, 2021
v4.6.3
Moved workaround for #327 to _compat module.

v4.6.2
bpo-44784: Avoid errors in test suite when DeprecationWarnings are
treated as errors.

References:
python/importlib_metadata#327
https://bugs.python.org/issue44784

(From OE-Core rev: e9decf9f40e18d3e3549cb19fe756a4fbe40622f)

Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
halstead pushed a commit to openembedded/openembedded-core that referenced this issue Aug 5, 2021
v4.6.3
Moved workaround for #327 to _compat module.

v4.6.2
bpo-44784: Avoid errors in test suite when DeprecationWarnings are
treated as errors.

References:
python/importlib_metadata#327
https://bugs.python.org/issue44784

Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
kraj pushed a commit to YoeDistro/poky-old that referenced this issue Aug 5, 2021
v4.6.3
Moved workaround for #327 to _compat module.

v4.6.2
bpo-44784: Avoid errors in test suite when DeprecationWarnings are
treated as errors.

References:
python/importlib_metadata#327
https://bugs.python.org/issue44784

(From OE-Core rev: 9ac45967b0e739d7480ac432bab0b0ca0341b24b)

Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant