diff --git a/setup.cfg b/setup.cfg index 3cd60a46a4..51f5f6b654 100644 --- a/setup.cfg +++ b/setup.cfg @@ -78,6 +78,14 @@ install_requires = # NOTE: per issue #509 0.15.34 included in debian backports typing-extensions; python_version < "3.8" +[options.extras_require] +test = + pytest >= 6.0.1 + pytest-cov >= 2.10.1 + pytest-xdist >= 2.1.0 + # Needed to avoid DeprecationWarning errors in pytest: + setuptools >= 49.6.0 + [options.entry_points] console_scripts = ansible-lint = ansiblelint.__main__:main diff --git a/tox.ini b/tox.ini index 6c5a1eaebc..6c879783fa 100644 --- a/tox.ini +++ b/tox.ini @@ -20,15 +20,8 @@ deps = # https://github.com/ansible/ansible/issues/70705 ansibledevel: ansible>=2.10.0a1,<2.11 ansibledevel: ansible-base @ git+https://github.com/ansible/ansible.git - ruamel.yaml==0.16.5 # NOTE: 0.15.34 has issues with py37 - flake8 - pep8-naming - pytest - pytest-cov - pytest-xdist - # Needed to avoid DeprecationWarning errors in pytest: - setuptools >= 40.4.3 - wheel +extras = + test commands = # safety measure to assure we do not accidentaly run tests with broken dependencies python -m pip check