billions-toddler-84781
08/24/2023, 9:03 AMmultiple pypi indexes & multiple resolves
I have a project with multiple resolve and multiple indexes. I use pipenv to generate initial lock files and then pants uses that lock file to generate its own lockfiles for each resolve.
Package X available in multiple pypi indexes. Version <1.2 is available in index A and version >1.2 in index B. In the Pipfile I explicitly mention the index it should use. Pipenv successfully generates a lock file that contains version X>=1.5 but pants fails.
ERROR: Could not find a version that satisfies the requirement X==1.5.1
ERROR: No matching distribution found for X==1.5.1
Is there a way to limit an index use for a specific resolve? As I understand I have to specify all indexes I want to use in pants.toml, but I cannot limit the use to specific resolves. Also there is no way to select it during locking.billions-toddler-84781
08/24/2023, 9:08 AMbillions-toddler-84781
08/24/2023, 12:01 PMgorgeous-winter-99296
08/24/2023, 2:23 PM