Skip to content

Checking markdown READMEs exits with error, breaking pypi uploads #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jstaf opened this issue May 29, 2018 · 4 comments
Closed

Checking markdown READMEs exits with error, breaking pypi uploads #107

jstaf opened this issue May 29, 2018 · 4 comments

Comments

@jstaf
Copy link

jstaf commented May 29, 2018

It looks like readme_renderer is improperly exiting with an error when reading markdown-formatted readme files (instead of exiting cleanly with exit code 0). This breaks all uploads to test.pypi.org and pypi.org that use markdown-formatted readmes.

$ python setup.py check -s -r
running check
warning: Check: Not checking long description content type 'text/markdown', this command only checks 'text/x-rst'.

error: Please correct your package.
$ echo $?
1

See pypi/warehouse#4079 for more info.

@theacodes
Copy link
Member

This behavior is correct here as you shouldn't use setup.py check --restructuredtext when you have a markdown readme. Will address in the warehouse issue.

@jstaf
Copy link
Author

jstaf commented May 29, 2018

Hmmm, you are indeed right. Both myself and the other affected user in pypi/warehouse#4079 appear to have gone down this documentation trail:

With all of this in mind, it might be worthwhile for readme_renderer to exit cleanly without an error if the input is markdown (or update the documentation to make it explicitly clear that readme_renderer is not used for markdown files).

@Lapis-Hong
Copy link

so what is the solution????

@jstaf
Copy link
Author

jstaf commented May 26, 2019

Upgrade your version of wheel + there was a bug that was fixed in pypi/warehouse#4079

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants