-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
Extra option "format_nongpl" changed to "format-nongpl" in 5.6.0 #962
Comments
This is apparently related to PEP 685 which is enforcing that extras names be normalized -- so in theory the two names should be equivalent, but pip doesn't have support for it yet until I believe pypa/packaging#526 is merged (at which point everything I think will just work as-is). Not sure there's anything to do in the meantime (suggestions of course welcome). Will have to keep thinking. |
I think Hatch is going to stop normalizing until pip catches up, so watch that linked Hatch ticket which will hopefully resolve this. |
OK, the aforementioned PR is merged, but I think pypa/packaging#569 needs doing to get |
We're still waiting on the upstream fix for #962 which will allow installing the extra with either form, but as-is, this is technically not valid in a pyproject.toml (and is throwing some schemastore errors) because keys here have to use hyphens, not underscores. See https://packaging.python.org/en/latest/specifications/declaring-project-metadata/#dependencies-optional-dependencies
For those like me who work with conda environments, by the time it's solved, this workaround worked for me (largely inspired by the OP): Install mamba so that you don't wait hours for conda to solve the environment:
Install the specific version of jsonschema that works:
Just my 2 cents. It's only a workaround, but it's better than nothing. |
pypa/pip#11715 is what to watch out for here, which is still open. I of course didn't think it'd take this long (though not sure what we'd have done even with that knowledge), and of course pip is a volunteer project like this one is so anyone who might still care about this one should try to help out there, but going to close this as there's nothing to do here downstream for better or worse. |
Looks like a small regression, maybe due to the migration from
setup.cfg
topyproject.toml
?Fixing this could be as simple as updating the docs, although I am suprised that tests did work because tox installs with underscore.
Or treat it as regression that everyone who used underscore has a bad surprise now because pip does even only treat this as a warning, not even as an error.
The text was updated successfully, but these errors were encountered: