
On Tue, Feb 26, 2019 at 5:29 PM Miguel Duarte de Mora Barroso <mdbarroso@redhat.com> wrote:
Hi,
I'm seeing the following error on the OST network suite:
17:05:56 Collecting pylint==1.6.4 17:05:57 Downloading https://files.pythonhosted.org/packages/92/f3/41deb50322d579517f779c3421b92f... (569kB) 17:05:57 Collecting isort>=4.2.5 (from pylint==1.6.4) 17:05:57 Downloading https://files.pythonhosted.org/packages/35/c5/025aaa76f0f337e3d91197973c42b4... (62kB) 17:05:58 Complete output from command python setup.py egg_info: 17:05:58 /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' 17:05:58 warnings.warn(msg) 17:05:58 error in isort setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected version spec in futures; python_version < "3.2" at ; python_version < "3.2"
This happens on - at least - [0].
From my understanding, isort released a couple of new versions - according to [1] - and looks like that pylint version is too old for whatever new stuff isort now has.
On other project I'm running pylint 1.8.4, which runs fine against that isort version:
tox -e pylint pylint recreate: /home/mduarted/ovirt/ovirt-provider-ovn/.tox/pylint pylint installdeps: pytest==3.5.1, pylint==1.8.4, -r/home/mduarted/ovirt/ovirt-provider-ovn/requirements.txt pylint installed: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.,astroid==1.6.5,attrs==18.2.0,backports.functools-lru-cache==1.5,certifi==2018.11.29,chardet==3.0.4,configparser==3.7.3,enum34==1.1.6,extras==1.0.0,fixtures==3.0.0,funcsigs==1.0.2,futures==3.2.0,idna==2.8,isort==4.3.9,lazy-object-proxy==1.3.1,linecache2==1.0.0,mccabe==0.6.1,more-itertools==5.0.0,netaddr==0.7.19,ovs==2.10.0,ovsdbapp==0.15.0,pbr==5.1.2,pluggy==0.6.0,py==1.8.0,pylint==1.8.4,pytest==3.5.1,python-mimeparse==1.6.0,requests==2.21.0,singledispatch==3.4.0.3,six==1.12.0,sortedcontainers==2.1.0,testtools==2.3.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.24.1,wrapt==1.11.1 pylint runtests: PYTHONHASHSEED='2585806524' pylint runtests: commands[0] | pylint --errors-only provider driver Using config file /home/mduarted/ovirt/ovirt-provider-ovn/.pylintrc make lint3____________________________________ summary _____________________________________ pylint: commands succeeded congratulations :)
Pyling 2.2.2 also runs fine.
Is there a reason for us to be using such an outdated version ?
The pylint version has nothing to do with; apparently, this new isort version requires 'setuptools' to be installed through pip. There are opened issues upstream on isort tracking it already: - https://github.com/timothycrosley/isort/issues/847 - https://github.com/timothycrosley/isort/issues/849
[0] - https://jenkins.ovirt.org/job/ovirt-system-tests_manual/4155/console [1] - https://pypi.org/project/isort/#history