Skip to content

Commit

Permalink
Define and use a [tests] extra
Browse files Browse the repository at this point in the history
  • Loading branch information
hroncok committed Dec 7, 2022
1 parent d2f9344 commit 4f97be7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ def long_description():
"tox>=3.15,<4",
"importlib_metadata; python_version < '3.8'"
],
extras_require={
"tests": [
"pytest",
"pytest-xdist",
"packaging",
],
},
python_requires=">=3.6",
classifiers=[
"Development Status :: 3 - Alpha",
Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
envlist = {py36,py37,py38,py39,py310}-tox{release,master,315}

[testenv]
extras =
tests
deps=
pytest
pytest-xdist
packaging
tox315: tox >=3.15,<3.16
toxrelease: tox < 4
toxmaster: git+https://github.com/tox-dev/tox.git@master
Expand Down

0 comments on commit 4f97be7

Please sign in to comment.