di / pytest-reqs

py.test plugin for checking requirements files
https://pypi.org/p/pytest-reqs
MIT License
25 stars 6 forks source link

Incompatibility with pip 10 #17

Closed jayvdb closed 5 years ago

jayvdb commented 6 years ago

The plugin and CI, including tox, assumes the most recent of pip should be compatible , with the plugin only warning if there is a problem.

pip 10 is a known breakage.

$ tox -e $TOX_ENV
/home/travis/virtualenv/python3.4.6/lib/python3.4/site-packages/tox/config.py:527: UserWarning: Conflicting basepython for environment 'py-xdist'; resolve conflict or configure ignore_basepython_conflict
  testenv_config.envname, str(value), default
GLOB sdist-make: /home/travis/build/jayvdb/pytest-reqs/setup.py
py34 create: /home/travis/build/jayvdb/pytest-reqs/.tox/py34
py34 installdeps: -rrequirements/test.txt
py34 inst: /home/travis/build/jayvdb/pytest-reqs/.tox/dist/pytest-reqs-0.1.0.zip
py34 installed: flake8==3.0.4,flake8-import-order==0.10,flake8-print==2.0.2,mccabe==0.5.2,packaging==17.1,pep8-naming==0.4.1,pretend==1.0.8,py==1.4.31,pycodestyle==2.0.0,pyflakes==1.2.3,pyparsing==2.2.0,pytest==3.0.3,pytest-reqs==0.1.0,six==1.11.0
py34 runtests: PYTHONHASHSEED='2721658970'
py34 runtests: commands[0] | py.test
/home/travis/build/jayvdb/pytest-reqs/.tox/py34/lib/python3.4/site-packages/pytest_reqs.py:21: UserWarning: Version pip==10.0.1 is possibly incompatible, highest known compatible version is 9.0.2.
  pip_version, max_version
Traceback (most recent call last):
...
  File "/home/travis/build/jayvdb/pytest-reqs/.tox/py34/lib/python3.4/site-packages/pytest_reqs.py", line 25, in <module>
    from pip import get_installed_distributions  # noqa
ImportError: cannot import name 'get_installed_distributions'

https://travis-ci.org/jayvdb/pytest-reqs/jobs/402000396