-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --pipfile Pipfile.lock
as an alternative of -r requirements.txt
#6925
Comments
--pipenv
to use Pipenv.lock in rempalcement of requirements.txt
--pipenv
to use Pipenv.lock in rempalcement of requirements.txt--pipenv
to use Pipenv.lock
in rempalcement of requirements.txt
--pipenv
to use Pipenv.lock
in rempalcement of requirements.txt
--pipenv Pipenv.lock
as an alternative of -r requirements.txt
--pipenv Pipenv.lock
as an alternative of -r requirements.txt
--pipfile Pipfile.lock
as an alternative of -r requirements.txt
I'm not sure there's consensus that At a minimum, I'd like to see some discussion within the community that resulted in agreement that |
There's discussion about a standard lock file format: https://discuss.python.org/t/structured-exchangeable-lock-file-format-requirements-txt-2-0/876 |
Poetry's author hasn't really interacted much AFAICT -- @sdispater are you interested in helping figure out how to improve existing tooling? |
Also see pypa/pipfile#108 for discussion of some of the potential design details to be considered. In the meantime, note that 'pipenv lock' includes native support for generating a requirements.txt file, so it isn't necessary to use pip freeze for that: https://docs.pipenv.org/en/latest/advanced/#generating-a-requirements-txt |
Homepage of Pipenv project seems to have changed, the link in the above message of @ncoghlan is broken, and should be:
|
Does anybody know where the relevant PR / active discussion / open issues are for implementing With python 3.11 adding toml support, it seems like pip should aim to support Pipfile at least by then. |
First, note that we are not planning to support Pipfile, but the lock file instead. The current Pipfile.lock format is too implementation-oriented and cannot be used as-is, and an effort to standardise the lock format must be completed before the installation part can be implementation. You can find very extensive discussions on the topic by searching for lock file on https://discuss.python.org. |
I’m going to close this for now. Threads on discuss.python.org provide much more context (probably way more than anyone would want, unfortunately), and having this open is misleading since we are likely never going to support the specific command proposed in the title. |
Thanks for the update. Guess I found the latest discussion - too bad it seems like the relevant PEP was rejected https://discuss.python.org/t/pep-665-take-2-a-file-format-to-list-python-dependencies-for-reproducibility-of-an-application/11736/143 Any clue if there's a specific reason that pip wouldn't use the combined Pipfile + Pipfile.lock format (assuming the lock spec were to get tweaked to meet goals)? Having the human read/writable Pipfile plus the ugly hash-filled computer-generated Pipfile.lock has worked pretty well in my opinion (especially since a json lock is easier when a toml writer was pretty heftily rejected for python core). Kind of surprised pypa has had Maybe time to update the pipfile readme if pip support is a permanent no-go, looks like it hasn't been touched in a while. |
The main reason is Pipfile.lock is not a spec to begin with, but an implementation detail. A spec must be written; it may or may not be identical to the current Pipfile.lock format, but by definition would not be Pipfile.lock. |
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:
Describe the solution you'd like
Replace the above command lines by just one pretty
pip
option:Additional context
The project https://github.com/pypa/pipfile/blob/master/README.rst states:
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:
The text was updated successfully, but these errors were encountered: