[docs] Error on distutils/uploading.html?

Kai k at limist.com
Thu Feb 10 20:52:42 CET 2011


Hi,

On this page/URL,

http://docs.python.org/distutils/uploading.html

In 7.1, "PyPI package display" there's an example of how to use a file 
for the long_description field:

setup(name='Distutils',
       long_description=open('README.txt'))


This did not work for me, when I use setup.py register it just gives the 
__repr__ object instance string.  I had to use something like,

setup(name='Distutils',
       long_description=open('README.txt').read())

And then the properly marked up README content will show up on PyPI. 
Thanks,

K




More information about the docs mailing list