Skip to content

Upper bound for requires-python breaks version resolution #1106

@user1584

Description

@user1584

What is happening?

During version resolution, e.g. by Poetry, a set of compatible libraries are searched. This search also takes the python versions into consideration that are specified in requires-python. Thus, if an app specifies a lower bound for the python version using >=3.10, all libraries must support python versions 3.10.0 and upwards. Some libraries, one of which is dash-bootstrap-components, specify the compatible versions with an upper limit (dash-bootstrap-components uses >=3.9, <4).
Since the app implicitly allows also python versions >3, Poetry will search for library versions that are compatible with python >3, which in case of dash-bootstrap-components would be version 0.10.5!
I totally get that you have no idea if dash-bootstrap-components will work with python 4,5,6,... but I guess you cannot guarantee that it will work with python 3.115.9 either. Thus, I would suggest to drop the upper limit.

What should be happening?

The current dash-bootstrap-components version should be selected for a python version specifier without upper limit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions