[docs] Error on distutils/uploading.html?

Sandro Tosi sandro.tosi at gmail.com
Tue Feb 22 21:58:35 CET 2011


Hi Kai,
thanks for your email.

On Thu, Feb 10, 2011 at 19:52, Kai <k at limist.com> wrote:
> 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,

You're right, so I just opened http://bugs.python.org/issue11293 to
fix this error.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list