-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Remove pkg_resources import from setup.py:
Lines 3 to 11 in 742d08b
| import pkg_resources | |
| with open('requirements.txt', 'r') as reqs: | |
| install_requires = [ | |
| str(requirement) | |
| for requirement | |
| in pkg_resources.parse_requirements(reqs) | |
| ] |
It breaks installation with newer Python and newer setuptools versions.
Python 3.12 has removed pkg_resources from the standard library and moved it to setuptools (https://docs.python.org/3/whatsnew/3.12.html)
The latest setuptools v82.0.0 removed pkg_resources (https://setuptools.pypa.io/en/stable/history.html#v82-0-0).
Proposed solution: just read the requirements.txt lines into a list of strings and let setuptools do the parsing.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels