From 4c1af3caddbf6efe38015e38ead3406cd6bc1691 Mon Sep 17 00:00:00 2001 From: Manitary Date: Tue, 3 Oct 2023 14:39:15 +0100 Subject: [PATCH] Add optional dependencies for test environment --- .gitignore | 2 ++ pyproject.toml | 8 ++++++++ tox.ini | 8 ++++++++ 3 files changed, 18 insertions(+) create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index dd094f9..0efeebc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ build/ dist/ +.venv .coverage *.spec __pycache__ +.tox diff --git a/pyproject.toml b/pyproject.toml index 7ee3fde..6376d46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,3 +34,11 @@ package-dir = { "" = "src" } [project.gui-scripts] pdf-metadata-editor = "pdfMetadataEditor.editor:main" + +[project.optional-dependencies] +test = [ + "pytest >= 7.4.2", + "pytest-cov >= 4.1.0", + "pytest-qt >= 4.2.0", + "tox >= 4.11.3", +] diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..a32fba6 --- /dev/null +++ b/tox.ini @@ -0,0 +1,8 @@ +[tox] +envlist = py38, py39, py310, py311, py312 + +[testenv] +deps = + pytest + pytest-qt +commands = pytest