Skip to content

py 1.5 release breaks pytest with pip dependency resolver #2926

@uSpike

Description

@uSpike

Hi,

Since pip doesn't have a great dependency resolver (see pypa/pip#988) it will download the latest version of the dependencies of the first package passed to it. For example,

pip install tox pytest

This will install py>=1.4.17 as depended on by tox, which will happily get the most recent py package at version 1.5. However, we cannot run pytest now since pytest depends on py<1.5

I think you can make the argument that the blame doesn't fall within pytest itself, but I think there's going to be a lot of requirements.txt out there which don't list pytest first, and may run into this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: criticalgrave problem or usability issue that affects lots of userstype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions