Trax-air / swagger-tester

Automatically test your swagger API
MIT License
105 stars 36 forks source link

OS X -- Testing under Python 3.6 -- issue with setup_requires #43

Closed ssteinerx closed 7 years ago

ssteinerx commented 7 years ago

Just adding py36 to envlist in tox.ini should be enough to run the tests under Python 3.6.

But, apparently due to the way that setup_requires handles installation of pytest-runner, this leads to one of these beauties:

Processing ./.tox/dist/swagger_tester-0.2.7.zip
    Complete output from command python setup.py egg_info:
    Download error on https://pypi.python.org/simple/pytest-runner/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
    Couldn't find index page for 'pytest-runner' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
    No local packages or working download links found for pytest-runner

pip will install the same package just fine.

Issue is mentioned here:

https://github.com/pypa/pip/issues/4156

And some tips here about overcoming the issues here:

https://pip.pypa.io/en/stable/reference/pip_install/#controlling-setup-requires

And some info about 3.6 bundling its own openssl and, so not using the (oddball) OS trust bundle etc. is here:

https://bugs.python.org/issue28150

Not sure where to go from here, but swagger-tester can't tox itself under 3.6 on OS X.

flavianh commented 7 years ago

I'm sorry I can't reproduce it.

Here's the tox file I used:

[tox]
envlist = py36

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/swagger_tester
commands = python setup.py test

I installed tox with pip install -U tox

and the tox command runs fine

My macosX version is 10.12.4