Skip to content

Commit 3fcbc79

Browse files
authored
add entrypoint for pytest_lockable.plugin (#26)
1 parent 3e0ff18 commit 3fcbc79

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ pytest --allocation_hostname localhost -s --allocation_requirements os=Android m
4242
pip install pytest-lockable
4343
```
4444

45-
`conftest.py`:
46-
47-
```
48-
pytest_plugins = ("lockable.plugin",)
49-
```
5045

5146
## integrations
5247

example/conftest.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
11
""" example conftest """
2-
import sys
3-
import os
4-
TEST_DIR = os.path.dirname(os.path.abspath(__file__))
5-
PLUGIN_DIR = os.path.join(TEST_DIR, '../')
6-
sys.path.insert(0, PLUGIN_DIR)
7-
8-
pytest_plugins = ("pytest_lockable.plugin", "metadata") # pylint: disable=invalid-name

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
],
5050
packages=find_packages(exclude=['tests']),
5151
keywords="py.test pytest lockable resource",
52+
entry_points={"pytest11": ["pytest_lockable = pytest_lockable.plugin"]},
5253
python_requires='>=3.7, <4',
5354
install_requires=[
5455
'pytest',

0 commit comments

Comments
 (0)