hundreds-carpet-28072
02/14/2023, 1:41 PMpip.conf
for Pants rather than using .pants.rc
? I understand that pip.conf
isn’t supported because of PEX but is there a clean workaround?enough-analyst-54434
02/14/2023, 2:33 PMhundreds-carpet-28072
02/14/2023, 3:30 PM.netrc
fileenough-analyst-54434
02/14/2023, 3:41 PM~/.netrc
should just work by default.enough-analyst-54434
02/14/2023, 3:44 PM[python-repos]
indexes.add = ["add", "these", "5", "to", "PyPI"]
enough-analyst-54434
02/14/2023, 3:44 PMhundreds-carpet-28072
02/14/2023, 5:10 PMfresh-cat-90827
02/14/2023, 5:31 PMpip
outside of Pants repo. Then there's Pants configuration that also needs to be kept up-to-date with the PyPI index URLs.
What Danny wants is to be able to ask Pants to load the pip.conf
and the like into the pants.toml
instead of duplicating the URLs.
This is not currently possible, i.e. we cannot load configuration for python-repos
from a file. However, we do this in a couple of places such as this onefresh-cat-90827
02/14/2023, 5:33 PMfromfile
notation with @
. I guess we could explore doing this for the python-repos
as well.enough-analyst-54434
02/14/2023, 6:08 PMenough-analyst-54434
02/14/2023, 6:11 PMfresh-cat-90827
02/15/2023, 6:00 AMpython-repos
indices are collected using the fromfile
syntax just as we do in a couple of other subsystems. Pex would still be given what's coming from the [python-repos].indexes
hundreds-carpet-28072
02/15/2023, 10:01 AMUnless I have misinterpreted the needs of Danny, there's no need to involve Pex here at all. We'd just have to extend how theThis is correct and what I would be looking to do. Thanks for explaining my case better than I did 😅 I’m happy to create an issue on GitHub for this. @enough-analyst-54434 Would the Pants cache still be an issue for the above? Is so, I’m assuming there isn’t a ignored-by-cache function so that specific files wouldn’t be cached ?indices are collected using thepython-repos
syntax just as we do in a couple of other subsystems. Pex would still be given what's coming from thefromfile
[python-repos].indexes
enough-analyst-54434
02/15/2023, 3:25 PM