Sphinx extension to support OpenStack API reference pages creation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tox.ini 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [tox]
  2. minversion = 2.0
  3. envlist = py27,py37,pep8,docs
  4. skipsdist = True
  5. [testenv]
  6. setenv =
  7. VIRTUAL_ENV={envdir}
  8. install_command = pip install -U {opts} {packages}
  9. deps =
  10. -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
  11. -r{toxinidir}/requirements.txt
  12. -r{toxinidir}/test-requirements.txt
  13. commands = stestr run {posargs}
  14. [testenv:pep8]
  15. basepython = python3
  16. commands = flake8 {posargs}
  17. [testenv:venv]
  18. commands = {posargs}
  19. [testenv:cover]
  20. basepython = python3
  21. commands = python setup.py test --coverage --testr-args='{posargs}'
  22. [testenv:docs]
  23. basepython = python3
  24. deps =
  25. -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
  26. -r{toxinidir}/requirements.txt
  27. -r{toxinidir}/doc/requirements.txt
  28. commands = sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
  29. [testenv:debug]
  30. basepython = python3
  31. commands = oslo_debug_helper {posargs}
  32. [flake8]
  33. # E123, E125 skipped as they are invalid PEP-8.
  34. show-source = True
  35. ignore = E123,E125,E129
  36. builtins = _
  37. exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build