[Catalog-sig] What triggers treating long descriptions text as reST in PyPI?
jim at zope.com
Thu Sep 7 15:49:19 CEST 2006
Yeah, Fred pointed out to me that reST barfed on my ise of the string
"py_" in my text. :/
I should have thought to try processing the text myself. I'll do so
the next time I get a failure to reST.
On Sep 7, 2006, at 8:51 AM, Richard Jones wrote:
> On Thursday 07 September 2006 21:42, Jim Fulton wrote:
>> Most of my packages' long descriptions are treated as reST. For
>> However, for:
>> the long description was treated as plain text.
>> What triggers treatment as reStructuredText? Is this documented
> If the reStructuredText parsing fails for some reason it'll be
> treated as
> plain text. The specific docutils settings used are:
> 'raw_enabled': '0', # no raw HTML code
> 'file_insertion_enabled': '0', # no file/URL access
> 'halt_level': 2, # at warnings or errors, raise an exception
> 'report_level': 5, # never report problems with the reST code
> We pass the description through the docutils trim_docstring
> function (from
> docutils.readers.python.moduleparser) before parsing it. This
> dedents as
> Catalog-sig mailing list
> Catalog-sig at python.org
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Catalog-sig