From 5181a08d14483ffdb9e35bfec72286eaf66916eb Mon Sep 17 00:00:00 2001 From: Ondrej Nosek Date: Nov 01 2020 17:46:20 +0000 Subject: Fix Python 2 tests for epel7 There is no more Python 2 support in new python-bugzilla packages. For Python 2 tests, python-bugzilla version has to be limited. Signed-off-by: Ondrej Nosek --- diff --git a/requirements-py2.txt b/requirements-py2.txt new file mode 100644 index 0000000..2b09118 --- /dev/null +++ b/requirements-py2.txt @@ -0,0 +1,4 @@ +openidc-client +python-bugzilla < 3.0.0 +rpkg +six diff --git a/tox.ini b/tox.ini index a275899..35497a8 100644 --- a/tox.ini +++ b/tox.ini @@ -19,12 +19,18 @@ commands = setenv= PYCURL_SSL_LIBRARY=openssl +[testenv:py27] +deps = + -r{toxinidir}/requirements-py2.txt + -r{toxinidir}/tests-requirements.txt + [testenv:flake8] -sitepackages = False deps = flake8 commands = python -m flake8 fedpkg/ test/ [testenv:flake8python2] -sitepackages = False -deps = flake8 +deps = + -r{toxinidir}/requirements-py2.txt + -r{toxinidir}/tests-requirements.txt + flake8 commands = python -m flake8 fedpkg/ test/