Skip to content

Contextual version conflict with direct dependency wrapt #755

@sphuber

Description

@sphuber

Steps to reproduce

  1. Install package with wrapt==1.12 and astroid==2.4.0

Current behavior

Installing this, or running prospector with these dependencies will lead to a contextual version conflict because astroid specifies a very restrictive requirement wrapt==1.11.* which is not compatible:

prospector...............................................................Failed
hookid: prospector

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (wrapt 1.12.0 (/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages), Requirement.parse('wrapt==1.11.*'), {'astroid'})

Expected behavior

The ability to install astroid with wrapt>=1.12

python -c "from astroid import __pkginfo__; print(__pkginfo__.version)" output

2.4.0

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