pytest-dev / pytest-dev/pluggy

improve PluginValidationError

Open
#211 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
1.7k
Forks
160
Avg merge
21h 4m
Merged PRs (30d)
6

Description

At the moment the error is something like:

pluggy.manager.PluginValidationError: Plugin 'pytest_magic' could not be loaded: (mock 3.0.5 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('mock<3,>=2.0.0; python_version < "3.3"'))!

When such conflicting requirement change happens we should enlist all packages that define requirements on that dependency, so the users can easier identify what package dependency conflicts with what another package dependency.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the PluginValidationError implementation and the plugin validation path that produces the shown conflicting-requirement message. Reproduce the mock version conflict, then trace how dependency requirements are collected; done means the error identifies all packages defining requirements on the conflicting dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.