Re: [Distutils] PyPI not rendering ReST long_description

2014-07-14 Thread Wichert Akkerman

 On 13 Jul 2014, at 23:06, Donald Stufft don...@stufft.io wrote:
 Currently PyPI has no method to report that it has failed except to fail the 
 upload with a message. This isn’t acceptable because we don’t mandate ReST 
 and some people want to just have plain text uploads. With PyPI/Metadata 2.0 
 this is getting resolved in a way that’ll make all of this possible as well 
 as additional renderers.

Doesn’t that still leave the other two options as possible right now?

Wichert.
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] PyPI not rendering ReST long_description

2014-07-14 Thread Wichert Akkerman

On 13 Jul 2014, at 18:04, Wichert Akkerman wich...@wiggy.net wrote:

 I just uploaded a new pyramid_sqlalchemy package to PyPI. Looking at the 
 distribution page at https://pypi.python.org/pypi/pyramid_sqlalchemy PyPI is 
 not rendering ReST. I can’t figure out why though: according to both “python 
 setup.py check” and python setup.py --long-description | rst2html-2.7.py  
 /dev/null” there are no ReST syntax errors in me description. Is there any 
 way to see why PyPI is not rendering my ReST?

I ended up debugging this by manually bisecting the long description through 
the PyPI web-interface. The culprit turned out to be this bit:

`Pyramid docs.pylonsproject.org/projects/pyramid/en/latest/`_

This is perfectly valid ReST, but I am guessing PyPI somehow forbids you from 
using URLs without a scheme.

Wichert.___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] PyPI changelog support, releases.json / common NEWS.rst format?

2014-07-14 Thread Erik Bray
On Fri, Jul 11, 2014 at 5:24 PM,  ma...@include-once.org wrote:
 I'm currently tinkering on a freshmeat substitute. And for automating
 release announcements been looking around for common package meta
 data schemes. PyPIs /pypi/pkgname/json (or the xmlrpc interface) looks
 quite interesting. It obviously mostly targets dependency management
 and systemic categorization.

 So from googling around this never came up: But would it be feasible
 to include a version changelog / release summary via du.register?

 Of course, I'm referring to a human-readable This version adds and
 fixes... changelog, not the (name, version, timestamp) journal tuple.

 The releases{} per-URL `comment_text` seems widely unused.
 Was that its purpose?


 I hope this isn't getting too off-topic, this is -just for comparison
 and context- what I'm intending to eventually map PyPI release streams
 onto:
http://fossil.include-once.org/freshcode/wiki/releases.json


 There are probably other priorities for distutils / warehouse
 currently. So alternatively, is there a semi-standard for NEWS.txt
 or CHANGELOG etc. files within Python packages?

 Cheeseshop project homepages which also include a release notes list
 via `long_description` seem far and few between. I actually found
 just one:
https://pypi.python.org/pypi/py-translate
 Which seems to share a reStructuredText source for documentation and
 pypi homepage:

 https://raw.githubusercontent.com/jjangsangy/py-translate/master/HISTORY.rst

 (I'd have presumed Markdown-style release notes to be favoured.)
 Anyway, is there an estimate on how many packages include release
 notes at all?

Interesting question--I've long struggled over the question of how
best to maintain a readable human-readable changelog/release notes.
Part of it is social, and getting all contributors to enter the
correct changelog entry for any changes they submit.  I've mostly
gotten that hammered out for my main projects.

But managing a changelog for a project with multiple release branches
is also a bit tricky and something I've been wanting to find a better
way to automate.

As for actual formats I long ago adopted the format used by
zest.releaser [1] even though I'm not using it as much any more to
make my releases.  I think the format it recognizes by default is all
valid ReST, and I've preferred to stick with that.  I also try to link
every changelog entry to a bugtracker issue number in square brackets.
So for the most part the format has been kept machine-parseable (in
fact we have a Sphinx plugin that automatically converts the [#]
issue number markers to links).  See for example the Astropy changelog
[2].

Still, if anyone else has further thoughts on this topic I'd be interested.

Erik


[1] https://github.com/zestsoftware/zest.releaser/blob/master/CHANGES.rst
[2] https://github.com/astropy/astropy/blob/master/CHANGES.rst
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig