Optional dependencies relying on other optional dependencies cause RequirementError for URL package #1347
Closed
1 task done
Labels
🐛 bug
Something isn't working
PDM does not handle optional dependencies relying on other optional dependencies of of its own package very well. One repeatable issue I could find was that packages that download from an URL cause issues.
Steps to reproduce
Use the following
pyproject.toml
with a clean cache and empty environment:pdm lock
then fails with aRequirementError
, saying "The local path nl-core-news-lg does not exist."Output of `pdm lock -v`
Weirdly it also happens when I move the model to
all
, but keep the dependency onmy_thing[large_model]
Output of `pdm lock -v`
Only when I remove the dependency on
my_thing[large_model]
, does PDM succeedOutput of `pdm lock -v`
Expected behavior
That it finds and properly resolves my dependencies
Environment Information
(replaced my username with
<user>
)The text was updated successfully, but these errors were encountered: