Alternate long_description formats, server-side

When I brought up enabling Markdown previously, I was a bit over-eager and started talking implementation before there was any sort of consensus about it in principle, so it was a bit of a straw-man.
The previous discussion seemed to rest with the onus being on the user to do it themselves, perhaps by installing (the non-Python) pandoc (non-trivial on Windows) as well as pypandoc and then integrating it into twine or some such.
There seems to be a chasm between the GitHubbers that have various issues and PRs to this effect on the pypa/readme_renderer repo that are met with a frustrating silence from people with commit-power. Is the solution to basically write a full spec (PEP?) before touching any code? That seems like an actionable solution, but is it simply going to be rejected out-of-hand because of the "just learn rST" sentiment among the maintainers?

On Jun 2, 2016, at 6:08 PM, Nick Timkovich prometheus235@gmail.com wrote:
When I brought up enabling Markdown previously, I was a bit over-eager and started talking implementation before there was any sort of consensus about it in principle, so it was a bit of a straw-man.
The previous discussion seemed to rest with the onus being on the user to do it themselves, perhaps by installing (the non-Python) pandoc (non-trivial on Windows) as well as pypandoc and then integrating it into twine or some such.
There seems to be a chasm between the GitHubbers that have various issues and PRs to this effect on the pypa/readme_renderer repo that are met with a frustrating silence from people with commit-power. Is the solution to basically write a full spec (PEP?) before touching any code? That seems like an actionable solution, but is it simply going to be rejected out-of-hand because of the "just learn rST" sentiment among the maintainers?
Speaking with my PyPI and readme_renderer committer hat on, I have zero opposition to the idea of rendering Markdown (or any other alternative proposal)— in fact I think it’s all together a good thing. You’d need/want some buy-in from setuptools (likely Jason Coombs is all you need there) but I don’t think there’d be an issue actually adding it once there was some agreed upon thing.
So yea, we need some sort of standard. It could be as simple as just adding a field to the existing metadata specification with something like:
Description-Format: txt|rst|md|whatever
With the assumption that if you omit the field then we do the legacy behavior of “attempt to render as rst, fallback to plain text”. You’ll probably want a registry of recommended values (or perhaps, mandatory values? How do we add a new type of format to the list?).
Anyways, just an off the cuff idea, but I don’t think there’s anyone seriously opposed to the idea.
— Donald Stufft

On 2 June 2016 at 15:19, Donald Stufft donald@stufft.io wrote:
On Jun 2, 2016, at 6:08 PM, Nick Timkovich prometheus235@gmail.com wrote: So yea, we need some sort of standard. It could be as simple as just adding a field to the existing metadata specification with something like:
Description-Format: txt|rst|md|whatever
With the assumption that if you omit the field then we do the legacy behavior of “attempt to render as rst, fallback to plain text”. You’ll probably want a registry of recommended values (or perhaps, mandatory values? How do we add a new type of format to the list?).
Anyways, just an off the cuff idea, but I don’t think there’s anyone seriously opposed to the idea.
Yep, it's not about opposition, just a matter of there being a range of more important problems ahead of it in the priority queue.
That said, we do now have a mechanism to document additional metadata fields without requiring an entire new metadata version (see Provides-Extra in https://packaging.python.org/en/latest/specifications/#core-metadata for an example), and there's a catalog of anticipated formats in https://www.python.org/dev/peps/pep-0459/#document-names, so the idea of defining a Description-Format field sounds plausible to me (even if it takes a while for tools to start emitting or reading it).
Cheers, Nick.

I can definitely believe there are more important things to do, but some of us aren't versed in the intricacies of what's up top and don't have the familiarity to dive in. Us GitHub plebs are just raring to work on a feature we think is within our grasp ;-)
On Thu, Jun 2, 2016 at 7:35 PM, Nick Coghlan ncoghlan@gmail.com wrote:
On 2 June 2016 at 15:19, Donald Stufft donald@stufft.io wrote:
On Jun 2, 2016, at 6:08 PM, Nick Timkovich prometheus235@gmail.com
wrote:
So yea, we need some sort of standard. It could be as simple as just
adding
a field to the existing metadata specification with something like:
Description-Format: txt|rst|md|whatever
With the assumption that if you omit the field then we do the legacy behavior of “attempt to render as rst, fallback to plain text”. You’ll probably want a registry of recommended values (or perhaps, mandatory values? How do we add a new type of format to the list?).
Anyways, just an off the cuff idea, but I don’t think there’s anyone seriously opposed to the idea.
Yep, it's not about opposition, just a matter of there being a range of more important problems ahead of it in the priority queue.
That said, we do now have a mechanism to document additional metadata fields without requiring an entire new metadata version (see Provides-Extra in https://packaging.python.org/en/latest/specifications/#core-metadata for an example), and there's a catalog of anticipated formats in https://www.python.org/dev/peps/pep-0459/#document-names, so the idea of defining a Description-Format field sounds plausible to me (even if it takes a while for tools to start emitting or reading it).
Cheers, Nick.
-- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia

On Jun 2, 2016, at 9:16 PM, Nick Timkovich prometheus235@gmail.com wrote:
I can definitely believe there are more important things to do, but some of us aren't versed in the intricacies of what's up top and don't have the familiarity to dive in. Us GitHub plebs are just raring to work on a feature we think is within our grasp ;-)
Yup! Nick was speaking to why folks like myself haven’t done it yet- If some enterprising person (perhaps you!) takes the time to write up a PEP and work it through the process, then there’s no reason to wait for me (or Nick, or any of the other core team) to do it :)
— Donald Stufft
participants (3)
-
Donald Stufft
-
Nick Coghlan
-
Nick Timkovich