<br><br><div class="gmail_quote">On Sat, Mar 1, 2008 at 4:26 PM, Jim Fulton <<a href="mailto:jim@zope.com">jim@zope.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
On Mar 1, 2008, at 9:58 AM, Andreas Jung wrote:<br>
<br>
> Hi,<br>
><br>
> I just tried to upload a new package with a pretty long<br>
> long_description.<br>
> After uploading PyPI showed the text as plain/text...obviously an<br>
> error<br>
> within the reST structure. Because of the length it took me half an<br>
> hour for figuring out the error. My local rst2html script did not<br>
> report any errors.<br>
<br>
</div>That's very odd.<br>
<div class="Ih2E3d"><br>
> So what is the recommended approach for checking a reST file for<br>
> PyPI compliance instead doing fixing-and-re-registering the package?<br>
<br>
<br>
</div>I have my setup file write the long description to a file and then I<br>
test it with rest2html (actually the rst2 script from zc.rst2) before<br>
uploading it. It's puzzling to me that rest2html didn't give you an<br>
error when PyPI didn't like the text.<br>
</blockquote><div><br>Yes I wish Pypi would return some kind of warning when the reST compiling fails<br>(see my previous message on this)...<br><br>A simple check on client side I do with docutils is :<br><br>python setup.py --long-description | rst2html.py > /dev/null<br>
<pre><br></pre><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Jim<br>
<font color="#888888"><br>
--<br>
Jim Fulton<br>
Zope Corporation<br>
<br>
<br>
_______________________________________________<br>
Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">http://mail.python.org/mailman/listinfo/distutils-sig</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Tarek Ziadé | Association AfPy | <a href="http://www.afpy.org">www.afpy.org</a><br>Blog FR | <a href="http://programmation-python.org">http://programmation-python.org</a><br>
Blog EN | <a href="http://tarekziade.wordpress.com/">http://tarekziade.wordpress.com/</a>