Open
Description
Description
I have a need to simultaneously access two PIP indexes from the same hostname (pkgs.dev.azure.com) but using different credentials.
When configuring it like this:
PIP_INDEX_URL=https://build:[email protected]/feed1
PIP_EXTRA_INDEX_URL=https://build:[email protected]/feed2
pip seems to try credentials for feed2 for both feed1 and feed2 failing my builds.
I've worked around this for now by setting the same credentials for both feeds.
Expected behavior
feed1 credentials are used with feed1 and feed2 credentials are used with feed2
pip version
21.1.3
Python version
3.9
OS
linux
How to Reproduce
- Create two Azure feeds in different organizations, for example pkgs.dev.azure.com/org1/_packaging/org-feed/pypi/simple and pkgs.dev.azure.com/org2/_packaging/org-feed/pypi/simple
- Upload package1 to feed1, package2 to feed2
- Generate different personal access tokens PAT1 and PAT2 for the two feeds
- Set environment variables ``IP_INDEX_URL=https://build:[email protected]/org1/_packaging/org-feed/pypi/simple` and
PIP_EXTRA_INDEX_URL=https://build:[email protected]/org2/_packaging/org-feed/pypi/simple
- Run
pip install package1 package2
Output
pip interactively prompts for username breaking the build instead of installing the two packages.
Code of Conduct
- I agree to follow the PSF Code of Conduct.