"Fossies" - the Fresh Open Source Software Archive

Member "keystone-17.0.0/tox.ini" (13 May 2020, 5578 Bytes) of package /linux/misc/openstack/keystone-17.0.0.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": 16.0.1_vs_17.0.0.

    1 [tox]
    2 minversion = 3.2.0
    3 skipsdist = True
    4 envlist = py37,pep8,api-ref,docs,genconfig,genpolicy,releasenotes,protection
    5 
    6 [testenv]
    7 usedevelop = True
    8 basepython = python3
    9 setenv = VIRTUAL_ENV={envdir}
   10 deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
   11        -r{toxinidir}/test-requirements.txt
   12        -r{toxinidir}/requirements.txt
   13        .[ldap,memcache,mongodb]
   14 commands =
   15   find keystone -type f -name "*.pyc" -delete
   16   stestr run {posargs}
   17 whitelist_externals =
   18   bash
   19   find
   20 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY PBR_VERSION
   21 
   22 [testenv:api-ref]
   23 deps = -r{toxinidir}/doc/requirements.txt
   24 commands =
   25   bash -c "rm -rf api-ref/build"
   26   sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
   27 
   28 [testenv:pep8]
   29 deps =
   30      .[bandit]
   31      {[testenv]deps}
   32 commands =
   33   flake8 --ignore=D100,D101,D102,D103,D104,E305,E402,W503,W504,W605
   34   # Run bash8 during pep8 runs to ensure violations are caught by
   35   # the check and gate queues
   36   bashate devstack/plugin.sh
   37   # Run security linter
   38   bandit -r keystone -x 'keystone/tests/*'
   39 
   40 [testenv:fast8]
   41 envdir = {toxworkdir}/pep8
   42 commands =
   43   {toxinidir}/tools/fast8.sh
   44 passenv = FAST8_NUM_COMMITS
   45 
   46 [testenv:bandit]
   47 # NOTE(browne): This is required for the integration test job of the bandit
   48 # project. Please do not remove.
   49 deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
   50        -r{toxinidir}/requirements.txt
   51        .[bandit]
   52 commands = bandit -r keystone -x 'keystone/tests/*'
   53 
   54 [testenv:cover]
   55 # Also do not run test_coverage_ext tests while gathering coverage as those
   56 # tests conflict with coverage.
   57 setenv =
   58   {[testenv]setenv}
   59   PYTHON=coverage run --source keystone --parallel-mode
   60 commands =
   61   find keystone -type f -name "*.pyc" -delete
   62   stestr run {posargs}
   63   coverage combine
   64   coverage html -d cover
   65   coverage xml -o cover/coverage.xml
   66 
   67 [testenv:patch_cover]
   68 commands =
   69   bash tools/cover.sh
   70 
   71 [testenv:venv]
   72 commands = {posargs}
   73 
   74 [testenv:debug]
   75 commands =
   76   find keystone -type f -name "*.pyc" -delete
   77   oslo_debug_helper {posargs}
   78 passenv =
   79     KSTEST_ADMIN_URL
   80     KSTEST_ADMIN_USERNAME
   81     KSTEST_ADMIN_PASSWORD
   82     KSTEST_ADMIN_DOMAIN_ID
   83     KSTEST_PUBLIC_URL
   84     KSTEST_USER_USERNAME
   85     KSTEST_USER_PASSWORD
   86     KSTEST_USER_DOMAIN_ID
   87     KSTEST_PROJECT_ID
   88 
   89 [testenv:functional]
   90 deps = -r{toxinidir}/test-requirements.txt
   91 setenv = OS_TEST_PATH=./keystone/tests/functional
   92 commands =
   93   find keystone -type f -name "*.pyc" -delete
   94   stestr run {posargs}
   95   stestr slowest
   96 passenv =
   97     KSTEST_ADMIN_URL
   98     KSTEST_ADMIN_USERNAME
   99     KSTEST_ADMIN_PASSWORD
  100     KSTEST_ADMIN_DOMAIN_ID
  101     KSTEST_PUBLIC_URL
  102     KSTEST_USER_USERNAME
  103     KSTEST_USER_PASSWORD
  104     KSTEST_USER_DOMAIN_ID
  105     KSTEST_PROJECT_ID
  106 
  107 [flake8]
  108 filename= *.py,keystone-manage
  109 show-source = true
  110 enable-extensions = H203,H904
  111 
  112 # D100: Missing docstring in public module
  113 # D101: Missing docstring in public class
  114 # D102: Missing docstring in public method
  115 # D103: Missing docstring in public function
  116 # D104: Missing docstring in public package
  117 # D203: 1 blank line required before class docstring (deprecated in pep257)
  118 # TODO(wxy): Fix the pep8 issue.
  119 # E402: module level import not at top of file
  120 # W503: line break before binary operator
  121 ignore = D100,D101,D102,D103,D104,D203,E402,W503
  122 
  123 exclude=.venv,.git,.tox,build,dist,*lib/python*,*egg,tools,vendor,.update-venv,*.ini,*.po,*.pot
  124 max-complexity=24
  125 
  126 [testenv:docs]
  127 deps =
  128   -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
  129   -r{toxinidir}/doc/requirements.txt
  130   .[ldap,memcache,mongodb]
  131 commands=
  132     bash -c "rm -rf doc/build"
  133     bash -c "rm -rf doc/source/api"
  134     sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
  135 
  136 # FIXME(gyee): we need to pre-create the doc/build/pdf/_static directory as a
  137 # workaround because sphinx_feature_classification.support_matrix extension
  138 # is operating under the assumption that the _static directory already exist
  139 # and trying to copy support-matrix.css into it. We need to remove
  140 # the workaround after this patch has merged:
  141 # https://review.opendev.org/#/c/679860
  142 [testenv:pdf-docs]
  143 envdir = {toxworkdir}/docs
  144 deps = {[testenv:docs]deps}
  145 whitelist_externals =
  146   make
  147   mkdir
  148   rm
  149 commands =
  150   rm -rf doc/build/pdf
  151   mkdir -p doc/build/pdf/_static
  152   sphinx-build -W -b latex doc/source doc/build/pdf
  153   make -C doc/build/pdf
  154 
  155 [testenv:releasenotes]
  156 deps = -r{toxinidir}/doc/requirements.txt
  157 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  158 
  159 [testenv:genconfig]
  160 commands = oslo-config-generator --config-file=config-generator/keystone.conf
  161 
  162 [testenv:genpolicy]
  163 commands = oslopolicy-sample-generator --config-file config-generator/keystone-policy-generator.conf
  164 
  165 [hacking]
  166 import_exceptions =
  167   keystone.i18n
  168   six.moves
  169 local-check-factory = keystone.tests.hacking.checks.factory
  170 
  171 [testenv:bindep]
  172 # Do not install any requirements. We want this to be fast and work even if
  173 # system dependencies are missing, since it's used to tell you what system
  174 # dependencies are missing! This also means that bindep must be installed
  175 # separately, outside of the requirements files.
  176 deps = bindep
  177 commands = bindep test
  178 
  179 [testenv:lower-constraints]
  180 deps =
  181   -c{toxinidir}/lower-constraints.txt
  182   -r{toxinidir}/test-requirements.txt
  183   .[ldap,memcache,mongodb]
  184 
  185 [testenv:protection]
  186 commands =
  187   find keystone -type f -name "*.pyc" -delete
  188   stestr run --test-path=./keystone/tests/protection {posargs}