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

add python 3.9 classification and pytest entry_point for package #21

Merged
merged 5 commits into from
Feb 28, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
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",
],
)