Inconsistency in _
-> -
normalization (extras)
#10757
Labels
type: bug
A confirmed bug or unintended behavior
_
-> -
normalization (extras)
#10757
Description
I'm using a PEP 621 toml using flit 3.5 & pip 21.3.1:
My toml has self-refering
optional-dependencies
:When running
pip install -e .[all]
, this logs:It looks like
"etils[array_types]"
gets normalized to[array-types]
, but notarray_types = ["numpy"]
.Manually replacing
array_types = ["numpy"]
->array-types = ["numpy"]
solve the issue.But this behavior feels inconsistent.
I first posted in pypa/flit#503 but from the Flit authors, it seems this is a pip issue. It seems Flit generate the following metadata:
Expected behavior
No response
pip version
pip 21.3.1
Python version
3.8
OS
Linux
How to Reproduce
pyproject.toml
as above.pip install .[all]
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: