[pypi] pytorch index urls support #26383
Replies: 4 comments 4 replies
-
Created a PR for the |
Beta Was this translation helpful? Give feedback.
-
I'm not sure I like the idea of retrying on a 403 unless that's the only way. If a tool like pip or poetry encounters such a server, what is their logic for determining to use the simple endpoint? If they try and get a 403 and then retry with simple then that's probably the only way, but it does not sound like a good idea because will get a lot of false positives |
Beta Was this translation helpful? Give feedback.
-
Hitting the same issue and can't get around it without disabling
That's a bit specific to pypi, but maybe a suitably general-enough-to-warrant-being-a-config-option idea would be:
|
Beta Was this translation helpful? Give feedback.
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. Please follow these steps:
If you need help with running renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
Beta Was this translation helpful? Give feedback.
-
How are you running Renovate?
Mend Renovate hosted app on github.com
If you're self-hosting Renovate, tell us what version of Renovate you run.
No response
If you're self-hosting Renovate, select which platform you are using.
None
Was this something which used to work for you, and then stopped?
I have not seen this working
Describe the problem
The pytorch pypi indices such as https://download.pytorch.org/whl/cpu/ only support the PEP 503 simple api and answers non-existent urls with 403 Forbidden by default, such as https://download.pytorch.org/whl/cpu/torch/json. Thus, renovate does not retry as a simple index.
To reproduce, simply add
torch
to your dependencies as well as https://download.pytorch.org/whl/cpu/ as an extra index url. We use the poetry manager, but it should not be poetry specific.As a fix, you could add pytorchs url scheme to
renovate/lib/modules/datasource/pypi/index.ts
Lines 44 to 45 in d2536a7
statusCode
check inrenovate/lib/modules/datasource/pypi/index.ts
Line 60 in d2536a7
Relevant debug logs
Logs
Have you created a minimal reproduction repository?
I have linked to a minimal reproduction in the description above
Beta Was this translation helpful? Give feedback.
All reactions