Conversation
- Eliminate the use of pkg_resources which is no longer installed with Python 3.12 and greater. - Add setuptools to requirements.txt which is no longer included in Python distributions (>= 3.12).
|
Ping? |
|
Can this PR be merged, please? |
|
Maybe ping @klen in case it went unnoticed It seems that even installing setuptools manually will stop working soon
|
|
ping @klen :) Can this PR be merged, please, it's very annoying to suppress warnings in CI and it freaks me out that pylama would stop working after CI pipelines upgrade to python 3.12 |
|
I've updated the PR. |
This patch removes the dependence on
pkg_resourceswhich is not available by default in Python 3.12 and beyond. It switches frompkg_resources.iter_entry_pointstoimport_metadata.entry_points.import_metadatais available in all supported versions of Python.The other change removes the use of
parse_requirementsand just hardcodes the package dependencies insetup.py, which is arguably good practice anyway since not all developer-installed packages are required by the installation.Finally,
setuptoolsis added torequirements.txtsince it is also no longer installed by default with Python 3.12.