Skip to content
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

Warn about markdown content type when checking RST #83

Merged
merged 3 commits into from
Apr 10, 2018

Conversation

theacodes
Copy link
Member

Closes #81 and consequently #63.

@theacodes
Copy link
Member Author

Merging so I can prepare a release, but happy to address any concerns post-hoc before merging the actual release.

@theacodes theacodes merged commit 056de3b into pypa:master Apr 10, 2018
@theacodes theacodes deleted the warn-about-markdown branch April 10, 2018 05:32
@@ -26,6 +28,16 @@ def check_restructuredtext(self):
Checks if the long string fields are reST-compliant.
"""
data = self.distribution.get_long_description()
content_type = getattr(
self.distribution.metadata, 'long_description_content_type', None)
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure when self.distribution.metadata came to be -- is this available in all version of distutils? Otherwise we might want to test whether these attributes exist.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's present in Python 2.7 here, and going back quite a bit it looks like it's been around for at least 18 years.

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's probably far enough 😉

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

Successfully merging this pull request may close these issues.

2 participants