https://pantsbuild.org/ logo
h

high-egg-2153

01/15/2021, 12:55 AM
We received a pre release of one of our dependencies from the vendor in a tar.gz file. How can I use this in my project?
p

polite-garden-50641

01/15/2021, 12:57 AM
h

high-egg-2153

01/15/2021, 1:17 AM
Thanks - I think I got it. So that "file://path/to/tar/file" entry goes in pants.toml:
[python-repos]
indexes.add = ["<file://path/to/tar/file>"]
Then just a normal entry in requirements.txt that refers to the package in the tar.gz.
p

polite-garden-50641

01/15/2021, 1:18 AM
actually just the path to a directory, pip will figure out the file name based on the package name and the version.
actually this should be the repo setting not indexes.
./pants help-advanced python-repos
h

high-egg-2153

01/15/2021, 1:38 AM
Thanks for the help - It seems to be working now
❤️ 1
3 Views