"Fossies" - the Fresh Open Source Software Archive

Member "zun-4.0.2/tox.ini" (1 Feb 2021, 4503 Bytes) of package /linux/misc/openstack/zun-4.0.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) INI source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "tox.ini": 4.0.1_vs_4.0.2.

    1 [tox]
    2 minversion = 2.0
    3 envlist = py27,py37,pep8,migration
    4 skipsdist = True
    5 
    6 [testenv]
    7 usedevelop = True
    8 install_command = pip install {opts} {packages}
    9 whitelist_externals = bash
   10                       find
   11                       rm
   12 setenv =
   13    VIRTUAL_ENV={envdir}
   14    PYTHONWARNINGS=default::DeprecationWarning
   15 
   16 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/train}
   17        -r{toxinidir}/requirements.txt
   18        -r{toxinidir}/test-requirements.txt
   19 
   20 commands =
   21   find . -type f -name "*.py[c|o]" -delete
   22   stestr run {posargs}
   23   stestr slowest
   24 
   25 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
   26 
   27 [testenv:pep8]
   28 basepython = python3
   29 commands =
   30   doc8 -e .rst specs/ doc/source/ CONTRIBUTING.rst HACKING.rst README.rst
   31   bash tools/flake8wrap.sh {posargs}
   32   # The following bandit tests are being skipped:
   33   # B303 - Use of insecure MD2, MD4, or MD5 hash function.
   34   # B604 - unction call with shell=True parameter identified, possible security issue.
   35   bandit -r zun -x tests -n5 -ll --skip B303,B604
   36 
   37 [testenv:venv]
   38 basepython = python3
   39 #set PYTHONHASHSEED=0 to prevent oslo_policy.sphinxext from randomly failing.
   40 setenv = PYTHONHASHSEED=0
   41 commands = {posargs}
   42 
   43 [testenv:cover]
   44 basepython = python3
   45 setenv =
   46     {[testenv]setenv}
   47     PYTHON=coverage run --source zun --parallel-mode
   48 commands =
   49     stestr run {posargs}
   50     coverage combine
   51     coverage html -d cover
   52     coverage xml -o cover/coverage.xml
   53     coverage report
   54 
   55 [testenv:docs]
   56 basepython = python3
   57 deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/train}
   58        -r{toxinidir}/doc/requirements.txt
   59 commands =
   60     sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
   61 
   62 [testenv:debug]
   63 basepython = python3
   64 commands = oslo_debug_helper {posargs}
   65 
   66 [testenv:debug-py27]
   67 basepython = python2.7
   68 commands = oslo_debug_helper {posargs}
   69 
   70 [testenv:debug-py36]
   71 basepython = python3.6
   72 commands = oslo_debug_helper {posargs}
   73 
   74 [testenv:migration]
   75 basepython = python3
   76 setenv = {[testenv]setenv}
   77    OS_TEST_PATH=./zun/tests/migration
   78 deps = {[testenv]deps}
   79 commands =
   80   find . -type f -name "*.py[c|o]" -delete
   81   stestr run {posargs}
   82   stestr slowest
   83 
   84 [flake8]
   85 filename = *.py,app.wsgi
   86 show-source = True
   87 # [H904] Delay string interpolations at logging calls.
   88 enable-extensions = H203,H106,H904
   89 # H405 is another one that is good as a guideline, but sometimes
   90 # multiline docstrings just don't have a natural summary line.
   91 # Rejecting code for this reason is wrong.
   92 ignore = E123,E125,H405
   93 builtins = _
   94 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
   95 
   96 [hacking]
   97 local-check-factory = zun.hacking.checks.factory
   98 
   99 [testenv:fast8]
  100 basepython = python3
  101 # NOTE(sheel.rana): `tox -e fast8` cab be used to run pep8 command only for
  102 # updated code instead for running whole code base.
  103 # Use same environment directory as pep8 env to save space and install time.
  104 
  105 envdir = {toxworkdir}/pep8
  106 commands =
  107   {toxinidir}/tools/fast8.sh
  108 
  109 [testenv:releasenotes]
  110 basepython = python3
  111 deps = -r{toxinidir}/doc/requirements.txt
  112 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  113 
  114 [testenv:genconfig]
  115 basepython = python3
  116 envdir = {toxworkdir}/venv
  117 commands =
  118     oslo-config-generator --config-file etc/zun/zun-config-generator.conf
  119 
  120 [testenv:genpolicy]
  121 basepython = python3
  122 commands =
  123     oslopolicy-sample-generator --config-file etc/zun/zun-policy-generator.conf
  124 
  125 [testenv:api-ref]
  126 basepython = python3
  127 deps = -r{toxinidir}/doc/requirements.txt
  128 commands =
  129   rm -rf api-ref/build
  130   sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
  131 
  132 [testenv:lower-constraints]
  133 basepython = python3
  134 deps =
  135   -c{toxinidir}/lower-constraints.txt
  136   -r{toxinidir}/test-requirements.txt
  137   -r{toxinidir}/requirements.txt
  138 
  139 # This environment can be used to quickly validate that all needed system
  140 # packages required to successfully execute test targets are installed
  141 [testenv:bindep]
  142 # Do not install any requirements. We want this to be fast and work even if
  143 # system dependencies are missing, since it's used to tell you what system
  144 # dependencies are missing! This also means that bindep must be installed
  145 # separately, outside of the requirements files.
  146 deps = bindep
  147 commands = bindep test
  148 
  149 [testenv:fullstack]
  150 basepython = python3
  151 setenv = {[testenv]setenv}
  152 deps = {[testenv]deps}
  153 commands =
  154   stestr --test-path=./zun/tests/fullstack run {posargs}
  155   stestr slowest