diff --git a/README.md b/README.md index 3cf2e53..05a063d 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,6 @@ pytest --allocation_hostname localhost -s --allocation_requirements os=Android m pip install pytest-lockable ``` -`conftest.py`: - -``` -pytest_plugins = ("lockable.plugin",) -``` ## integrations diff --git a/example/conftest.py b/example/conftest.py index 9ab5a90..341de7f 100644 --- a/example/conftest.py +++ b/example/conftest.py @@ -1,8 +1 @@ """ example conftest """ -import sys -import os -TEST_DIR = os.path.dirname(os.path.abspath(__file__)) -PLUGIN_DIR = os.path.join(TEST_DIR, '../') -sys.path.insert(0, PLUGIN_DIR) - -pytest_plugins = ("pytest_lockable.plugin", "metadata") # pylint: disable=invalid-name diff --git a/setup.py b/setup.py index 69080f4..07b160a 100644 --- a/setup.py +++ b/setup.py @@ -49,6 +49,7 @@ ], packages=find_packages(exclude=['tests']), keywords="py.test pytest lockable resource", + entry_points={"pytest11": ["pytest_lockable = pytest_lockable.plugin"]}, python_requires='>=3.7, <4', install_requires=[ 'pytest',