From 3364c64acde6104a9cadc9d986a1e2cf9078aa0f Mon Sep 17 00:00:00 2001 From: Jussi Vatjus-Anttila Date: Mon, 28 Feb 2022 21:59:36 +0200 Subject: [PATCH] add python 3.9 classification and pytest entry_point for package (#21) * add python 3.9 classification * add pytest11 entry_point --- README.md | 7 +------ example/conftest.py | 3 ++- setup.py | 7 ++++--- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0ffd36c..aa8d14a 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/example/conftest.py b/example/conftest.py index b2f6afb..4989f1d 100644 --- a/example/conftest.py +++ b/example/conftest.py @@ -1 +1,2 @@ -pytest_plugins = ("pytest_opentmi.plugin",) +# this is enabled by default when installed via pip +# pytest_plugins = ("pytest_opentmi.plugin",) diff --git a/setup.py b/setup.py index 06898b8..d5552f2 100644 --- a/setup.py +++ b/setup.py @@ -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 @@ -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 @@ -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", ], )