Split up ansible-test sanity test requirements.

This commit is contained in:
Matt Clay 2019-08-07 07:13:28 -07:00
parent a93a0c8fd6
commit 278044358c
3 changed files with 9 additions and 6 deletions

View file

@ -1,14 +1,9 @@
cryptography
jinja2
mock
packaging # needed for update-bundled and changelog
pycodestyle
pylint ; python_version >= '3.5' # pylint 2.0.0 and later require python 3+
pytest
pyyaml
rstcheck ; python_version >= '2.7' # rstcheck requires python 2.7+
sphinx ; python_version >= '3.5' # docs build requires python 3+
sphinx-notfound-page ; python_version >= '3.5' # docs build requires python 3+
straight.plugin ; python_version >= '3.5' # needed for hacking/build-ansible.py which will host changelog generation and requires python 3+
virtualenv
voluptuous ; python_version >= '2.7' # voluptuous 0.11.0 and later require python 2.7+
yamllint

View file

@ -323,6 +323,10 @@ def generate_pip_install(pip, command, packages=None):
if os.path.exists(requirements) and os.path.getsize(requirements):
options += ['-r', requirements]
if data_context().content.is_ansible:
if command == 'sanity':
options += ['-r', os.path.join(data_context().content.root, 'test', 'sanity', 'requirements.txt')]
if packages:
options += packages

View file

@ -0,0 +1,4 @@
packaging # needed for update-bundled and changelog
sphinx ; python_version >= '3.5' # docs build requires python 3+
sphinx-notfound-page ; python_version >= '3.5' # docs build requires python 3+
straight.plugin ; python_version >= '3.5' # needed for hacking/build-ansible.py which will host changelog generation and requires python 3+