Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop vendoring pluggy #2719

Merged
merged 7 commits into from
Aug 29, 2017
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ omit =
*standalonetemplate.py
# oldinterpret could be removed, as it is no longer used in py26+
*oldinterpret.py
vendored_packages
11 changes: 0 additions & 11 deletions _pytest/_pluggy.py

This file was deleted.

6 changes: 3 additions & 3 deletions _pytest/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import _pytest._code
import _pytest.hookspec # the extension point definitions
import _pytest.assertion
from _pytest._pluggy import PluginManager, HookimplMarker, HookspecMarker
from pluggy import PluginManager, HookimplMarker, HookspecMarker
from _pytest.compat import safe_str

hookimpl = HookimplMarker("pytest")
Expand Down Expand Up @@ -165,7 +165,7 @@ def _prepareconfig(args=None, plugins=None):

class PytestPluginManager(PluginManager):
"""
Overwrites :py:class:`pluggy.PluginManager <_pytest.vendored_packages.pluggy.PluginManager>` to add pytest-specific
Overwrites :py:class:`pluggy.PluginManager <pluggy.PluginManager>` to add pytest-specific
functionality:

* loading plugins from the command line, ``PYTEST_PLUGIN`` env variable and
Expand Down Expand Up @@ -203,7 +203,7 @@ def addhooks(self, module_or_class):
"""
.. deprecated:: 2.8

Use :py:meth:`pluggy.PluginManager.add_hookspecs <_pytest.vendored_packages.pluggy.PluginManager.add_hookspecs>`
Use :py:meth:`pluggy.PluginManager.add_hookspecs <PluginManager.add_hookspecs>`
instead.
"""
warning = dict(code="I2",
Expand Down
2 changes: 1 addition & 1 deletion _pytest/hookspec.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
""" hook specifications for pytest plugins, invoked from main.py and builtin plugins. """

from _pytest._pluggy import HookspecMarker
from pluggy import HookspecMarker

hookspec = HookspecMarker("pytest")

Expand Down
2 changes: 1 addition & 1 deletion _pytest/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from _pytest.config import hookimpl

import _pytest
import _pytest._pluggy as pluggy
import pluggy
from _pytest import fixtures
from _pytest import main
from _pytest.compat import (
Expand Down
3 changes: 1 addition & 2 deletions _pytest/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
import sys
import time
import platform

import _pytest._pluggy as pluggy
import pluggy


def pytest_addoption(parser):
Expand Down
13 changes: 0 additions & 13 deletions _pytest/vendored_packages/README.md

This file was deleted.

Empty file.
11 changes: 0 additions & 11 deletions _pytest/vendored_packages/pluggy-0.4.0.dist-info/DESCRIPTION.rst

This file was deleted.

1 change: 0 additions & 1 deletion _pytest/vendored_packages/pluggy-0.4.0.dist-info/INSTALLER

This file was deleted.

22 changes: 0 additions & 22 deletions _pytest/vendored_packages/pluggy-0.4.0.dist-info/LICENSE.txt

This file was deleted.

40 changes: 0 additions & 40 deletions _pytest/vendored_packages/pluggy-0.4.0.dist-info/METADATA

This file was deleted.

9 changes: 0 additions & 9 deletions _pytest/vendored_packages/pluggy-0.4.0.dist-info/RECORD

This file was deleted.

6 changes: 0 additions & 6 deletions _pytest/vendored_packages/pluggy-0.4.0.dist-info/WHEEL

This file was deleted.

This file was deleted.

This file was deleted.

Loading