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

That's why I have a requirements folder with separate files (eg - dev.txt, prod.txt) for various installation needs. If you want to include test dependencies in development, just add it into the file like you're installing a regular requirements file:

  -r test.txt


And, to double-down, if you read the pip documentation (the second sin of software development?), you can use things other than pip freeze. Like,

   python -m pip list --not-required 
That option flag is pretty nice because it excludes packages that aren't dependencies (aka - the primary packages that you need). If you do that you don't to worry about dependency management as much.


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

Search: