On Mon, 2023-01-30 at 16:11 +0500, Anna (cybertailor) Vyalkova wrote: > On 2023-01-30 12:00, Michał Górny wrote: > > However, there's a can of worms around the corner -- should we also > > allow normalizing "-" and "_" across different packages (see dev- > > python/sphinx*)? > > PyPI treats "-" and "_" separators as the same, so I'd not use > underscores for in-repo consistency.
I suppose that's PEP 503. It speaks of name normalization: | The name should be lowercased with all runs of the characters ., -, | or _ replaced with a single - character. [1] Technically, a policy that would require only "normalized" name match would let us improve consistency when upstreams fail to do so. Unfortunately, while common tools search case-insensitively, they are sensitive to these characters (and I'm not convinced of changing that). [1] https://peps.python.org/pep-0503/#normalized-names -- Best regards, Michał Górny