Skip to content

Commit 4f97be7

Browse files
committed
Define and use a [tests] extra
1 parent d2f9344 commit 4f97be7

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ def long_description():
2222
"tox>=3.15,<4",
2323
"importlib_metadata; python_version < '3.8'"
2424
],
25+
extras_require={
26+
"tests": [
27+
"pytest",
28+
"pytest-xdist",
29+
"packaging",
30+
],
31+
},
2532
python_requires=">=3.6",
2633
classifiers=[
2734
"Development Status :: 3 - Alpha",

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
envlist = {py36,py37,py38,py39,py310}-tox{release,master,315}
66

77
[testenv]
8+
extras =
9+
tests
810
deps=
9-
pytest
10-
pytest-xdist
11-
packaging
1211
tox315: tox >=3.15,<3.16
1312
toxrelease: tox < 4
1413
toxmaster: git+https://github.com/tox-dev/tox.git@master

0 commit comments

Comments
 (0)