Remove tox skipdist=True

This does not work with latest tox 4.x.
Also fixes few other issues in tox.ini.

Closes-Bug: #2000357
Change-Id: Ia3fe0e1de08f47ec434d04a5baae2b476132be19
This commit is contained in:
rabi 2022-12-23 12:30:43 +05:30
parent d9ac151c53
commit 254ff2bd1c
1 changed files with 5 additions and 6 deletions

11
tox.ini
View File

@ -1,7 +1,6 @@
[tox]
minversion = 3.18.0
envlist = docs,linters
skipsdist = True
[testenv]
usedevelop = True
@ -58,13 +57,12 @@ deps = bindep
commands = bindep test
[testenv:linters]
skipsdist = True
skip_install = True
sitepackages = False
deps =
pre-commit
virtualenv
-r {toxinidir}/ansible-requirements.txt
-r {toxinidir}/ansible-requirements.txt
commands =
bash -c "ANSIBLE_ROLES_PATH='{toxinidir}/tripleo_ansible/roles.galaxy' \
ansible-galaxy install --timeout 300 -fr {toxinidir}/tripleo_ansible/requirements.yml"
@ -100,8 +98,9 @@ commands = {posargs}
[testenv:pep8]
description = "[deprecated], use linters instead."
deps =
commands = true
skipsdist = True
{[testenv:linters]deps}
commands =
{[testenv:linters]commands}
skip_install = True
sitepackages = False
@ -119,7 +118,7 @@ commands =
cd {toxinidir}/tripleo_ansible/roles/skeleton_test; \
molecule --base-config {toxinidir}/.config/molecule/config_podman.yml test --all; \
else \
echo -e '\n\nNo molecule tests have been executed\nSee https://docs.openstack.org/tripleo-ansible/latest/contributing.html#local-testing-of-new-roles\n\n'; \
echo -e '\n\nNo molecule tests have been executed\nSee https://docs.openstack.org/tripleo-ansible/latest/contributing.html\n\n'; \
fi"
{[testenv:linters]commands}