
New urllib3 and python requests break python docker-compose. Pin requests back which should use an older urllib3. Hopefully this fixes docker-compose. Note this should probably only be used as a temporary workaround. A more permanent fix should change the way we install docker-compose. Also stop relying on six since it's no longer available and we dropped Python 2.7 support quite some time back anyway. Clean up some things in tox.ini which regressed in Tox v4. Co-Authored-By: Clark Boylan <cboylan@sapwetik.org> Change-Id: I69a7ba09f737130a403f0657708877ce986f751c
32 lines
732 B
INI
32 lines
732 B
INI
[tox]
|
|
minversion = 1.6
|
|
skip_missing_interpreters = false
|
|
# https://docs.python.org/devguide/#status-of-python-branches
|
|
envlist = pep8, py{310,39,38,py}
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
stestr run --slowest {posargs}
|
|
|
|
[testenv:pep8]
|
|
deps =
|
|
hacking
|
|
commands = flake8
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
# These are ignored intentionally in infra projects;
|
|
# please don't submit patches that solely correct them or enable them.
|
|
ignore =
|
|
E124,E125,E129,E252,E402,E741,H,W503,W504
|
|
N802 # N802 function name {} should be lowercase
|
|
exclude = .venv,.tox,dist,doc,build,*.egg
|