Skip to content

Description can now be amended per package #11

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

Merged
merged 4 commits into from
May 12, 2021
Merged

Conversation

srittau
Copy link
Contributor

@srittau srittau commented May 12, 2021

The extra_description field in METADATA.toml now gets added
to the package's long_description field.

The extra_description field in METADATA.toml now gets added
to the package's long_description field.
@@ -53,6 +53,8 @@
https://github.com/python/typeshed/tree/master/stubs/{distribution}. All fixes for
types and metadata should be contributed there.

{extra_description}
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe only add the extra newlines if the extra description is non-empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that multiple empty lines should result in only one new paragraph in markdown, but I'm not certain that's true and whether all markdown renderers do that.

Should I just split the constant and use string concat?

Copy link
Contributor

Choose a reason for hiding this comment

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

How you did with having parts looks good.

srittau added 3 commits May 12, 2021 13:04
Extract long description generation into separate function. Split
long description intro and outro into separate templates.
@srittau
Copy link
Contributor Author

srittau commented May 12, 2021

@ilevkivskyi I have rewritten the long description generation, also in preparation of #12. This should avoid extra empty lines.

@srittau srittau merged commit 69b5e33 into main May 12, 2021
@srittau srittau deleted the extra-description branch May 12, 2021 13:03
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