OpenStack library for serialization
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.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [tox]
  2. minversion = 2.0
  3. envlist = py35,py27,pep8
  4. [testenv]
  5. install_command = pip install {opts} {packages}
  6. deps =
  7. -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  8. -r{toxinidir}/test-requirements.txt
  9. -r{toxinidir}/requirements.txt
  10. commands = stestr run --slowest {posargs}
  11. [testenv:py27]
  12. basepython = python2.7
  13. [testenv:pep8]
  14. basepython = python3
  15. deps =
  16. -r{toxinidir}/test-requirements.txt
  17. commands =
  18. flake8
  19. # Run security linter
  20. bandit -r oslo_serialization tests -n5
  21. [testenv:venv]
  22. basepython = python3
  23. commands = {posargs}
  24. [testenv:docs]
  25. basepython = python3
  26. deps = -r{toxinidir}/doc/requirements.txt
  27. commands = sphinx-build -W -b html doc/source doc/build/html
  28. [testenv:cover]
  29. basepython = python3
  30. commands = python setup.py test --coverage --coverage-package-name=oslo_serialization --testr-args='{posargs}'
  31. [flake8]
  32. # E123, E125 skipped as they are invalid PEP-8.
  33. show-source = True
  34. ignore = E123,E125
  35. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
  36. [testenv:releasenotes]
  37. basepython = python3
  38. deps = -r{toxinidir}/doc/requirements.txt
  39. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  40. [testenv:lower-constraints]
  41. basepython = python3
  42. deps =
  43. -c{toxinidir}/lower-constraints.txt
  44. -r{toxinidir}/test-requirements.txt
  45. -r{toxinidir}/requirements.txt