-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Problems to run nox doctest session behind proxy #149
Comments
Could you please complete your error report? However, I guess that we simply need to change this code: with _clean_environment(session):
if numpy == "1":
session.run("pip", "install", "numpy<2")
elif numpy == "2":
session.run("pip", "install", "numpy>1,<3")
else:
assert_never(numpy)
session.run("python", "hydpy/tests/run_doctests.py", *session.posargs) to that one: if numpy == "1":
session.run("pip", "install", "numpy<2")
elif numpy == "2":
session.run("pip", "install", "numpy>1,<3")
else:
assert_never(numpy)
with _clean_environment(session):
session.run("python", "hydpy/tests/run_doctests.py", *session.posargs) Could you please verify and, if it works, open a pull request? |
Oh pardon. Somehow the second part got lost:
Removing the |
I added the |
In my case (behind a proxy) it is not needed (I run it without last week). But I think it also was no problem before, because localhost is added to my NO_PROXY environment variable. I think we can completely remove it. |
But removing |
I think setting up a proxy that ignores all local addresses is pretty standard. I would like to discuss this with Holger. He is more familiar this topic. |
…nment` context manager after updating all dependencies. Fixes #149
Fixed by commit 3283533. I think keeping |
I have problems running the nox doctest session behind a proxy. The command "session.run("pip", "install", "numpy<2")" needs the proxy to be set. If I remove "with _clean_environment(session):"
The text was updated successfully, but these errors were encountered: