Skip to content

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

Merged
merged 8 commits into from
Jun 30, 2023

Conversation

AlexWaygood
Copy link
Member

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.

@@ -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
Copy link
Member Author

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

Copy link
Collaborator

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.

Copy link
Member Author

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

@AlexWaygood AlexWaygood marked this pull request as ready for review June 30, 2023 16:20
@AlexWaygood AlexWaygood merged commit 7fdd050 into python:main Jun 30, 2023
@AlexWaygood AlexWaygood deleted the pytype-test branch June 30, 2023 20:37
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

Successfully merging this pull request may close these issues.

3 participants