Machine Learning as a Service in Apache Spark.
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.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. [tox]
  2. minversion = 2.0
  3. skipsdist = True
  4. envlist = py35,py27,pep8
  5. [testenv]
  6. setenv = VIRTUAL_ENV={envdir}
  7. usedevelop = True
  8. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  9. whitelist_externals = find
  10. deps = -r{toxinidir}/requirements.txt
  11. -r{toxinidir}/test-requirements.txt
  12. commands =
  13. find . -type f -name "*.py[c|o]" -delete
  14. ostestr {posargs}
  15. [testenv:releasenotes]
  16. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees \
  17. -b html releasenotes/source releasenotes/build/html
  18. [testenv:install-guide]
  19. # builds to install-guide/build/html
  20. commands = sphinx-build -a -E -W -d install-guide/build/doctrees -b html install-guide/source install-guide/build/html
  21. [testenv:debug]
  22. commands = oslo_debug_helper -t meteos/tests {posargs}
  23. [testenv:debug-py27]
  24. basepython = python2.7
  25. commands = oslo_debug_helper -t meteos/tests {posargs}
  26. [testenv:debug-py35]
  27. basepython = python3.5
  28. commands = oslo_debug_helper -t meteos/tests {posargs}
  29. [testenv:pep8]
  30. commands = flake8 {posargs}
  31. [testenv:genconfig]
  32. whitelist_externals = bash
  33. commands =
  34. oslo-config-generator --config-file etc/oslo-config-generator/meteos.conf
  35. [testenv:venv]
  36. commands = {posargs}
  37. [testenv:docs]
  38. commands = python setup.py build_sphinx
  39. [testenv:api-ref]
  40. # This environment is called from CI scripts to test and publish
  41. # the API Ref to developer.openstack.org.
  42. whitelist_externals = rm
  43. commands =
  44. rm -rf api-ref/build
  45. sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
  46. [testenv:dbrevision]
  47. deps = -r{toxinidir}/requirements.txt
  48. commands = alembic -c meteos/db/migrations/alembic.ini revision -m ""{posargs}
  49. [flake8]
  50. # Following checks are ignored on purpose:
  51. ignore = E127,E128,E501,F401
  52. builtins = _
  53. exclude = .git,.tox,.testrepository,.venv,build,cover,dist,doc,*egg,api-ref/build,*/source/conf.py
  54. # [H904] Delay string interpolations at logging calls.
  55. enable-extensions=H904
  56. [hacking]
  57. local-check-factory = meteos.hacking.checks.factory