New Python lock file format will specify dependencies

Learn extra at:

Python’s builders have accepted a proposal to create a common lock file format for Python initiatives that will specify dependencies, enabling set up reproducibility in a Python surroundings.

Python Enhancement Proposal (PEP) 751, accepted March 31, goals to create a brand new file format for specifying dependencies that’s machine-generated and human-readable. Installers consuming the file ought to have the ability to calculate what to put in without having dependency decision at install-time, in keeping with the proposal.

At the moment no customary exists to create an immutable document, reminiscent of a lock file, that specifies what direct and oblique dependencies must be put in right into a Python digital surroundings, the proposal states. There have been a minimum of 5 well-known options to the issue locally, together with PDM, pip freeze, pip-tools, Poetry, and uv, however these instruments fluctuate in what locking situations are supported. ”By not having compatibility and interoperability it fractures tooling round lock recordsdata the place each customers and instruments have to decide on what lock file format to make use of upfront, making it expensive to make use of/change to different codecs,” the proposal says.

Turn leads into sales with free email marketing tools (en)

Leave a reply

Please enter your comment!
Please enter your name here