3 points · by juanpabloaj · 11y ago · 4 comments
from pip.req import parse_requirements
requirements = parse_requirements("requirements.txt")
setup(
...
install_requires=[str(r.req) for r in requirements]
Please do the thing with the requirements.txt file.