074a84df78
Using "python setup.py check -r -s" method of checking the package has been deprecated with the new recommendation to build the sdist and wheel, then running "twine check" against the output. Luckily, there is already a job that covers this that only runs when the README, setup.py, or setup.cfg files change, making running this in the pep8 job redundant. This covered by the test-release-openstack-python3 that is defined in the publish-to-pypi-python3 template. More details can be found in this mailing list post: http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html Change-Id: I359d557dbf3438d219bed0303b7a95ad93192f46 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
73 lines
2.2 KiB
INI
73 lines
2.2 KiB
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = py3,py27,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
# Install also sitemap scraping tool, not installed by default
|
|
# therefore not in requirements file
|
|
deps = scrapy>=1.0.0
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
commands = stestr run --slowest {posargs}
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
commands =
|
|
flake8
|
|
# Run doc8 to check .rst and .txt files.
|
|
# HACKING.rst is the only file that is not referenced from
|
|
# doc/source, so add it explicitly.
|
|
doc8 -e txt -e rst doc/source/ HACKING.rst
|
|
# Run bashate during pep8 runs to ensure violations are caught by
|
|
# the check and gate queues.
|
|
bashate bin/doc-tools-check-languages
|
|
|
|
[testenv:releasenotes]
|
|
basepython = python3
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:sitemap]
|
|
# commands = functional test command goes here
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:bindep]
|
|
# Do not install any requirements. We want this to be fast and work even if
|
|
# system dependencies are missing, since it's used to tell you what system
|
|
# dependencies are missing! This also means that bindep must be installed
|
|
# separately, outside of the requirements files, and develop mode disabled
|
|
# explicitly to avoid unnecessarily installing the checked-out repo too (this
|
|
# further relies on "tox.skipsdist = True" above).
|
|
basepython = python3
|
|
deps = bindep
|
|
commands = bindep test
|
|
usedevelop = False
|
|
|
|
[flake8]
|
|
show-source = True
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build,doc/source/conf.py
|
|
# 28 is currently the most complex thing we have
|
|
max-complexity=29
|
|
ignore = H101
|
|
|
|
[testenv:lower-constraints]
|
|
basepython = python3
|
|
# Install also sitemap scraping tool, not installed by default
|
|
# therefore not in requirements file
|
|
deps =
|
|
scrapy>=1.0.0
|
|
-c{toxinidir}/lower-constraints.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|