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

use importlib.metadata for version info if >py37 #3187

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

pacrob
Copy link
Contributor

@pacrob pacrob commented Jan 8, 2024

What was wrong?

Using pkg_resources in python 3.12 causes an error.

Closes #3186

How was it fixed?

Conditionally use the new importlib.metadata format for supplying version info as it will be a bit before python 3.7 support is dropped here. We don't technically support python 3.12 yet, but this is a simple enough fix.

Added a basic test for version info while in there.

Todo:

Cute Animal Picture

image

@pacrob pacrob force-pushed the importlib-for-version branch 2 times, most recently from c4c45f7 to 5fa656a Compare January 8, 2024 23:16
@pacrob pacrob force-pushed the importlib-for-version branch from 5fa656a to 966b253 Compare January 8, 2024 23:21
@pacrob pacrob marked this pull request as ready for review January 8, 2024 23:29
@pacrob pacrob requested review from fselmo, reedsa and kclowes January 8, 2024 23:29
@pacrob pacrob merged commit 44ae604 into ethereum:main Jan 9, 2024
99 checks passed
@pacrob pacrob deleted the importlib-for-version branch January 9, 2024 19:04
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.

web3 import errors in Python 3.12
2 participants