-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Is it possible to use "proxy" setting available in pip #987
Comments
I think i would be a long time for pipenv to support it beause pip doesn't support proxy setting.
|
@ivechan pip does support installing from proxy if you pass it |
@erinxocon I feel like @kennethreitz wanted to keep as few things as possible in the Pipfile and kept pushing people to set up their pip.conf or pip.ini for things like this. However, that would mean we will have to figure out how to respect those settings for pip-tools as well, and I am not sure how that would work. |
@techalchemy That's what I was thinking. We could use config files in the root of the project directory, but pip-tools doesn't currently respect that in our code. |
@erinxocon @techalchemy imo we need to respect pip.conf and the fact we aren't is a problem because we're rebuilding a lot of functionality pip should already handle (better) for us. We don't need the file to be in the directory, it's noted by a env variable or the default path established by pip. We just need to add a patch for pip-tools to respect it if it's not. Also we definitely do not want a proxy entry in the Pipfile, that's user specific and isn't necessarily required. Anything that's system/instance specific should be left on the origin machine. |
not being supported, currently |
@kennethreitz would you accept a pull request to support this? imho
That way you can set it and forget it. Unlike pip where you need to use an alias to always add the proxy. |
any update on this? |
I would also be interested to hear more about this... |
Any updates on this issue? |
I might as well bumb this again. Any updates? Right now I can put my proxy in ~/pip/pip.conf or ~/pip/pip.ini (linux or windows). But it would be much better if I just could add my proxy in the pipfile. |
Any updates? 🤔 |
Is there any update? What is the current workaround? |
Any updates? |
I will say something new: any updates ? |
Maybe re-open this? |
Bumping. I'm stuck with 2 proxy between me and my Artifactory pypi repo. Pip does work with |
If you have a Pipfile.lock ready, you can try to use micropipenv:
If the lock file is not present, micropipenv will not resolve it though. |
@jankap I have re-opened this issue based on the amount of interest I am seeing come in around it. Keep in mind I am newer to working on the project, but I've also racked up some serious time on it in the last few months. If anyone wants to take on looking into what it would take to support this in pipenv, I can be of some support. However I am focused in some other more pressing issues and won't be dedicating time to solving this one in the near term. |
I believe this is resolved now with my work on index restricted packages. Correct me if I am wrong, but the proxy feature was specifically about using an alternate address (a proxy) on the internal network to bypass a firewall and connect to somewhere outside the network. Since index restricted packages requires that all packages use a specific index, wouldn't it work to just specify the proxy address for that source in the Pipfile? So for example:
|
I really like the ease of use of pipenv. But I'm still trying to find my way.
One thing I can't find in pip where I can set the proxy option:
--proxy Specify a proxy in the form [user:passwd@]proxy.server:port
As I often need to work behind a firewall at my workplace (a school).
Describe you environment
Expected result
something like:
pipenv --proxy myproxy
Thanks.
The text was updated successfully, but these errors were encountered: