"Fossies" - the Fresh Open Source Software Archive

Member "freezer-10.0.0/tox.ini" (14 Apr 2021, 2506 Bytes) of package /linux/misc/openstack/freezer-10.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": 9.0.0_vs_10.0.0.

    1 [tox]
    2 envlist = py36,py38,pep8,pylint,docs
    3 skipsdist = True
    4 
    5 [testenv]
    6 basepython = python3
    7 usedevelop = True
    8 deps =
    9     -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
   10     -r{toxinidir}/test-requirements.txt
   11 
   12 passenv =
   13     FREEZER_TEST_SSH_KEY
   14     FREEZER_TEST_SSH_USERNAME
   15     FREEZER_TEST_SSH_HOST
   16     FREEZER_TEST_CONTAINER
   17     FREEZER_TEST_OS_PROJECT_NAME
   18     FREEZER_TEST_OS_USERNAME
   19     FREEZER_TEST_OS_REGION_NAME
   20     FREEZER_TEST_OS_PASSWORD
   21     FREEZER_TEST_OS_AUTH_URL
   22     FREEZER_TEST_NO_LVM
   23     http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
   24 
   25 install_command = pip install {opts} {packages}
   26 setenv =
   27     VIRTUAL_ENV={envdir}
   28     OS_TEST_PATH = ./freezer/tests/unit
   29     PYTHON=coverage run --source freezer --parallel-mode
   30 commands =
   31     find . -type f -name "*.pyc" -delete
   32     stestr run {posargs}
   33     coverage combine
   34     coverage html -d cover
   35     coverage xml -o cover/coverage.xml
   36     coverage report -m
   37     rm -f .coverage
   38     rm -rf .testrepository
   39 
   40 whitelist_externals =
   41     find
   42     coverage
   43     rm
   44 
   45 python_files = test_*.py
   46 norecursedirs  = .tox .venv
   47 
   48 [testenv:venv]
   49 commands = {posargs}
   50 
   51 [testenv:py38]
   52 basepython = python3.8
   53 
   54 [testenv:py36]
   55 basepython = python3.6
   56 
   57 [testenv:docs]
   58 deps =
   59   -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
   60   -r{toxinidir}/doc/requirements.txt
   61 whitelist_externals = rm
   62 commands =
   63   rm -rf doc/build/
   64   sphinx-build --keep-going -b html doc/source doc/build/html
   65 
   66 
   67 [testenv:pep8]
   68 commands =
   69     flake8 freezer
   70     doc8 {posargs}
   71 
   72 [testenv:pylint]
   73 commands = pylint --rcfile .pylintrc freezer
   74 
   75 [flake8]
   76 # W504 line break after binary operator
   77 # W605 invalid escape sequence
   78 
   79 ignore = H405,H404,H403,H401,W504,W605
   80 show-source = True
   81 enable-extensions = H203,H106
   82 exclude = .venv,.tox,dist,doc,test,*egg,releasenotes
   83 
   84 [doc8]
   85 ignore = D000,D001
   86 ignore-path = .venv,.git,.tox,.tmp,*freezer/locale*,*lib/python*,freezer.egg*,doc/build,releasenotes/*,doc/source/contributor/api
   87 
   88 [testenv:releasenotes]:
   89 deps =
   90   -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
   91   -r{toxinidir}/doc/requirements.txt
   92 whitelist_externals = rm
   93 commands =
   94   rm -rf releasenotes/build
   95   sphinx-build -a -E -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
   96 
   97 [testenv:lower-constraints]
   98 deps =
   99   -c{toxinidir}/lower-constraints.txt
  100   -r{toxinidir}/test-requirements.txt
  101   -r{toxinidir}/requirements.txt