Skip to content

poetry add -D commitizen fails on python 3.6 projects #28

Closed
@esciara

Description

@esciara

commitizen is supposed to be working with py36 and py37, but fails when added as dependency with poetry on py36 compliant project:

$ poetry add -D commitizen
Using version ^1.5 for commitizen

Updating dependencies
Resolving dependencies... (0.1s)

[SolverProblemError]
The current project must support the following Python versions: ^3.6
Because no versions of commitizen match >1.5,<2.0
 and commitizen (1.5.0) requires Python >3.6, commitizen is forbidden.
So, because pyteleinfo depends on commitizen (^1.5), version solving failed.

add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...

This is because commitizen's python line in pyproject.toml contains python = ">3.6" instead of python = "^3.6" or python = ">=3.6" (with a preference for the former).

Changing this should not cause a pb since tests are indeed passing for py36.

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