Skip to content

Commit 1d110ad

Browse files
committed
add tox configuration for testing multiple versions
- set targeted supported versions to python {3.7, 3.8, 3.9, 3.10} x pytest {7, 8} - change dependency of pytest to >=7.0,<9.0
1 parent ad5bf5b commit 1d110ad

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "inline"
77
dynamic = ["version"]
88
description = "A pytest plugin for writing inline tests"
99
readme = "README.md"
10-
requires-python = ">=3.8"
10+
requires-python = ">=3.7"
1111
license = { file = "LICENSE" }
1212
authors = [{ name = "Yu Liu", email = "im.yukiliu@gmail.com" }]
1313
maintainers = [
@@ -33,10 +33,10 @@ classifiers = [
3333
"Operating System :: OS Independent",
3434
"License :: OSI Approved :: MIT License",
3535
]
36-
dependencies = ["pytest~=7.0"]
36+
dependencies = ["pytest>=7.0,<9.0"]
3737

3838
[project.optional-dependencies]
39-
dev = ["hatch", "coverage[toml]", "black", "ruff", "tox"]
39+
dev = ["hatch", "coverage[toml]", "black", "ruff", "tox>=4.19"]
4040

4141
[project.urls]
4242
Issues = "https://github.com/pytest-dev/pytest-inline/issues"

tox.ini

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
[tox]
22
isolated_build = True
3-
envlist =
4-
py{37,38,39,310}
3+
requires =
4+
tox>=4.19
5+
env_list = py{37,38,39,310}-pytest{7,8}
56

67
[testenv]
7-
commands = pytest -p pytester
88
deps =
9+
pytest7: pytest~=7.0
10+
pytest8: pytest~=8.0
11+
commands =
912
pytest
10-
pytest-cov
11-
flake8
12-
black
13-
setenv =
14-
PYTHONDEVMODE=1

0 commit comments

Comments
 (0)