New Python lock file format will specify dependencies

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

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 response to the proposal.

Presently no customary exists to create an immutable document, similar to a lock file, that specifies what direct and oblique dependencies needs to be put in right into a Python digital atmosphere, the proposal states. There have been not less than 5 well-known options to the issue in the neighborhood, together with PDM, pip freeze, pip-tools, Poetry, and uv, however these instruments differ in what locking eventualities are supported. ”By not having compatibility and interoperability it fractures tooling round lock information the place each customers and instruments have to decide on what lock file format to make use of upfront, making it pricey to make use of/swap to different codecs,” the proposal says.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles