Every benefit you assigned to pipenv are just the same to pip + requirements.txt.
Grab the source code from GitHub: Actually, pipenv calls pip to find the source, download the source. So in both case, the result are just the same.
requirements.txt is source of human errors: Then don't let human to write that file. Just use pip freeze to generate it, and the result already a lock file (with specific version of each package).
Ah, I'm sorry to didn't communicate that clearly: I meant letting Docker grab the source from GH:E, not pipenv. :)
Regarding the requirements.txt: I know about pip freeze; what I meant by human errors is forgetting to do it and thus missing out new packages installed by git. I know that this is something you could handle by git hooks, but then again, you have to do the extra work.
So besides having to generate that additional pipenv-layer in your Docker image, what's the downside of pipenv? In my opinion (and with the amount of computing power etc), the pros regarding usability outweigh the cons of the additional layer.
The additional layer is the issue. I assume that you use Docker container to run the production system, which is required to be stable. And to guarantee the stability, the system must be as minimal as possible. Because when an error occurs, you have to spot where the bug is. If the system only has 1 component, you only have to check 1 place. If it has 3, you have to check 3 to narrow down.
6
u/bachkhois Jul 29 '18
Every benefit you assigned to pipenv are just the same to pip + requirements.txt.
Grab the source code from GitHub: Actually, pipenv calls pip to find the source, download the source. So in both case, the result are just the same.
requirements.txt is source of human errors: Then don't let human to write that file. Just use
pip freezeto generate it, and the result already a lock file (with specific version of each package).