Skip to content

Commit a813ea0

Browse files
committed
Clarify that UIs should avoid normalized values
1 parent c297892 commit a813ea0

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎source/specifications/recording-installed-packages.rst‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ New tools that write ``.dist-info`` directories MUST normalize both ``name``
5555
and ``version`` fields using the rules described above, and existing tools are
5656
encouraged to start normalizing those fields.
5757

58+
.. note::
59+
60+
The ``.dist-info`` directory's name is formatted to unambigiously represent
61+
a distribution as a filesystem path. Tools presenting a distribution name
62+
to a user should avoid using the normalized name, and instead present the
63+
specified name (when needed prior to resolution to an installed package),
64+
or read the respective fields in Core Metadata, since values listed there
65+
are unescaped and accurately reflect the distribution. Libraries should
66+
provide API for such tools to consume, so tools can have access to the
67+
unnormalized name when displaying distrubution information.
68+
5869
This ``.dist-info`` directory can contain these files, described in detail
5970
below:
6071

0 commit comments

Comments
 (0)