From 502082f6f21fb7592a798087a4c49f90d886ad14 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Wed, 30 Aug 2017 10:35:30 -0400 Subject: tox: make xenial environment run with python3.6 The pinned versions of python packages in xenial do not work with python3.6. Currently, the failure can be seen with: $ tox -e xenial tests/unittests/test_merging.py which ends up failing with in /usr/lib/python3.6/inspect.py with: ValueError: Function has keyword-only parameters or annotations, use getfullargspec() API which can support them Instead of setting 'basepython' to 3.5 for the 'xenial', we just update the one package that does not run correctly with python3.6. That allows the developer to have either python3.5 or python3.6 installed and have tox work as expected. --- tox.ini | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index a17156ce..ec96e859 100644 --- a/tox.ini +++ b/tox.ini @@ -66,8 +66,10 @@ deps = pyserial==3.0.1 configobj==5.0.6 requests==2.9.1 - # jsonpatch ubuntu is 1.10, not 1.19 (#839779) - jsonpatch==1.10 + # jsonpatch in xenial is 1.10, not 1.19 (#839779). The oldest version + # to work with python3.6 is 1.16 as found in Artful. To keep default + # invocation of 'tox' happy, accept the difference in version here. + jsonpatch==1.16 six==1.10.0 # test-requirements httpretty==0.8.6 -- cgit v1.2.3