We use our own python package index at my office, and we're trying to add a new one. When I try to specify both indices at the same time, I get prompted to log in, but if I use only one at a time I don't.
For example:
$ pip install --user --upgrade \
--extra-index-url https://<api token>:@packagecloud.io/2rs2ts/oldrepo/pypi/simple \
--extra-index-url https://<other api token>:@packagecloud.io/2rs2ts/newrepo/pypi/simple \
mypackage
Collecting mypackage
User for packagecloud.io:
But if I specify just one of either of those --extra-index-url
arguments then I download my package just fine.
I'm 99% certain that I am passing the arguments correctly, since it's specified with an append
action in the source. So I think the problem is that both of these index URLs are from packagecloud.io
... but I could be wrong. Either way, how can I use both of my repos?