
This repo is now testing only with Python 3, so let's make a few cleanups: - Add requires on python >= 3.6 to setup.cfg so that pypi and pip know about the requirement - Remove obsolete sections from setup.cfg - Update requirements, no need for python_version anymore - Use newer openstackdocstheme and Sphinx versions - Remove install_command from tox.ini, the default is fine - Remove babel.cfg, it's not needed - move basepython into testenv Change-Id: I4c0e3b9b12c6b46c3b6b6a2f8f96e6996421dd8d
30 lines
647 B
INI
30 lines
647 B
INI
[tox]
|
|
minversion = 3.1.1
|
|
skipsdist = True
|
|
envlist = pep8,py36,py37
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
basepython = python3
|
|
deps =
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands=
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = ./run-flake8
|
|
|
|
[flake8]
|
|
ignore = E125,H803
|
|
exclude = .venv,.tox,dist,*.egg,build,releasenotes
|
|
show-source = true
|
|
|
|
[testenv:releasenotes]
|
|
commands = bash -c tools/releasenotes_tox.sh
|