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