Skip to content

Conditionally relax specification for termcolor dependency #586

@jakob-keller

Description

@jakob-keller

Description

Commitizen currently requires termcolor ^1.1, which officially supports Python 3.6 - 3.9.

termcolor 2.0 is available, which adds support for Python 3.10 and 3.11 and drops support for Python 3.6 (see CHANGES).

To allow for use of termcolor 2.0.x in commitizen enabled projects, its dependency specification needs to be relaxed. This may be done conditionally, i.e. for Python >= 3.7.

Possible Solution

Modify pyproject.toml:

Old:

termcolor = "^1.1"

New

termcolor = [
    { "version" = "^1.1", python = "< 3.7" },
    { "version" = ">= 1.1, < 2.1", python = ">= 3.7" },
]

I will prepare a trivial PR.

Additional context

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions