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