Adds tox environment to test requirements conflicts
Enables developer to check requirements for conflicts instead of letting him wondering clueless about a Zuul job failure. Also fixes broken requirements-check job due to sphinx conflict: ERROR: Could not find a global requirements entry to match package sphinx. If the package is already included in the global list, the name or platform markers there may not match the local settings. Change-Id: Ia20e7907c3a60727d9402bbec1456eedc7970a51
This commit is contained in:
8
tox.ini
8
tox.ini
@@ -114,3 +114,11 @@ deps =
|
||||
-c{toxinidir}/lower-constraints.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
-r{toxinidir}/requirements.txt
|
||||
|
||||
[testenv:requirements]
|
||||
basepython = python3
|
||||
deps =
|
||||
-egit+https://opendev.org/openstack/requirements#egg=openstack-requirements
|
||||
whitelist_externals = sh
|
||||
commands =
|
||||
sh -c '{envdir}/src/openstack-requirements/playbooks/files/project-requirements-change.py --req {envdir}/src/openstack-requirements --local {toxinidir} master'
|
||||
|
||||
Reference in New Issue
Block a user