#1126289 python-limits: Broken dependency: packaging>=21,<25

#1126289#5
Date:
2026-01-23 17:24:15 UTC
From:
To:
python-limits 4.4.1 (in stable, testing and unstable [1]) has the following
requirements
in python-limits/requirements/main.txt [2]:

  deprecated>=1.2
  packaging>=21,<25
  typing_extensions

But stable, testing and unstable all have python-packaging 25.0 [3].  Using
entry points
through pkg_resources, I get the following error:

  pkg_resources.ContextualVersionConflict: (packaging 25.0
(/usr/lib/python3/dist-packages), Requirement.parse('packaging<25,>=21'),
{'limits'})

The latest version of limits (5.6.0) drops the upper constraint [4]:

  dependencies = [
    "deprecated>=1.2",
    "packaging>=21",
    "typing_extensions",
  ]

so an upgrade would fix the issue, though it would remain in stable.

[1] https://tracker.debian.org/pkg/python-limits
[2] https://salsa.debian.org/python-team/packages/python-
limits/-/blob/debian/4.4.1-3/requirements/main.txt
[3] https://tracker.debian.org/pkg/python-packaging
[3] https://github.com/alisaifee/limits/blob/master/pyproject.toml