Add requirements.txt automatically to setup.py to install them when installing a package

39 Views Asked by At

I am making a package out of a python app I have, I want that when I install this package in another app the dependencies of the package got installed automatically. The dependencies in the original package are in requirements.txt.

How can I do that?

I got setup.py and inside setup() I added install_requires= and a list of the dependencies, but I want that whenever I make it a tar.gz package the dependencies from requirements.txt got automatically in there as a list.

0

There are 0 best solutions below