-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
What's the problem this feature will solve?
I use container to deploy Python application to production. The container building script performs the following command lines:
python3 -m pip install pipenv
python3 -m pipenv sync # Install modules from Pipenv.lock
python3 -m pipenv run python3 -m pip freeze > requirements.txt
python3 -m pip install -r requirements.txt
python3 -m pip uninstall pipenv
rm requirements.txt
Describe the solution you'd like
Replace the above command lines by just one pretty pip option:
python3 -m pip install --pipfile Pipfile.lock
Additional context
The project https://github.com/pypa/pipfile/blob/master/README.rst states:
Pipfileand its sisterPipfile.lockare a replacement for the existing standardpip'srequirements.txtfile.
Let's start the movement by adding an experimental option in next pip release 😄
EDIT: My colleague has just pointed me that this has already been (eventually) planed. The same document, at chapter Pip Integration (eventual) says:
pipwill grow a new command line option,-p/--pipfileto install the versions as specified in aPipfile, similar to its existing-r/--requirementargument for installingrequirements.txtfiles.