Skip to content

Commit

Permalink
add entrypoint for pytest_lockable.plugin (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
jupe authored Feb 28, 2022
1 parent 3e0ff18 commit 3fcbc79
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 0 additions & 7 deletions example/conftest.py
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3fcbc79

Please sign in to comment.