Live data from Hacker News

Python lock files have officially been standardized

discuss.python.org

1–10 of 18 posts

Re: Python lock files have officially been standardized

#7
post #6

What does this mean for pip-tools' requirements.in, Pipfile.lock, pip constraints.txt, Poetry.lock, pyroject.toml, and uv.lock?

I think the plan is to replace all of those. The PEP has buy in from all the major tools.

It doesn't mention them in alphabetical order.

Re: Python lock files have officially been standardized

#8
post #6

Earlier quoted context omitted.

I think the plan is to replace all of those. The PEP has buy in from all the major tools.

It doesn't mention them in alphabetical order.

From last week re: GitHub Dependabot and conda/mamba/micromamba/pixi support:

"github dependabot, meta.yaml, environment.yml, conda-lock.yaml, pixi.lock" https://github.com/regro/cf-scripts/issues/3920#issuecomment... https://github.com/dependabot/dependabot-core/issues/2227#is... incl. links to the source of dependabot

Re: Python lock files have officially been standardized

#9

What does this mean for pip-tools' requirements.in, Pipfile.lock, pip constraints.txt, Poetry.lock, pyroject.toml, and uv.lock?

During the, very long, discussion it became apparent that different tools have different design requirements on a lock file. So it's not really clear what will happen to other lock files.

It may be this new lock file acts as an interchange format, that all tools can consume or produce, but not something they internally use.

Though, maybe we're lucky and tools will be able to use it directly, or we might have to wait for a new version of the standard once tools have been able to work with it long enough to know the deficiencies.

Non-lock files, like pyroject.toml and requirements.in remain unaffected.

Re: Python lock files have officially been standardized

#10
This is great. pip-tools` is so valuable right now in helping mitigate these dependency tree issues. I'd love to see some form of support in core Python. I really hope this becomes pushed out, similar to how `pip` actually has a dependency resolver now. Relying on running `pip freeze` to create a quasi-lock is a horrible pattern for enterprise environments and for packages. I'm really looking forward to how this turns out, even though it's still in a proposal-type phase. `
Post reply on HN