From 4f97be79523ede437efb3d2e0d133af6fd51dc0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 7 Dec 2022 22:32:57 +0100 Subject: [PATCH] Define and use a [tests] extra --- setup.py | 7 +++++++ tox.ini | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 0b92eb9..a976155 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/tox.ini b/tox.ini index 3834b7d..388429f 100644 --- a/tox.ini +++ b/tox.ini @@ -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