-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
pytype_test.py: Use importlib.metadata instead of pkg_resources #10391
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
Conversation
@@ -72,7 +72,7 @@ for this script. | |||
|
|||
Note: this test cannot be run on Windows | |||
systems unless you are using Windows Subsystem for Linux. | |||
It also requires a Python version < 3.11 as pytype does not yet support | |||
It can currently only be run on Python 3.10 as pytype does not yet support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could avoid this if we added the importlib_metadata
backport as a test dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer the narrow requirements in this case. I would be surprised if pytype_test is much run manually and an extra requirement can always be a bit of a pain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, though I don't have a strong opinion at all
My hope is that this will resolve the pytype failures in #10389. It's probably a good idea to do this anyway, though, since
pkg_resources
is deprecated.