From ca0786778c7efb12942790cc53e15cd05b22aae7 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Fri, 9 Dec 2016 14:22:28 -0600 Subject: [PATCH] Switch default py3x to py35 Per our conversation in the Cinder weekly meeting [1] we will now switch to just running local tests against python 3.5 as that is the more recent and common 3.x version available on new distros. Other versions can still be run explicitly, but this changes the default tox run to only use 3.5. [1] http://eavesdrop.openstack.org/meetings/cinder/2016/cinder.2016-11-30-16.00.log.html#l-54 Change-Id: If2226cb229f016e36c4dfab6224d5ae353b926bb --- doc/source/devref/development.environment.rst | 2 +- doc/source/devref/testing.rst | 16 ++++++++-------- tox.ini | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/source/devref/development.environment.rst b/doc/source/devref/development.environment.rst index 71553434bde..fe000c3a89d 100644 --- a/doc/source/devref/development.environment.rst +++ b/doc/source/devref/development.environment.rst @@ -96,7 +96,7 @@ Running unit tests ------------------ Run the unit tests by doing:: - tox -e py34 + tox -e py35 tox -e py27 See :doc:`testing` for more details. diff --git a/doc/source/devref/testing.rst b/doc/source/devref/testing.rst index f8f6a6b3536..957eb3d8612 100644 --- a/doc/source/devref/testing.rst +++ b/doc/source/devref/testing.rst @@ -86,7 +86,7 @@ More information about tempest can be found in the `Tempest Documentation Running a subset of tests using tox ----------------------------------- One common activity is to just run a single test, you can do this with tox -simply by specifying to just run py27 or py34 tests against a single test:: +simply by specifying to just run py27 or py35 tests against a single test:: tox -epy27 -- -n cinder.tests.unit.test_volume.AvailabilityZoneTestCase.test_list_availability_zones_cached @@ -116,9 +116,9 @@ can get around this by manually setting or updating the following line in Note that you may use any location (not just ``/tmp``!) as long as it is not a shared folder. -**Running py34 tests** +**Running py35 tests** -You will need to install python3-dev in order to get py34 tests to run. If you +You will need to install python3-dev in order to get py35 tests to run. If you do not have this, you will get the following:: netifaces.c:1:20: fatal error: Python.h: No such file or directory @@ -131,13 +131,13 @@ do not have this, you will get the following:: ERROR: could not install deps [-r/opt/stack/cinder/test-requirements.txt, oslo.versionedobjects[fixtures]]; v = InvocationError('/opt/stack/cinder/ - .tox/py34/bin/pip install -r/opt/stack/cinder/test-requirements.txt - oslo.versionedobjects[fixtures] (see /opt/stack/cinder/.tox/py34/log/py34-1.log)', 1) + .tox/py35/bin/pip install -r/opt/stack/cinder/test-requirements.txt + oslo.versionedobjects[fixtures] (see /opt/stack/cinder/.tox/py35/log/py35-1.log)', 1) _______________________________________________________________ summary _______________________________________________________________ - ERROR: py34: could not install deps [-r/opt/stack/cinder/test-requirements.txt, + ERROR: py35: could not install deps [-r/opt/stack/cinder/test-requirements.txt, oslo.versionedobjects[fixtures]]; v = InvocationError('/opt/stack/cinder/ - .tox/py34/bin/pip install -r/opt/stack/cinder/test-requirements.txt - oslo.versionedobjects[fixtures] (see /opt/stack/cinder/.tox/py34/log/py34-1.log)', 1) + .tox/py35/bin/pip install -r/opt/stack/cinder/test-requirements.txt + oslo.versionedobjects[fixtures] (see /opt/stack/cinder/.tox/py35/log/py35-1.log)', 1) To Fix: diff --git a/tox.ini b/tox.ini index b79c34eb761..32e5214a79a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] minversion = 2.0 skipsdist = True -envlist = py34,py27,compliance,pep8 +envlist = py35,py27,compliance,pep8 [testenv] # Note the hash seed is set to 0 until cinder can be tested with a