You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means 3.12 users need to manually install setuptools to have a working install:
$ python3.12 -m venv .venv
$ .venv/bin/pip install parliament
$ .venv/bin/parliament --helpTraceback (most recent call last): File "/tmp/.venv/bin/parliament", line 5, in <module> from parliament.cli import main File "/tmp/.venv/lib/python3.12/site-packages/parliament/__init__.py", line 13, in <module> import pkg_resourcesModuleNotFoundError: No module named 'pkg_resources'
Parliament has a script to run unit tests, and according to the README it's up to the developer to run the script and choose the Python environment. It would be great to run the the tests automatically across all supported Python versions.
Python 3.12 has removed bundled
setuptools
(akapkg_resources
), but it's still used here:parliament/parliament/__init__.py
Lines 17 to 21 in 20784b7
This means 3.12 users need to manually install
setuptools
to have a working install:The recommended replacement is
importlib.resources
(introduced in python 3.7 and published to PyPI asimportlib_resources
for backporting). There's a detailed migration guide: https://importlib-resources.readthedocs.io/en/latest/migration.html#pkg-resources-resource-filenameThe text was updated successfully, but these errors were encountered: