The UI component for Meteos.
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 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. [tox]
  2. envlist = py35,py27,py27dj18,pep8
  3. minversion = 2.0
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. setenv = VIRTUAL_ENV={envdir}
  8. NOSE_WITH_OPENSTACK=1
  9. NOSE_OPENSTACK_COLOR=1
  10. NOSE_OPENSTACK_RED=0.05
  11. NOSE_OPENSTACK_YELLOW=0.025
  12. NOSE_OPENSTACK_SHOW_ELAPSED=1
  13. PYTHONWARNINGS=default::DeprecationWarning
  14. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -U {opts} {packages}
  15. deps = -r{toxinidir}/requirements.txt
  16. -r{toxinidir}/test-requirements.txt
  17. commands = python manage.py test {posargs} --settings=meteos_ui.test.settings
  18. # Until python-meteosclient released, install from github temporary.
  19. [testenv:py35]
  20. basepython = python3.5
  21. commands =
  22. pip install git+https://github.com/openstack/python-meteosclient.git
  23. python manage.py test {posargs} --settings=meteos_ui.test.settings
  24. [testenv:py27]
  25. basepython = python2.7
  26. commands =
  27. pip install git+https://github.com/openstack/python-meteosclient.git
  28. python manage.py test {posargs} --settings=meteos_ui.test.settings
  29. [testenv:pep8]
  30. commands = flake8 {posargs}
  31. [testenv:venv]
  32. commands = {posargs}
  33. [testenv:cover]
  34. commands = python setup.py test --coverage --testr-args='{posargs}'
  35. [testenv:py27dj18]
  36. basepython = python2.7
  37. commands =
  38. pip install django>=1.8,<1.9
  39. python manage.py test {posargs} --settings=meteos_ui.test.settings
  40. [testenv:docs]
  41. setenv = DJANGO_SETTINGS_MODULE=meteos_ui.test.settings
  42. commands = python setup.py build_sphinx
  43. [testenv:releasenotes]
  44. commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  45. [flake8]
  46. exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py,*/local/*,*/test/test_plugins/*,.ropeproject
  47. max-complexity = 20
  48. [hacking]
  49. import_exceptions = collections.defaultdict,
  50. django.conf.settings,
  51. django.conf.urls.include,
  52. django.conf.urls.patterns,
  53. django.conf.urls.url,
  54. django.core.urlresolvers.reverse,
  55. django.core.urlresolvers.reverse_lazy,
  56. django.template.loader.render_to_string,
  57. django.test.utils.override_settings,
  58. django.utils.datastructures.SortedDict,
  59. django.utils.encoding.force_text,
  60. django.utils.html.conditional_escape,
  61. django.utils.html.escape,
  62. django.utils.http.urlencode,
  63. django.utils.safestring.mark_safe,
  64. django.utils.translation.npgettext_lazy,
  65. django.utils.translation.pgettext_lazy,
  66. django.utils.translation.ugettext_lazy,
  67. django.utils.translation.ungettext_lazy,
  68. operator.attrgetter,
  69. StringIO.StringIO