[Catalog-sig] PyPI naming policy changes

Phillip J. Eby pje at telecommunity.com
Mon May 12 18:25:33 CEST 2008


At 05:54 PM 5/12/2008 +0200, Martin v. Löwis wrote:
> > Probably the test you want here is:
> >
> >    safe_name(filename).startswith(safe_name(project_name))
>
>So what's to_filename then for?

It's used by setuptools to name files in a way that's unambiguous as 
to which parts mean what.


>  Also, is it allowed for the
>distribution's name to be all-lowercase, when the PyPI package name
>is mixed-case?

Yes...  sorry, I left that out of the above...  it should be 
filename.lower() and project_name.lower().  Setuptools processes 
project names and version numbers case-insensitively.



More information about the Catalog-SIG mailing list