{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/warehouse/issues/4079","repository_url":"https://api.github.com/repos/pypa/warehouse","labels_url":"https://api.github.com/repos/pypa/warehouse/issues/4079/labels{/name}","comments_url":"https://api.github.com/repos/pypa/warehouse/issues/4079/comments","events_url":"https://api.github.com/repos/pypa/warehouse/issues/4079/events","html_url":"https://github.com/pypa/warehouse/issues/4079","id":326462754,"node_id":"MDU6SXNzdWUzMjY0NjI3NTQ=","number":4079,"title":"`long_description_content_type` flag in setup.py seems to be ignored on upload.","user":{"login":"fake-name","id":1401239,"node_id":"MDQ6VXNlcjE0MDEyMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1401239?v=4","gravatar_id":"","url":"https://api.github.com/users/fake-name","html_url":"https://github.com/fake-name","followers_url":"https://api.github.com/users/fake-name/followers","following_url":"https://api.github.com/users/fake-name/following{/other_user}","gists_url":"https://api.github.com/users/fake-name/gists{/gist_id}","starred_url":"https://api.github.com/users/fake-name/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fake-name/subscriptions","organizations_url":"https://api.github.com/users/fake-name/orgs","repos_url":"https://api.github.com/users/fake-name/repos","events_url":"https://api.github.com/users/fake-name/events{/privacy}","received_events_url":"https://api.github.com/users/fake-name/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-05-25T10:11:58Z","updated_at":"2018-06-06T16:41:00Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nI have a python package on PyPi that just (as of the last ~4-5 days) now fails to upload, with a new error:\r\n\r\n```\r\ndurr@rwpscrape /m/S/S/WebRequest> python3 setup.py sdist upload\r\n\r\n[snip build process]\r\n\r\nSubmitting dist/WebRequest-0.0.28.tar.gz to https://upload.pypi.org/legacy/\r\nUpload failed (400): The description failed to render in the default format of reStructuredText. See https://pypi.org/help/#description-content-type for more information.\r\nerror: Upload failed (400): The description failed to render in the default format of reStructuredText. See https://pypi.org/help/#description-content-type for more information.\r\n```\r\n\r\nOk, that's clear enough. My readme is in markdown, let's see how to fix this.\r\n\r\nGoing to https://packaging.python.org/tutorials/packaging-projects/#description, it states you can add `long_description_content_type=\"text/markdown\",` to your `setup.py` file, and it'll be processed as markdown.\r\n\r\n```\r\n<does edits>....\r\n<submits to PyPi again\r\n```\r\n\r\n\r\n```\r\nSubmitting dist/WebRequest-0.0.28.tar.gz to https://upload.pypi.org/legacy/\r\n\r\n[snip build process]\r\n\r\nUpload failed (400): The description failed to render in the default format of reStructuredText. See https://pypi.org/help/#description-content-type for more information.\r\nerror: Upload failed (400): The description failed to render in the default format of reStructuredText. See https://pypi.org/help/#description-content-type for more information.\r\n```\r\n\r\nWhat?\r\n\r\n**Expected behavior**\r\nI expect if I specify the readme is markdown, as the documentation says to do so, the readme should be treated as markdown.\r\n\r\n**To Reproduce**\r\nAttempt to upload a package with a readme that is valid markdown, but not valid reStructuredText.\r\n\r\n**My Platform**\r\n - Python 3.5.2 x64\r\n - Ubuntu 16.04 LTS\r\n - setuptools-39.2.0 (I specifically checked that it's the most current version)\r\n - readme_renderer 20.0\r\n\r\n\r\nActual project in question is [here](https://github.com/fake-name/WebRequest). The readme.md in question is [here](https://github.com/fake-name/WebRequest/blob/master/README.md), and the setup.py is [here](https://github.com/fake-name/WebRequest/blob/master/setup.py)"},"comment":{"url":"https://api.github.com/repos/pypa/warehouse/issues/comments/395135127","html_url":"https://github.com/pypa/warehouse/issues/4079#issuecomment-395135127","issue_url":"https://api.github.com/repos/pypa/warehouse/issues/4079","id":395135127,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTEzNTEyNw==","user":{"login":"di","id":294415,"node_id":"MDQ6VXNlcjI5NDQxNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/294415?v=4","gravatar_id":"","url":"https://api.github.com/users/di","html_url":"https://github.com/di","followers_url":"https://api.github.com/users/di/followers","following_url":"https://api.github.com/users/di/following{/other_user}","gists_url":"https://api.github.com/users/di/gists{/gist_id}","starred_url":"https://api.github.com/users/di/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/di/subscriptions","organizations_url":"https://api.github.com/users/di/orgs","repos_url":"https://api.github.com/users/di/repos","events_url":"https://api.github.com/users/di/events{/privacy}","received_events_url":"https://api.github.com/users/di/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T16:41:00Z","updated_at":"2018-06-06T16:41:00Z","author_association":"MEMBER","body":"Hi @frmdstryr, it's not possible to change anything about a published package -- they are essentially immutable.\r\n\r\nIt's likely that you have an out-of-date version of either `twine`, `wheel` or `setuptools` which cannot interpret this new metadata field. You can upgrade them all with:\r\n\r\n```\r\n$ pip install -U twine wheel setuptools\r\n```\r\n\r\nOnce you do that, you can either increment the version number and make a new release, or make a [post release](https://www.python.org/dev/peps/pep-0440/#post-releases) to fix your description."}}
{"actor":{"display_login":"di"}}