Split up ansible-test sanity test requirements.
This commit is contained in:
parent
a93a0c8fd6
commit
278044358c
3 changed files with 9 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
4
test/sanity/requirements.txt
Normal file
4
test/sanity/requirements.txt
Normal 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+
|
Loading…
Reference in a new issue