[Distutils] conventions or best practice to choose package names?

Benoît Bryon benoit at marmelune.net
Fri Jun 29 18:36:53 CEST 2012


Le 29/06/2012 18:01, Paul Moore a écrit :
> On 29 June 2012 15:34, Daniel Holth<dholth at gmail.com>  wrote:
>> May package names contain hyphen (-)?
> Package or distribution? Package, no because it has to be a valid
> Python identifier. Distribution, I'm not sure - there are funny rules
> to allow for things like parsing dist-info directory names, or egg
> filenames, unambiguously. One of the packaging PEPs would probably
> answer this one.
>
> Paul.

In package/module names, as Paul said, you can't use hyphens.

About project names, currently, the draft PEP recommends
using the same value for distributed module/package name
and for project name.
The consequence is: PEP 8 applies to project names too,
which means "no hyphens" in project names (and many other
rules).
The exception is the dot symbol, required to create
namespace packages.

Benoit



More information about the Distutils-SIG mailing list