#420 Fix Python 2 tests for epel7
Merged 3 years ago by onosek. Opened 3 years ago by onosek.
onosek/fedpkg fix_python2_tests  into  master

@@ -0,0 +1,4 @@ 

+ openidc-client

+ python-bugzilla < 3.0.0

+ rpkg

+ six

file modified
+9 -3
@@ -19,12 +19,18 @@ 

  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/

There is no more Python 2 support in new python-bugzilla packages.
For Python 2 tests, python-bugzilla version has to be limited.

Additionally sitepackages variable should be inherited from testenv environment and therefore doesn't have to be specified again.

Signed-off-by: Ondrej Nosek onosek@redhat.com

rebased onto 5181a08

3 years ago

pretty please pagure-ci rebuild

3 years ago

Pull-Request has been merged by onosek

3 years ago