Skip to content

Commit

Permalink
Reorganize test requirements
Browse files Browse the repository at this point in the history
- Move test requirements from tox.ini to a test extra
- Removes unused test requirements
- Bumps test requirements to decrease change of running outdated
  version while developing, including avoidance of
  pytest-dev/pytest-cov#422
  • Loading branch information
ssbarnea committed Aug 27, 2020
1 parent b9c345f commit fe024d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 2 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe024d0

Please sign in to comment.