Open MikulasZelinka opened 10 months ago
Looks like PDM simply doesn't pass the indexes to unearth
?
Let me know if I should make an issue in PDM instead.
A quick fix would probably be to specify ==0.12.1
here: https://github.com/pdm-project/pdm/blob/7abdbcc1d33251f7f8dc06bd7d8cb8e56e78028e/pyproject.toml#L21
Possibly fixed by https://github.com/pdm-project/pdm/pull/2563
Describe the bug PyPI (pypi.org) gets added as an index even though it's overwritten in pyproject.toml using the
pypi
name inunearth>=0.13
I guess it could be caused by https://github.com/frostming/unearth/commit/7d1c215 (although I don't really see how it's possible looking at the source code)...
Version
0.12.1
works fine and does not have this issue.I'm not sure if this is a
pdm
or anunearth
issue.To Reproduce
Now the log of install looks like:
Expected behavior The only index should be the
some_custom_artifactory_url
. But instead, both PyPI and this custom index are used.It also looks like PyPI is preferred, and the custom artifactory is used iff a package is not found in PyPI.
System (please complete the following information):
unearth
version: >0.12.1pdm
version: 2.11.1pdm is installed using these steps from https://pdm-project.org/latest/usage/advanced/#use-pdm-in-a-multi-stage-dockerfile
When installing like this, this issue appears:
And the issue disappears if I fix the unearth version:
Additional context Will try to provide more details if necessary. It's a bit difficult to provide an MRE in this case as there any many components at play. In fact, this issue appears inside a Docker build job running inside a Jenkins pipeline.