Skip to content

Use importlib.metadata over pkg_resources for newer Python versions

Jens Bruhn requested to merge jensbruhn/dbformat:main into main

Should fix errors like this on newer Python versions

Traceback (most recent call last):
  File "/home/jebr/.cache/pre-commit/repo_b8pa_q7/py_env-python3.12/bin/dbformat", line 5, in <module>
    from dbformat import main
  File "/home/jebr/.cache/pre-commit/repo_b8pa_q7/py_env-python3.12/lib/python3.12/site-packages/dbformat/__init__.py", line 9, in <module>
    from pkg_resources import get_distribution
ModuleNotFoundError: No module named 'pkg_resources'

Merge request reports

Loading