https://pantsbuild.org/ logo
#general
Title
# general
c

calm-ambulance-65371

04/22/2022, 4:16 PM
Using Pants
2.10
, does
generate-lockfiles
support PEP 440 direct references?
1
Further, it seems
generate-lockfiles
does not seem to honor
[python-repos].indexes.add
improved support is coming in 2.11.x via the pex-native lockfile format
c

calm-ambulance-65371

04/22/2022, 4:38 PM
it doesn't seem to be honoring the
[python-repos].indexes.add
config in either
2.10.0
or
2.11.0rc3
w

witty-crayon-22786

04/22/2022, 4:39 PM
in 2.11.x you’d need to switch to the pex lockfile generator
c

calm-ambulance-65371

04/22/2022, 4:39 PM
I did
I'm actually seeing the
--extra-index-url
flag in the pex command, but it's still not finding the package 😕
w

witty-crayon-22786

04/22/2022, 4:39 PM
ah… and this was a repository that you have used before successfully?
c

calm-ambulance-65371

04/22/2022, 4:40 PM
it was working as a PEP 440 direct requirement in a requirements.txt in pants
2.2
, I'm in the process of trying to get us on a more recent version of pants
it also resolves properly when using
pip
and
--extra-index-url
directly
w

witty-crayon-22786

04/22/2022, 4:42 PM
do your interpreter constraints require it for a wider range perhaps?
it might be worth filing an issue with more context… i’m not familiar with PEP 440 style
c

calm-ambulance-65371

04/22/2022, 4:54 PM
🤦‍♂️it was a typo in the url...
haha sorry to bug you with questions 😬
w

witty-crayon-22786

04/22/2022, 4:54 PM
heh, s’all good. i’m saved by the bell
h

hundreds-father-404

04/22/2022, 5:02 PM
It's definitely possible that there are more bugs in pex lock file support. We've had a month of people dogfooding but python packaging is vast. So feedback is super appreciated!
12 Views