How to indicate external dependency in built package (metadata Requires-External, PEP725) #8534
-
Since version 1.2 core-metadata support a Requires-External field to indicate to whatever installer that there are non-python dependencies and that the package might not work properly without those: https://packaging.python.org/en/latest/specifications/core-metadata/#requires-external-multiple-use Draft PEP 725 proposes a pyproject.toml syntax that could be used to generate those line in the METADATA file: https://peps.python.org/pep-0725/ Currently is there any way to have poetry add a Requires-External line in my built package ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I don't think there is a built-in way. Metadata is handled in poetry.core.masonry.metadata and as it looks |
Beta Was this translation helpful? Give feedback.
-
Thank you for your help, I ended up building a poetry plugin that reads the pyproject.toml and add the Requires-External during build. I hope poetry will support it natively in the future |
Beta Was this translation helpful? Give feedback.
I don't think there is a built-in way. Metadata is handled in poetry.core.masonry.metadata and as it looks
requires_external
is not set.