Rename the lock file from pyproject.lock to poetry.lock
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
Issue
As mentionned in #347, pyproject.lock
is a generic name derived from pyproject.toml
which is a file that can hold information from various other projects and, as such, is not specific to Poetry.
So, there is two options here:
- Replicate the
pyproject.toml
file structure and use atool.poetry
section inpyproject.lock
. - Use an exclusive lock file:
poetry.lock
.
I think the second option is the best one: it makes it much clearer where the lock file is coming and avoids potential confusion.
The implementation should make sure to fallback on pyproject.lock
if it can’t find poetry.lock
. This way it will help the migration without end user intervention.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Basic usage | Documentation | Poetry - Python dependency ...
As mentioned above, the poetry.lock file prevents you from automatically getting the latest versions of your dependencies. To update to the latest versions,...
Read more >python - How to update Poetry's lock file without upgrading ...
There is a specific option for the lock command: poetry lock --no-update. This makes it possible to remove a dependency from pyproject.toml ...
Read more >poetry-lock-package - PyPI
Poetry lock package generator. Simple script that will take a pyproject.toml and a poetry.lock and generate a new poetry project where all the...
Read more >Multiple lockfiles in Python repos - Pantsbuild Blog
A lockfile pins every dependency your project installs, including both your direct dependencies and their own dependencies, ...
Read more >Poetry - The Blue Book
lock : If there is already a poetry.lock file as well as a pyproject.toml , poetry resolves and installs all dependencies that you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems to be done in
Poetry 0.12.4
, am I right? If so then why is this issue still open?I guess there sort of is a standard:
requirements.txt
😬Allow me to propose a (really bad) 3rd option. What if Poetry’s lock file was
requirements.txt
with the top lines valid input topip
and the rest a large comment block of Poetry metadata to be parsed as TOML bypoetry
:The main benefit here is that it will work with countless platforms that install from
requirements.txt
by default and it’s not really a “new” format.