packaging.python.org icon indicating copy to clipboard operation
packaging.python.org copied to clipboard

Document that sparse identifiers with whitespace are valid if quoted

Open matthewfeickert opened this issue 1 year ago • 1 comments

As a related improvement, we could also show that it's possible to use sparse identifiers with actual whitespaces when quoted. Like pip ~= 23.1, or resolvelib > 0.5, != 0.6.0. I think, this makes them more readable and this style should be used in human-maintained files (as opposed to the tool-generated ones, like constraint pins made with pip-tools).

Originally posted by @webknjaz in https://github.com/pypa/packaging.python.org/issues/1225#issuecomment-1471867938

matthewfeickert avatar Mar 16 '23 16:03 matthewfeickert

We could add a small sentence here, since the example is already using that technique.

chrysle avatar Sep 20 '23 12:09 chrysle