django-rest-framework icon indicating copy to clipboard operation
django-rest-framework copied to clipboard

automatically install dependencies

Open markotibold opened this issue 14 years ago • 2 comments

by using the requires keyword in setup.py

Example:

https://bitbucket.org/birkenfeld/sphinx/src/65e4c29a24e4/setup.py

motivation:

  • much nicer
  • tox.ini will reduce in size significantly

approach:

  • have setup.py find dependencies as stored in requirements.txt
  • don't use == signs in requirements, but rather >=, this will prevent unnecessary downloads

markotibold avatar Dec 15 '11 15:12 markotibold

Not sure if setup.py should or shouldn't include dependancies for building docs, and for examples. Probably not, since doing pip install djangorestframework only gives you the package anyways, not the examples or docs.

lovelydinosaur avatar Dec 15 '11 16:12 lovelydinosaur

You're right, it's probably not necessary.

markotibold avatar Dec 15 '11 16:12 markotibold