3 ms·
using venv and pip/requirements.txt is simple enough for me Sure - it depends on what you're doing. Requirements.txt won't work if you're writing a library; yo
by robertlagrant 7y ago
using venv and pip/requirements.txt is simple enough for me
Sure - it depends on what you're doing. Requirements.txt won't work if you're writing a library; you'll need to move (or duplicate) your dependencies into setup.py.
- guggle 7y agoIndeed.. I stopped writing libraries when I switched to Python, because for all my needs there are better ones out there than those I could write. Only write apps now... :)
- sametmax 7y agoYes, it's still very valid. It's simple. It's baked in. However, the benefit of moving to setup.cfg (not setup.py anymore, which should be almost empty) is more than making a lib. It makes deployment easier, and dev as well. Hell, you can even pip install from git repo with it. I made a summary of what to use for what, when and how in this comment: https://news.ycombinator.com/item?id=20132303 https://news.ycombinator.com/item?id=20132303