I'm having an issue with third-party dependencies ...
# general
a
I'm having an issue with third-party dependencies published on my internal package repository. I can see that there is both a
.whl
and
.tar.gz
distribution available, and it installs fine with Poetry. However, when using resolves in pants and
pants generate-lockfiles
I receive an error similar to
No matching distribution found for your-package<0.3.0,>=0.2.2
. If I remove this dependency it occurs with the next internal package as well. I have set up the alternative repository in the
pants.toml
file and set up HTTP proxies as necessary. Before enabling resolves I was able to use
pants test
and run those fine, installing the same dependencies from the alternative repository.
r
Most probably pants isn't able to authenticate itself against your private repo. Have you tried what's suggested here https://www.pantsbuild.org/docs/python-third-party-dependencies from
Custom repositories
onward?
a
Hmm, I don't think that's the issue. The repository itself requires no additional authentication.
I figured this one out. The issue was with the underlying
interpreter_constraints
which was set too strictly. The documentation linked in the error message should definitely point to this being a potential cause. I see that this has been reported before, I'll try to get a PR up when I get the time.