I came across a python library which has docs, which start like this:
Quickstart
Include foolib in your requirements.txt file.
AFAIK dependencies should be specified via install_requires
in setup.py
.
Should I talk the maintainer of the library and create a pull-request for the docs?
Both are acceptable. The difference is that specifying something in your
install_requires
will auto-download / install that package when you install the package using setup.py. Having arequirements.txt
makes it easier to see at a glance what the requirements are. I personally prefer seeing libraries with arequirements.txt
, since I can install all those requirements withpip
into my virtualenv and be able to update them quickly if needed.