[Distutils] DRAFT PEP 396 - module version number

Éric Araujo merwok at netwok.org
Tue Jun 7 17:30:23 CEST 2011


Just two things I thought about while perusing my archives yesterday.

>>>     #. For modules which are also packages, the module namespace > SHOULD
>>>        include the ``__version__`` attribute.
>> I’m still not sure “module namespace” will be clear to everyone.
> Really?  We know what a module is, and we know what a namespace is, so given
> the context, I think it should be clear.

FYI, I noticed that PEP 382 (namespace packages) says “the namespace
package itself” to refer to the corp/__init__.py file of the
corp.somelib package.  In the Python tutorial, we have things like “the
__init__.py code”.  So it looks like there’s no agreed term to refer to
this module.

A note about the setup.cfg field used to get the version from a file: It
will definitely need to use another name than “version”: Tarek wants the
setup.cfg field to be a direct translation from PEP 345 (modulo case
insensitivity), so the description-file is another field, and
version-file should certainly be one too.  (I hope it’s short enough to
comply with your wish of keeping the common case simple.)


More information about the Distutils-SIG mailing list