Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This gets to the setup.py/requirements.txt confusion.

setup.py is for specifying dependencies of a piece of code you're distributing, while requirements.txt is for specifying a known-good environment to run a piece of code in.

For example, my own personal site has a requirements.txt specifying Django 1.11.2 because that's the version I'm deploying on and test it on. But it uses several applications I've written and distribute, and those use setup.py to specify a dependency on Django 1.8, 1.10 or 1.11 (and those all use tox/Travis to test on the full matrix of Python and Django versions they support).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: