-
-
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
pipenv doesn't respect pip.conf #856
Comments
These entries need to go into your Pipfile. |
@kennethreitz I don't think I've made my case really clear so let me try to convince you with some use cases I've run into while getting started with pipenv. Creating a new pipenv project/environment
Install a package from an additional indexWhen installing a package that pypi doesn't know, it won't work right away (it does work with pip or pip-tools as they use
If
Use a requirement file generated by
|
@kennethreitz
So, you mean every time I use pipenv need to write a pip.conf[Pipfile] for it ? It is unacceptable for me. |
These entries may contain credentials which certainly won't go into the Pipfile which is supposed to go into the project repo. |
For me, it is. I really need a global mirror settings. pip.conf is follow:
respect pip.conf means pip user can switch to pipenv seamlessly. |
I like the idea of being able to put those configs in |
@erinxocon this is one of the issues I identified. I've been pretty busy with work but hope to push first PR before next week. |
Hi, @kennethreitz thanks for awesome project. I have question, will you reconsider Your position on that issue after arguments brought into that discussion? I have another very similar use case with pip.conf and having credentials in seperate pip.conf file is valid for having predictable build on CI/CD pipeline and local dev machine. @hrbonz for now I found solution to use just |
I think that combining pypa/pip#3728 and custom indexes would be the solution for private indexes without exposing credentials. Also commented in #1406. |
Here's one workaround if all you need are the index name and URL (e.g. using
|
gentleman, seriously. I have a simple use case that directly is affected by this issue. I have a project that uses pipenv. I write this project both at home and at work. As the Pipfile is commited and pushed to git, I cannot keep changing it as I hop from home to work. I would like to have an external configuration that signals to pipenv that I have to use another index. putting this config inside the Pipfile does not work. |
Any updates on this? |
@hrbonz @ninrod @GhostofGoes fixed in #1769 and #1809 -- environment variables in Pipfiles are now expanded at runtime Thanks all for your patience, our highest priority has been the core functionality of the codebase, so features like this one tend to slip through the cracks. Always happy to discuss contributions for items we aren't currently prioritizing however! |
The only alternative I can think until this gets fixed is to override the PyPi URL so all traffic is forwarded to the internal mirror of PyPi (for example, Artifactory or whatnot). Since PyPi is restricted internally anyway. |
I came here to file exactly this bug. I've had to ditch pipenv because it doesn't respect the pip configuration, and as has been discussed here in this issue, the configuration of PyPi mirrors or alternate indexes is generally not something that can be put into the PIpfile. |
Same here. I like pipenv a lot but that having it not respecting pip.conf just does not fit into my company's working environment |
One way of circumventing this is by using an environment variable PIPENV_PYPI_MIRROR to point to your private mirror that caches pypi. Then the standard PyPi specified in your Pipfile can point to the official mirror. That said, it still better if pipenv would respect pipconf! |
Kindly reopen the issue, or please offer other suggestions for making sure this feature gets more attention. |
Can we reopen this issue? pipenv is a really convenient tool, but this particular issue where pipenv does not respect pip.conf is a noticeable pain point, to the point that I just resort to using venv. |
I'd prefer if a new issue were opened about this @genefever . Too much history and age to this ticket. Mind creating one and link back to this? |
The initial description is still very clear to me. |
I'm using devpi as a private pypi repository where I can proxy cache pypi packages and add my own in-house packages.
My
pip.conf
looks like the following:Couldn't find another issue mentioning this problem.
The text was updated successfully, but these errors were encountered: