On Friday, July 28, 2023 3:42:50 PM EDT Emmanuel Arias wrote: > Control: reassign -1 poetry-core > > Hi, > > Sorry for this delay. Yes as you mentioned Scott, you need to add the > optional dependency in the extras section, not only marked it as > optional=true. > > Poetry documentation[0] is not very explicit with that. > > There's an issue open [1]. I can work in a patch to at least raise an > exception o message when a dependency is marked as optional and is not > added to extras. But I agree that mark a deps as optional and then is > not optional is confusing. > > [0] https://python-poetry.org/docs/pyproject/#extras > [1] https://github.com/python-poetry/poetry/issues/2357
Thanks, For this particular package I pointed this out to upstream and it's fixed in their latest bug fix update. They were quite surprised that marking a dependency optional didn't actually do anything, so I think it would be good to get poetry to handle this better. Scott K
signature.asc
Description: This is a digitally signed message part.