Skip to content

Changing python interpreters in tox.ini

Martin Hoyer requested to merge mhoyer/python-stqe:master into master

tox.ini:

  • removed py37,38
  • added py36,310,311
  • formatting changes

.gitlab-ci.yml:

  • adding python3-devel and gcc for installation before running tox(only in "regression" job)

Since I promised, I've been trying to find out suitable way to get back testing on python3.6 and also 3.10+. In the end I found the only sane way to do this is to install gcc, as some of the libsan deps are simply un-installable otherwise 😄

3.6 - virtualenv on fedora:latest is not capable of upgrading pip to ensure compatibility with manylinux2014
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', 'download', '--progress-bar', 'off', '--disable-pip-version-check', '--only-binary=:all:', '--no-deps', '--python-version', '3.6', '-d', '/root/.local/share/virtualenv/wheel/house', 'pip==20.3']' returned non-zero exit status 1.
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib64/python3.11/collections/__init__.py)
and I haven't found a workaround.

3.10+ - here the problem is netifaces module. While it is bundled-in, when doing virtualenv, it is being downloaded and the project is no longer being maintained, i.e. not 3.10+ wheels not being built. Here the workaround is to start using netifaces2 in libsan, as it should be a drop-in replacement, but that's for another discussion. It works well with gcc installed

Merge request reports