-
-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest-runner in test_requires and setup_requires #179
Comments
…la#179 Based on instructions on pytest-runner: https://bitbucket.org/pytest-dev/pytest-runner
Wow, I see that there's already a fix waiting - nice! |
Hmmm... I'm not sure where they're getting that from. I just ran "pip install pyjwt" on a clean install and got the following:
Looks like it doesn't install pytest-runner as that post would suggest and doesn't appear to have any problems with |
…la#179 Based on instructions on pytest-runner: https://bitbucket.org/pytest-dev/pytest-runner
Made pytest-runner installation in setup.py conditional. Fixes #179
Sorry for not responding quickly, I was on vacation (those happen), but this needs to be reopened. To reproduce my problem do this:
I've worked around it by using PyJWT's wheel, but that forced me to separate my requirements files, because I need some of dependencies (like cryptography) in source form to be multi-platform. Also, take a look at this excerpt from pip's documentation: https://pip.readthedocs.org/en/stable/user_guide/#ensuring-repeatability |
This bug has bit me too. It's bothersome because even if you provide pytest-runner on an internal pip server, PyJWT ignores it and tries to install pytest-runner from the internet. Thanks @mbultrow for the suggestion about separate requirements files for pre-installing deps - that seems like a decent workaround. |
I'm having problems with distributing my app to an offline environment because of pytest-runner in setup_requires.
I doesn't seem like pytest is necessary for installation itself, so I don't want to be forced to package it with my application.
Can you just remove the reference, or am I missing something?
The text was updated successfully, but these errors were encountered: