Home Update New Python lock file format will specify dependencies

New Python lock file format will specify dependencies

13
Baby Python 16z9

Python’s builders have accepted a proposal to create a common lock file format for Python initiatives that may 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 be capable to calculate what to put in with no need dependency decision at install-time, in accordance with the proposal.

Currently no normal exists to create an immutable document, reminiscent of a lock file, that specifies what direct and oblique dependencies needs to be put in right into a Python digital surroundings, the proposal states. There have been not less than 5 well-known options to the issue locally, 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 expensive to make use of/change to different codecs,” the proposal says.



Source hyperlink

LEAVE A REPLY

Please enter your comment!
Please enter your name here