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

feat: Add support for python 3.12 #177

Merged
merged 6 commits into from
Nov 16, 2023

Conversation

mayeut
Copy link
Contributor

@mayeut mayeut commented Sep 30, 2023

pkg_resources is deprecated and would require setuptools to be installed which is not the default with python 3.12.

Replace its usage with importlib.resources (Python 3.9+) or importlib_resources (Python 3.7 & 3.8).

Allows #178 (does not fix it since it requires a new version to be published)
Closes #176
Fixes #168

renovate-bot and others added 2 commits September 26, 2023 09:37
pkg_resources is deprecated and would require setuptools
to be installed which is not the default with python 3.12.

Replace its usage with `importlib.resources` (Python 3.9+)
or `importlib_resources` (Python 3.7 & 3.8).
@mayeut mayeut requested a review from a team as a code owner September 30, 2023 10:58
@akx
Copy link

akx commented Nov 13, 2023

cc @parthea :)

@parthea parthea changed the title fix: replace pkg_resources with importlib.resources feat: Add support for python 3.12 Nov 16, 2023
@parthea
Copy link
Contributor

parthea commented Nov 16, 2023

Thanks @mayeut !

@parthea parthea merged commit 5ff1207 into googleapis:main Nov 16, 2023
7 checks passed
@mayeut mayeut deleted the remove-pkg-resources branch March 15, 2024 22:25
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.

DeprecationWarning: pkg_resources is deprecated as an API
4 participants