{"action":"created","issue":{"url":"https://api.github.com/repos/takluyver/flit/issues/169","repository_url":"https://api.github.com/repos/takluyver/flit","labels_url":"https://api.github.com/repos/takluyver/flit/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/takluyver/flit/issues/169/comments","events_url":"https://api.github.com/repos/takluyver/flit/issues/169/events","html_url":"https://github.com/takluyver/flit/pull/169","id":311117410,"number":169,"title":"Official support for markdown and plain text descriptions","user":{"login":"takluyver","id":327925,"avatar_url":"https://avatars3.githubusercontent.com/u/327925?v=4","gravatar_id":"","url":"https://api.github.com/users/takluyver","html_url":"https://github.com/takluyver","followers_url":"https://api.github.com/users/takluyver/followers","following_url":"https://api.github.com/users/takluyver/following{/other_user}","gists_url":"https://api.github.com/users/takluyver/gists{/gist_id}","starred_url":"https://api.github.com/users/takluyver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takluyver/subscriptions","organizations_url":"https://api.github.com/users/takluyver/orgs","repos_url":"https://api.github.com/users/takluyver/repos","events_url":"https://api.github.com/users/takluyver/events{/privacy}","received_events_url":"https://api.github.com/users/takluyver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-04T07:36:59Z","updated_at":"2018-04-06T20:07:13Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/takluyver/flit/pulls/169","html_url":"https://github.com/takluyver/flit/pull/169","diff_url":"https://github.com/takluyver/flit/pull/169.diff","patch_url":"https://github.com/takluyver/flit/pull/169.patch"},"body":"Fixes #166.\r\n\r\nUntil recently, PyPI only supported rst descriptions, falling back to plain text if the rst was invalid. Now a new metadata field `Description-Content-Type` lets us specify whether the description is rst, markdown or plain text. This new code uses that, picking the content type based on the file extension (`.rst`, `.md` or `.txt`). If the extension is something else, Flit will warn the user and leave the field unset, so it's up to PyPI what to do with it.\r\n\r\nMarkdown support has been a secret feature of Flit for some time, by using pandoc to convert markdown to rst (thanks @Carreau!). This makes it an official feature, and gets rid of the code to call pandoc, since PyPI can now handle markdown natively."},"comment":{"url":"https://api.github.com/repos/takluyver/flit/issues/comments/379363009","html_url":"https://github.com/takluyver/flit/pull/169#issuecomment-379363009","issue_url":"https://api.github.com/repos/takluyver/flit/issues/169","id":379363009,"user":{"login":"Carreau","id":335567,"avatar_url":"https://avatars3.githubusercontent.com/u/335567?v=4","gravatar_id":"","url":"https://api.github.com/users/Carreau","html_url":"https://github.com/Carreau","followers_url":"https://api.github.com/users/Carreau/followers","following_url":"https://api.github.com/users/Carreau/following{/other_user}","gists_url":"https://api.github.com/users/Carreau/gists{/gist_id}","starred_url":"https://api.github.com/users/Carreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carreau/subscriptions","organizations_url":"https://api.github.com/users/Carreau/orgs","repos_url":"https://api.github.com/users/Carreau/repos","events_url":"https://api.github.com/users/Carreau/events{/privacy}","received_events_url":"https://api.github.com/users/Carreau/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T20:07:13Z","updated_at":"2018-04-06T20:07:13Z","author_association":"COLLABORATOR","body":"The `charset` seem to also be an option I'm in favor of enforcing utf-8 and/or adding a markdown-variant flag in a subsequent PR. "}}
{"actor":{"display_login":"Carreau"}}