-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency in _
-> -
normalization
#503
Comments
PEP 508, which defines the syntax for specifying extras, allows The core metadata spec says that an extra name "must be a valid Python identifier", which implies that |
Here's what flit generates (in the METADATA file, that pip reads from): Requires-Dist: installer[array_types] ; extra == "all"
Requires-Dist: numpy ; extra == "array_types"
Provides-Extra: all
Provides-Extra: array_types This is definitely a pip bug. |
Thanks for the fast answer. Closing this. Will open a new issue in pip. |
As follow up, it seems the inconsistency issue is discussed in https://discuss.python.org/t/7614 |
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.
The text was updated successfully, but these errors were encountered: