diff options
author | Stephen Finucane <sfinucan@redhat.com> | 2019-10-14 12:14:35 +0100 |
---|---|---|
committer | Stephen Finucane <sfinucan@redhat.com> | 2019-11-18 10:31:06 +0000 |
commit | 14872caae1a51c7015dd7c509d0173df2e943ed4 (patch) | |
tree | 765116db11c7fa75c6363881867dec2da91eeefd /tox.ini | |
parent | 85a1dd338bf5c0317b1e969927471118f040abe0 (diff) | |
download | nova-14872caae1a51c7015dd7c509d0173df2e943ed4.tar.gz |
Stop testing Python 2
It's Ussuri. We can *finally* stop testing Python 2 [1]. Time to party.
We don't attempt any cleanup but simply stop testing with Python 2,
indicate that we only support Python 3 via 'setup.cfg' and remove any
Python 2 only dependencies. Our 'tox.ini' is modified such that
'functional' now runs with 'python3', whatever that may point to, though
the gate will only use a versioned variant (currently
'functional-py36').
This should free up a significant amount of resources from the gate and
let us start using Python 3 idioms in our code. Win-win.
[1] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html#python2-deprecation-timeline
Change-Id: Ie1a0cbd82a617dbcc15729647218ac3e9cd0e5a9
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 25 |
1 files changed, 7 insertions, 18 deletions
@@ -1,6 +1,6 @@ [tox] minversion = 3.1.1 -envlist = py27,py37,functional,pep8 +envlist = py37,functional,pep8 # Automatic envs (pyXX) will only use the python version appropriate to that # env and ignore basepython inherited from [testenv] if we set # ignore_basepython_conflict. @@ -36,10 +36,6 @@ passenv = commands = stestr run {posargs} env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test_profiler' - -[testenv:py27] -commands = - {[testenv]commands} stestr slowest [testenv:pep8] @@ -61,13 +57,8 @@ commands = bash tools/flake8wrap.sh -HEAD [testenv:functional] -# TODO(melwitt): This can be removed when functional tests are gating with -# python 3.x -# NOTE(cdent): For a while, we shared functional virtualenvs with the unit -# tests, to save some time. However, this conflicts with tox siblings in zuul, -# and we need siblings to make testing against master of other projects work. -basepython = python2.7 -setenv = {[testenv]setenv} +description = + Run functional tests using python3. # As nova functional tests import the PlacementFixture from the placement # repository these tests are, by default, set up to run with latest master from # the placement repo. In the gate, Zuul will clone the latest master from @@ -92,18 +83,16 @@ commands = stestr --test-path=./nova/tests/functional run {posargs} stestr slowest -# TODO(gcb) Merge this into [testenv:functional] when functional tests are gating -# with python 3 [testenv:functional-py36] -basepython = python3.6 -setenv = {[testenv]setenv} +description = + Run functional tests using python3.6. deps = {[testenv:functional]deps} commands = {[testenv:functional]commands} [testenv:functional-py37] -basepython = python3.7 -setenv = {[testenv]setenv} +description = + Run functional tests using python3.7. deps = {[testenv:functional]deps} commands = {[testenv:functional]commands} |