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

setup.py: add long_description #1073

Merged
merged 1 commit into from Sep 7, 2023
Merged

Conversation

anthrotype
Copy link
Member

twine (the tool we use to upload packages to PyPI) is currently failing if the long_description (used to render a project's page on PyPI website) is not set. Somehow it complains that it is not well formatted reStructuredText, but it's simply empty... This looks like a bug, or bad interaction between twince and setuptools, because the field is technically optional. Also see pypa/twine#960 and pypa/twine#908.

This issue is currently preventing the upload of newly built Brotli v1.1.0 Python wheels to PyPI: google/brotli-wheels#18 (comment)

Anyway, we may well set the long_description to the content of the README.md file, as it's customary for python projects.

twine (the tool we use to upload packages to PyPI) is currently failing if the long_description (used to render a project's page on PyPI website) is not set. Somehow it complains that it is not well formatted reStructuredText, but it's simply empty...
This looks like a bug, or bad interaction between twince and setuptools, because the field is technically optional.
Also see pypa/twine#960 and pypa/twine#908.

This issue is currently preventing the upload of newly built Brotli v1.1.0 Python wheels to PyPI:
google/brotli-wheels#18 (comment)

Anyway, we may well set the long_description to the content of the README.md file, as it's customary for python projects.
@eustas
Copy link
Collaborator

eustas commented Sep 7, 2023

Awesome. Thanks.

@eustas eustas merged commit 2ce8566 into google:master Sep 7, 2023
34 checks passed
@anthrotype anthrotype deleted the py-long-description branch September 7, 2023 09:28
anthrotype added a commit to google/brotli-wheels that referenced this pull request Sep 7, 2023
fixes issue with twine complaining about invalid long_description
copybara-service bot pushed a commit that referenced this pull request Sep 8, 2023
FUTURE_COPYBARA_INTEGRATE_REVIEW=#1073 from anthrotype:py-long-description 4541387
PiperOrigin-RevId: 563749441
copybara-service bot pushed a commit that referenced this pull request Sep 8, 2023
FUTURE_COPYBARA_INTEGRATE_REVIEW=#1073 from anthrotype:py-long-description 4541387
PiperOrigin-RevId: 563749441
copybara-service bot pushed a commit that referenced this pull request Sep 8, 2023
FUTURE_COPYBARA_INTEGRATE_REVIEW=#1073 from anthrotype:py-long-description 4541387
PiperOrigin-RevId: 563749441
copybara-service bot pushed a commit that referenced this pull request Sep 8, 2023
FUTURE_COPYBARA_INTEGRATE_REVIEW=#1073 from anthrotype:py-long-description 4541387
PiperOrigin-RevId: 563749441
copybara-service bot pushed a commit that referenced this pull request Sep 8, 2023
FUTURE_COPYBARA_INTEGRATE_REVIEW=#1073 from anthrotype:py-long-description 4541387
PiperOrigin-RevId: 563749441
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.

None yet

2 participants