Skip to content

Python when to pin version

anthonywritescode: when should I pin deps: never and always! (intermediate) anthony explains #514 - Reminders



Lower bound for your libraries

Why not cfgv>=2.0.0,<3.0

Common use cases of library likely will likely still work

the <3.0 would cause conflicts for people that need the functionality?????


if there's a bug that will likely get fixed

python_requires = >=3.7,<3.11

  • won't be installable in Python 3.11
  • when it probably still works

Application - we need to freeze - use pip tools

Last update: 2023-04-24