4 ms·
I don't write libraries but pipenv works well for a simple flask application because I don't ask much of it. All I want is a simpler file to look at compared t
by moonsun 8y ago
I don't write libraries but pipenv works well for a simple flask application because I don't ask much of it.
All I want is a simpler file to look at compared to requirements.txt
Here is my guide for newbies like me
1. Use Pipenv in development.
2. Create a requirements.txt each time you make any changes to your pipenv.
Commit all three files: pipenv, pipenv lock, and requirements.txt to git.
3. Use this requirements.txt in production.
4. ???
5. Profit
Now here is my only gripe:
I believe pipenv is meant for simple people like me. I have to say I want to use Python 3. There is no way to say I accept anything 3.5+
My understanding is that pipenv is not meant for people who actually know python inside out. My use case is that it lets me keep track of what dependencies I installed as opposed to what dependencies my dependencies installed. This should have been the ONLY problem that pipenv fixes but like the old saying goes... no project is complete until it is able to send mail (sorry I probably said it wrong).
- pseudalopex 8y agoIt sounds like pip-tools[1] is what you want Pipenv to be. 1. Put your dependencies in requirements.in. 2. Run pip-compile to generate requirements.txt. 3. Commit both files. 4. Use requirements.txt in production. You can also use setup.py or setup.cfg instead of requirements.in. This lets you build packages and specify dependencies like "Python 3.5+". requirements.in is simpler, though. [1] https://pypi.org/project/pip-tools/ https://pypi.org/project/pip-tools/
- austinpray 8y ago+1 for piptools. Piptools makes a lot of sense in a docker based workflow (virtualenv not needed).