Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced usages of the deprecated pkg_resources
(It seems like after the last commit added `python = 3.12` to `tox.ini`, that version was actually being used, which made the tests fail against Python 3.12-dev.) As of Python 3.12, the `pkg_resources` package is no longer provided (see https://docs.python.org/3.13/whatsnew/3.12.html#removed). The package has been deprecated in favor of `importlib.metadata (see the "Attention" notice at the top of https://setuptools.pypa.io/en/latest/pkg_resources.html), and the replacement for `pkg_resources.get_distribution()` is `importlib.metadata.version()` (according to googleapis/python-api-core#27 (comment)). See also https://docs.python.org/3/library/importlib.metadata.html#distribution-versions.
- Loading branch information