Menu

pip 26.1: experimental support for installing lockfiles + dependency cooldowns!
📰

pip 26.1: experimental support for installing lockfiles + dependency cooldowns!

Reddit r/Python·u/ichard26·6 months ago
#zyK3MRDQ
#pylock#toml#support#dependency#article
Reading 0:00
15s threshold

Hey all,

I'm one of the maintainers of pip. Earlier yesterday, we released pip 26.1.

The main new feature is experimental support for pylock.toml files ( PEP 751 ) as a requirements source. pylock.toml files or URLs can be provided with the -r / --requirements options to the commands supporting it.

pip install -r pylock.toml pip wheel -r pylock.toml pip download -r pylock.toml

Note : As conveyed by the experimental warning, keep in mind this feature may evolve significantly or even be removed in favor of another option or command in future pip releases.

Other notable improvements include:

Allow --uploaded-prior-to to accept a duration in days (e.g., P7D for 7 days ago) to support "Dependency cooldowns", a strategy of intentionally delaying package updates to give security researchers and package authors time to recover from (ever-increasing) supply chain attacks.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.