summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorGhanshyam Mann <gmann@ghanshyammann.com>2019-10-30 07:33:03 +0000
committerzhurong <aaronzhu1121@gmail.com>2019-11-26 11:54:50 +0000
commitc6395782172007cc868b1cfd0f11c8baa3567eb4 (patch)
tree79c99a1bf73565dfbdbdd27a2938a5b172acc1c8 /tox.ini
parent9ed26c570a2603553bdf8304fe130a76ae66ae89 (diff)
downloadceilometer-c6395782172007cc868b1cfd0f11c8baa3567eb4.tar.gz
[ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle. ceilometer is ready with python 3 and ok to drop the python 2.7 support. Complete discussion & schedule can be found in - http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html - https://etherpad.openstack.org/p/drop-python2-support Ussuri Communtiy-wide goal: https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Depends-On: https://review.opendev.org/#/c/693631/ Change-Id: Ie8523712ea2ebe828fe01a649b6add90e813608b
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini11
1 files changed, 2 insertions, 9 deletions
diff --git a/tox.ini b/tox.ini
index 2090c272..572d0635 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,10 @@
[tox]
minversion = 2.0
skipsdist = True
-envlist = py{27,36,37},pep8
+envlist = py{36,37},pep8
[testenv]
+basepython = python3
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
@@ -18,7 +19,6 @@ commands =
whitelist_externals = bash
[testenv:cover]
-basepython = python3
setenv =
PYTHON=coverage run --source ceilometer --parallel-mode
commands =
@@ -28,7 +28,6 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:pep8]
-basepython = python3
deps = hacking<0.13,>=0.12
doc8
commands =
@@ -38,22 +37,18 @@ commands =
bash -c "find ceilometer -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
[testenv:releasenotes]
-basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:genconfig]
-basepython = python3
commands = oslo-config-generator --config-file=etc/ceilometer/ceilometer-config-generator.conf
[testenv:docs]
-basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -b html doc/source doc/build/html
setenv = PYTHONHASHSEED=0
[testenv:pdf-docs]
-basepython = python3
deps = {[testenv:docs]deps}
whitelist_externals =
make
@@ -62,7 +57,6 @@ commands =
make -C doc/build/pdf
[testenv:venv]
-basepython = python3
commands = {posargs}
setenv = PYTHONHASHSEED=0
@@ -81,7 +75,6 @@ import_exceptions =
local-check-factory = ceilometer.hacking.checks.factory
[testenv:lower-constraints]
-basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt