Skip to content

Commit

Permalink
Add optional dependencies for test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Manitary committed Oct 3, 2023
1 parent 8074b39 commit 4c1af3c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
build/
dist/
.venv
.coverage
*.spec
__pycache__
.tox
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tox]
envlist = py38, py39, py310, py311, py312

[testenv]
deps =
pytest
pytest-qt
commands = pytest

0 comments on commit 4c1af3c

Please sign in to comment.