Skip to content

Commit

Permalink
add python 3.9 classification and pytest entry_point for package (#21)
Browse files Browse the repository at this point in the history
* add python 3.9 classification
* add pytest11 entry_point
  • Loading branch information
jupe authored Feb 28, 2022
1 parent cfaa868 commit 3364c64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ Install using pip:

`pip install pytest-opentmi`

Enable plugin:

conftest.py:
```
pytest_plugins = ("pytest_opentmi.plugin",)
```
plugin is enabled by using `--opentmi` CLI argument.

Running with pytest:

Expand Down
3 changes: 2 additions & 1 deletion example/conftest.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pytest_plugins = ("pytest_opentmi.plugin",)
# this is enabled by default when installed via pip
# pytest_plugins = ("pytest_opentmi.plugin",)
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:copyright: (c) 2020 by Jussi Vatjus-Anttila
:copyright: (c) 2022 by Jussi Vatjus-Anttila
:license: MIT, see LICENSE for more details.
"""
from setuptools import setup
Expand All @@ -18,7 +18,7 @@
url="https://github.com/opentmi/pytest-opentmi",
packages=["pytest_opentmi"],
# package_data={"pytest_opentmi": ["resources/*"]},
# entry_points={"pytest11": ["html = pytest_opentmi.plugin"]},
entry_points={"pytest11": ["pytest_opentmi = pytest_opentmi.plugin"]},
setup_requires=["setuptools_scm"],
install_requires=["pytest>=5.0", "pytest-metadata", "opentmi-client>=0.10.1", "joblib"],
# List additional groups of dependencies here (e.g. development
Expand Down Expand Up @@ -48,8 +48,9 @@
"Topic :: Utilities",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
],
)

0 comments on commit 3364c64

Please sign in to comment.