diff options
author | pengyuesheng <pengyuesheng@gohighsec.com> | 2019-12-25 17:37:09 +0800 |
---|---|---|
committer | Andreas Jaeger <aj@suse.com> | 2020-02-03 14:45:41 +0100 |
commit | 939253044a957793b82c2c091a766e6656d573d0 (patch) | |
tree | caa5eb93bf40f722a8f2045f072460293cb1c879 /tox.ini | |
parent | 9d1c08e1f29007dea121a70875b603fb5644d265 (diff) | |
download | pycadf-939253044a957793b82c2c091a766e6656d573d0.tar.gz |
Drop python 2.7 support and testing
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
Include small cleanups:
* remove install_command from tox.ini, this is the default
* Use sphinx-build as modern way to run sphinx, remove setup.cfg
settings for build-sphinx
* Use sphinxcontrib-apidoc for docs with newer sphinx
* Remove obsolete doc/source/conf.py broken
* Add python-requires to setup.cfg to make Python 3.6 requirement
explicit
* Remove obsolete pbr setup-hooks
Co-Authored-By: Andreas Jaeger <aj@suse.com>
Change-Id: Iec8c47b82022b616b8361651bf23f853b0ce5624
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -1,9 +1,10 @@ [tox] -minversion = 2.0 -envlist = py27,py37,pep8 +minversion = 3.1.1 +envlist = py37,pep8 +ignore_basepython_conflict = True [testenv] -install_command = pip install {opts} {packages} +basepython = python3 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/test-requirements.txt @@ -11,15 +12,16 @@ deps = commands = stestr run --slowest {posargs} [testenv:pep8] -basepython = python3 commands = flake8 [testenv:docs] -basepython = python3 -commands = python setup.py build_sphinx +whitelist_externals = + rm +commands = + rm -rf doc/build/html doc/build/doctrees + sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html [testenv:cover] -basepython = python3 setenv = PYTHON=coverage run --source pycadf --parallel-mode commands = @@ -29,11 +31,9 @@ commands = coverage xml -o cover/coverage.xml [testenv:venv] -basepython = python3 commands = {posargs} [testenv:debug] -basepython = python3 commands = oslo_debug_helper {posargs} [flake8] @@ -58,7 +58,6 @@ ignore = H405,D100,D101,D102,D103,D104,D105,D200,D202,D203,D204,D205,D208,D400,D exclude = .tox,dist,doc,*.egg,build [testenv:lower-constraints] -basepython = python3 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt |