[Distutils] Detecting rst errors when uploading to pypi

Jim Fulton jim at zope.com
Sun Dec 28 16:33:00 CET 2014


On Sat, Dec 27, 2014 at 11:26 PM, John Anderson <sontek at gmail.com> wrote:
> Hey, I'm trying to get my README to render properly on pypi but I haven't
> found a way to detect the errors pypi is experiencing.
>
> The package I'm trying to upload is here:
> https://pypi.python.org/pypi/pyramid_celery
>
> I've checked the README.rst with restview, rst2html, and collective.showdocs
> and they all render the RST just fine.
>
> It seems like I'm not the only one having this issue:
> https://bitbucket.org/pypa/pypi/issue/161/rest-formatting-fails-and-there-is-no-way
>
> So what is the recommended route for debugging the problem?  I would really
> like to fix it but without know the problem I would just to make random
> guesses.

I run:

  setup.py --long-description

and pipe the output into a ReST processor to check for errors.

(I use rst2, https://pypi.python.org/pypi/zc.rst2, which is a thin
but convenient wrapper around docutils for converting ReST
to various formats.)

Jim

-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton


More information about the Distutils-SIG mailing list