service-types-authority/tox.ini
Monty Taylor 27d1df7a85
Ensure git rev-parse output works in python3
basepython goes in testenv section, not in tox section. This means this
hasn't actually been running under python3. When running it in python3,
output from shell commands is bytes, not string, which means you get this:

  b'b92dbb8f25972dabdce851d34b97996b31f08b75' is not of type 'string'

Decoding the output is more correct in the python, and fixing the
tox.ini file means we won't regress.

Also fix an issue in doc/source/conf.py

Change-Id: I7d59a7ad9eda54e0347bdc3110cc8a95139f6e17
2017-08-14 18:34:45 -05:00

38 lines
630 B
INI

[tox]
minversion = 1.6
envlist = pep8,validate,docs
skipdist = True
[testenv]
basepython = python3
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
[testenv:validate]
deps = jsonschema
commands =
python transform.py -n
[testenv:publish]
commands =
python validate.py
python transform.py
python publish.py
[testenv:pep8]
deps = hacking
commands = flake8
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:venv]
commands = {posargs}
[flake8]
show-source = True
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build