Force constraints when installing a package during tox test
The tox deps option grants installation of single dependencies and requirements, optionally pinned using constraints, before installing a package, therefore not granting installation of the correct constraint during the package installation. To fix that tox 4.4.0 has introduced the constrain_package_deps option [1] [1] https://tox.wiki/en/4.12.1/faq.html#using-constraint-files Change-Id: Ied659411bffb3f37e67523bc50a6a03b19cceef6
This commit is contained in:
parent
8659bff73d
commit
bd08bf4f85
4
tox.ini
4
tox.ini
@ -1,8 +1,9 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 3.18.0
|
minversion = 4.4.0
|
||||||
envlist = py3,pep8
|
envlist = py3,pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
constrain_package_deps = true
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
deps =
|
deps =
|
||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
@ -56,6 +57,7 @@ deps =
|
|||||||
hacking~=6.1.0 # Apache-2.0
|
hacking~=6.1.0 # Apache-2.0
|
||||||
pycodestyle>=2.0.0,<3.0.0 # MIT
|
pycodestyle>=2.0.0,<3.0.0 # MIT
|
||||||
doc8>=0.8.1 # Apache-2.0
|
doc8>=0.8.1 # Apache-2.0
|
||||||
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
commands =
|
commands =
|
||||||
flake8 ironic_inspector
|
flake8 ironic_inspector
|
||||||
doc8 -e .rst -e .inc README.rst CONTRIBUTING.rst doc/source api-ref/source
|
doc8 -e .rst -e .inc README.rst CONTRIBUTING.rst doc/source api-ref/source
|
||||||
|
Loading…
Reference in New Issue
Block a user