-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enforce visibility of deprecation warnings #159
Comments
I think the way most people solve this (matplotlib, dateutil, pandas, etc) is to just not use class PkgResourcesDeprecationWarning(Warning):
"""Class for warning about deprecations in PkgResources""" That way, they are on by default, but they're still easy to filter out. |
@robinjhuang and I would like to work on this during the GA python sprint |
…ecationWarning with it. Fixes issue pypa#159 Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
…cationWarning with it. Fixes issue pypa#159 Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
…cationWarning with it. Fixes issue pypa#159 Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
Fixes issue pypa#159 Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
Fixes issue pypa#159 Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
Fixes issue pypa#159 Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
Fixes issue pypa#159 Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
`DeprecationWarning` is not visible by default in the latest versions of CPython, so this switches the deprecation warnings in setuptools and pkg_resources over to custom classes derived from `Warning` instead. Fixes issue github issue pypa#159 Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
This issue seems to be mostly solved (thanks to the various contributions), right? (... if we ignore the situations where the build frontend hides the warnings ...) Is there anything left to do from the |
Originally reported by: jaraco (Bitbucket: jaraco, GitHub: jaraco)
With the release of 3.0, it became apparent that the DeprecationWarning for #65 wasn't adequate to raise awareness of the pending removal.
Setuptools should probably enforce visibility of DeprecationWarnings in the setuptools and pkg_resources namespaces.
Something like
I'm not quite sure yet where this would happen. I'm considering it could happen at import time or possibly only during select commands initialization.
The text was updated successfully, but these errors were encountered: