Adjust molecule requirements

openstack-tox-molecule is currently broken with dependency issues
between pytest-html and molecule.

This change uses the same pytest/molecule requirements spec as
tripleo-ansible[1] and breaks out the requirements into their own
file.

[1] https://opendev.org/openstack/tripleo-ansible/src/branch/master/molecule-requirements.txt
Closes-Bug: #1867035

Change-Id: I89f969808877c389af3d1fb977530735984b9bbf
This commit is contained in:
Steve Baker 2020-03-18 09:43:18 +13:00
parent a3b286151c
commit 076c67e879
2 changed files with 12 additions and 12 deletions

11
molecule-requirements.txt Normal file
View File

@ -0,0 +1,11 @@
ansi2html
docker>=4.0.1
paramiko>=2.5.0
pytest
pytest-cov
pytest-html
pytest-molecule
pytest-xdist
mock
molecule>=3.0,<3.1
selinux>=0.2.1

13
tox.ini
View File

@ -60,18 +60,7 @@ commands =
# basepython forces tox to use system python and avoid other python versions like pyenv ones
# because those are unlikely to have the required libselinux library available.
basepython=python
deps =
ansi2html
docker>=4.0.1
paramiko>=2.5.0
pytest
pytest-cov
pytest-molecule
pytest-html<=2.0.1
pytest-xdist
mock
molecule==3.0a9
selinux>=0.2.1
deps = -r{toxinidir}/molecule-requirements.txt
commands =
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html {tty:-s} {posargs}