[Distutils] Static metadata using setup.cfg

Sridhar Ratnakumar sridharr at activestate.com
Tue Aug 18 03:21:15 CEST 2009


On Mon, 17 Aug 2009 17:22:51 -0700, David Lyon <david.lyon at preisshare.net>  
wrote:

> [setup]
> name: foo
> version: 1.0
> author: tarek
> long_description: some
>   long description
>   here

More often developers may want to assign the contents of README.txt to the  
`long_description` field. I have seen setup.py's that simply do:

   long_description = open('README.txt').read()

If one is to use setup.cfg, how would this particular case be handled?  
Override `long_description` in setup.py .. or provide a Config variable  
($README)?

-srid


More information about the Distutils-SIG mailing list