#431 tests: execute just on Python 3 by default
Merged 3 years ago by kparal. Opened 3 years ago by kparal.

file modified
+5 -2
@@ -142,8 +142,11 @@ 

  

    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.

file modified
+1 -1
@@ -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

file modified
+1 -1
@@ -17,7 +17,7 @@ 

  addopts=--functional testing/ --cov-report=term-missing --cov libtaskotron

  

  [tox]

- envlist = py27,py3

+ envlist = py3

  

  [testenv]

  deps = -rrequirements.txt

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.

I was actually thinking about kicking out all the Python 2 bits (eg. rpm deps in devguide), but that can surely be done at a later point.

LGTM otherwise, rebase and feel free to merge.

Commit f2cc11f fixes this pull-request

Pull-Request has been merged by kparal

3 years ago