Synapse doesn't detect URL preview dependencies if built with poetry-core 1.3.0, raising runtime errors #14079
Description
This is causing CI failures:
Synapse 1.69.0rc1 does not provide the feature 'url_preview'
even though the requisite dependencies are installed. The problem is that python-poetry/poetry-core#476 now enforces https://peps.python.org/pep-0685/#specification. Wheels built by poetry-core include metadata describing an extra url-preview
with a -
but NOT url_preview
with an _
. This means the dependency-checking code in Synapse here
synapse/synapse/config/repository.py
Lines 206 to 208 in 7b67e93
will fail.
People who've also installed from source after the release of poetry-core 1.3.0 are going to be seeing this.
Assuming we want to be able to use future poetry-core releases, we'll need to update the dependency-checking code to account for this.