"Fossies" - the Fresh Open Source Software Archive

Member "storlets-7.0.0/tox.ini" (14 Apr 2021, 3551 Bytes) of package /linux/misc/openstack/storlets-7.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": 6.0.0_vs_7.0.0.

    1 [tox]
    2 minversion = 3.2.0
    3 envlist = py27,py36,py38,pep8
    4 skipsdist = True
    5 ignore_basepython_conflict = True
    6 
    7 
    8 [testenv]
    9 usedevelop = True
   10 setenv =
   11    VIRTUAL_ENV={envdir}
   12    PYTHONPATH={toxinidir}/StorletSamples/python:{envdir}
   13    NOSE_WITH_COVERAGE=1
   14    NOSE_COVER_BRANCHES=1
   15 deps =
   16   -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
   17   -r{toxinidir}/requirements.txt
   18   -r{toxinidir}/test-requirements.txt
   19   git+git://github.com/openstack/swift.git
   20 commands =
   21     find . -type f -name "*.py[c|o]" -delete
   22     find . -type d -name "__pycache__" -delete
   23     stestr run --slowest --concurrency 1 {posargs:tests.unit}
   24 
   25 whitelist_externals = bash
   26                       find
   27                       rm
   28 
   29 [testenv:pep8python]
   30 basepython = python3
   31 commands =
   32   flake8
   33   flake8 --filename=* bin --exclude=bin/*.sh
   34 
   35 [testenv:py27]
   36 deps =
   37   -c{toxinidir}/py2-constraints.txt
   38   -r{toxinidir}/requirements.txt
   39   -r{toxinidir}/test-requirements.txt
   40   git+git://github.com/openstack/swift.git
   41 
   42 [testenv:func]
   43 basepython = python2.7
   44 deps = {[testenv:py27]deps}
   45 setenv =
   46    VIRTUAL_ENV={envdir}
   47    STORLET_SAMPLE_PATH={toxinidir}/StorletSamples
   48    CLUSTER_CONF_DIR={toxinidir}
   49 commands = {toxinidir}/.functests jenkins
   50 passenv = USE_PYTHON3
   51 
   52 [testenv:func-py3]
   53 basepython = python3
   54 deps =
   55   -r{toxinidir}/test-requirements.txt
   56   git+git://github.com/openstack/swift.git
   57 setenv =
   58    VIRTUAL_ENV={envdir}
   59    STORLET_SAMPLE_PATH={toxinidir}/StorletSamples
   60    CLUSTER_CONF_DIR={toxinidir}
   61 commands = {[testenv:func]commands}
   62 passenv = {[testenv:func]passenv}
   63 
   64 [testenv:venv]
   65 basepython = python3
   66 commands = {posargs}
   67 
   68 [testenv:cover]
   69 basepython = python3
   70 setenv =
   71    {[testenv]setenv}
   72    PYTHON=coverage run --source storlets --parallel-mode
   73 commands =
   74    stestr run {posargs}
   75    coverage combine
   76    coverage html -d cover
   77    coverage xml -o cover/coverage.xml
   78 
   79 [testenv:docs]
   80 basepython = python3
   81 deps =
   82   -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
   83   -r{toxinidir}/requirements.txt
   84   -r{toxinidir}/doc/requirements.txt
   85   git+git://github.com/openstack/swift.git
   86 commands =
   87   sphinx-build -a -W -E -b html doc/source doc/build/html
   88 
   89 [testenv:debug]
   90 basepython = python3
   91 commands = oslo_debug_helper {posargs}
   92 
   93 [testenv:bashate]
   94 basepython = python3
   95 # Run bashate check for all bash scripts
   96 # Ignores the following rules:
   97 #   E003: Indent not multiple of 4 (we prefer to use multiples of 2)
   98 #   E006: Line longer than 79 columns
   99 commands =
  100   bash -c "grep --recursive --binary-files=without-match \
  101     --files-with-match '^.!.*\(ba\)\?sh$' \
  102     --exclude-dir .tox \
  103     --exclude-dir .git \
  104     {toxinidir} | xargs bashate --error . --verbose --ignore=E003,E006"
  105 
  106 [flake8]
  107 # E123, E125 skipped as they are invalid PEP-8.
  108 # H301: one import per line
  109 # H306: imports not in alphabetical order (time, os)
  110 # H404: multi line docstring should start without a leading new line
  111 # H405: multi line docstring summary not separated with an empty line
  112 # W503 line break before binary operator
  113 # W504 line break after binary operator
  114 ignore = E123,E125,H301,H306,H404,H405,W503,W504
  115 show-source = True
  116 builtins = _
  117 exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
  118 
  119 [testenv:pep8]
  120 basepython = python3
  121 commands =
  122   {[testenv:pep8python]commands}
  123   {[testenv:bashate]commands}
  124 passenv =
  125   HOME
  126 
  127 [testenv:releasenotes]
  128 basepython = python3
  129 deps = {[testenv:docs]deps}
  130 commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html