-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
index
should be able to accept multiple URLs
#13250
Comments
You probably just want |
|
Yeah, for this to be added the path forward would be for However as XML-RPC search API is not based on a Python packaging standard it is unlikely to ever get any new features, and is far more likely to be deprecated and removed from pip at some point. |
That doesn't make any sense. I'll just write a PR. |
As @notatallshaw noted, we almost certainly won't accept new features for If you want to spend time writing a PR, that's fine, but please be aware that it will likely be wasted effort. You would probably be better writing your own "index search" utility, with whatever features you want, instead of trying to get the functionality included in pip. The pip code is open source, so feel free to copy the implementation of |
Ah, I forgot that detail as it's been many years since I used it. If pip search was still well supported it would still make sense for me to model
Like @pfmoore I would be very skeptical of accepting a PR to modify pip search in any way other than deprecating it. Especially given the |
I see. Thank you very much for your honesty. I've a question, since both of you may very well know the answer, perhaps. And that is going to have an influence on what I'd like to cook. I did not elaborate why it doesn't make sense that The reason why I'm asking, is because if we assume |
This is common, but unfortunately has security implications because, among other issues, pip does not guarantee the order in which the indexes are read.
I agree with your original statement , what I meant in my suggestion is that if pip search were well supported (it's not), it makes sense to syntactically mirror
My concern is that this API is not well supported and making any change to how it's processed may end up unintentionally breaking other people's workflows. It’s another reason why any PR is going to be difficult to justify. |
What's the problem this feature will solve?
I will be able to search all Python repositories available inside organization Intranet. We have a lot.
Describe the solution you'd like
Currently, the
index
variable inpip.conf
only accepts one URL. I would like it to accept multiple URLs, and that the underlying XML-RPC search function considers all specifiedindex
URLs for the purpose of searching for packages.Alternative Solutions
I could ask our Artifactory admins to make a virtual repository, but those are not compliant as per organization policies. Everyone abused virtual repositories, it was difficult to untagle who depends on what, and now they're simply not allowed. This is a losing fight to pick.
Additional context
I understand that XML-RPC search has been historically abused against pypi.org by unresponsive actors. This feature request does not concern pypi.org and is not going to be used for searching for things residing at pypi.org, but instead for local repositories inside an organization.
Code of Conduct
The text was updated successfully, but these errors were encountered: