[Distutils] Allowed characters in setuptools.setup(name='????')
Donald Stufft
donald at stufft.io
Mon Feb 2 13:36:33 CET 2015
> On Jan 30, 2015, at 2:57 AM, Thomas Güttler <guettliml at thomas-guettler.de> wrote:
>
> Hi,
>
> where is the reference of the allowed characters in the name argument of
> setuptool.setup()?
>
> I could not find it.
>
It depends on what you mean by allowed.
Previously the "name" was defined as allowing anything however setuptools
"normalizes" non ascii numeric characters to "-".
There is an unaccepted PEP[1] which says names are constrained to:
* ASCII letters ( [a-zA-Z] )
* ASCII digits ( [0-9] )
* underscores ( _ )
* hyphens ( - )
* periods ( . )
Now in PyPI previously names were allowed to be anything that didn't contain
"/", however we've since changed that to match the constraints in the PEP.
[1] https://www.python.org/dev/peps/pep-0426/#name
---
Donald Stufft
PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
More information about the Distutils-SIG
mailing list