From d2dad7fb87c049e7f86bd5ac7853c5fc4e70cb40 Mon Sep 17 00:00:00 2001 From: Kamil Páral Date: May 20 2019 13:54:15 +0000 Subject: tests: execute just on Python 3 by default Python 2 packages are no longer available on Fedora 30+, and therefore it's not even possible to run the test suite there. Change devguide to target Python 3 by default. --- diff --git a/docs/source/devguide.rst b/docs/source/devguide.rst index aff7a41..3c7f68a 100644 --- a/docs/source/devguide.rst +++ b/docs/source/devguide.rst @@ -142,8 +142,11 @@ To run the unit tests, execute this in the checkout directory:: tox -The testsuite is seamlessly executed in both Python 2.7 and 3.6 environments, -as defined in ``tox.ini``. +The testsuite is executed in a Python 3 environment, as defined in ``tox.ini``. +If you want to run the test suite against Python 2 as well, you can do it like +this:: + + tox -e py27 A nice HTML-based representation is available if you add ``--cov-report=html`` command line parameter. diff --git a/requirements.txt b/requirements.txt index 95888fa..8ef20c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ # libtaskotron ansible >= 2.3 python-fedora >= 0.8.0 -configparser >= 3.5.0b2 +configparser >= 3.5.0b2 # needed just for Python 2 Jinja2 >= 2.8 munch >= 2.0.2 progressbar2 >= 3.39 diff --git a/tox.ini b/tox.ini index 7b442be..5d538c5 100644 --- a/tox.ini +++ b/tox.ini @@ -17,7 +17,7 @@ python_files=test_* functest_* addopts=--functional testing/ --cov-report=term-missing --cov libtaskotron [tox] -envlist = py27,py3 +envlist = py3 [testenv] deps = -rrequirements.txt