Skip to content

change: switch to importlib.metadata from pkg_resources in setuptools#156

Merged
ssato merged 1 commit intonextfrom
change/use-importlib-metadata-instead-of-pkg_resources
Oct 22, 2023
Merged

change: switch to importlib.metadata from pkg_resources in setuptools#156
ssato merged 1 commit intonextfrom
change/use-importlib-metadata-instead-of-pkg_resources

Conversation

@ssato
Copy link
Owner

@ssato ssato commented Oct 22, 2023

Switch to importlib.metadata from pkg_resources in setuptools to load plugins modules with pkg_resources.iter_entry_points because pkg_resources is deprecated.

.. seealso:: https://importlib-metadata.readthedocs.io/en/latest/migration.html#pkg-resources-iter-entry-points

Switch to importlib.metadata from pkg_resources in setuptools to load
plugins modules with pkg_resources.iter_entry_points because
pkg_resources is deprecated.

.. seealso:: https://importlib-metadata.readthedocs.io/en/latest/migration.html#pkg-resources-iter-entry-points
@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

@ssato ssato merged commit d890801 into next Oct 22, 2023
@ssato ssato deleted the change/use-importlib-metadata-instead-of-pkg_resources branch October 22, 2023 10:21
ssato added a commit that referenced this pull request Jan 14, 2024
…#156)

Switch to importlib.metadata from pkg_resources in setuptools to load
plugins modules with pkg_resources.iter_entry_points because
pkg_resources is deprecated.

.. seealso:: https://importlib-metadata.readthedocs.io/en/latest/migration.html#pkg-resources-iter-entry-points
jcfreeman2 pushed a commit to DUNE-DAQ/daq-release that referenced this pull request Dec 30, 2025
I may revisit this decision, but for now uhal in its current
incarnation simply doesn't build in Python 3.12 with the error message
being "no module named distutils"

Changes include:

-Un-vendoring glib, as this isn't necessary for Python 3.11

-Bumping the version of py-anyconfig used by py-moo to include a fix
 which removed the deprecated pkg_resources
 (ssato/python-anyconfig#156)
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.

2 participants