-
Notifications
You must be signed in to change notification settings - Fork 306
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
Does twine treat long_description as a mandatory field? #960
Labels
Comments
At first glance, I think this might be a duplicate of #908 (which I spent some time digging into, but needs more investigation). |
aforren1
added a commit
to aforren1/Psychtoolbox-3
that referenced
this issue
Mar 17, 2023
… tools. Unclear whether this was intentional on the python tooling side, but twine (the tool that uploads packages to PyPI) now fails if the long_description is not set. See pypa/twine#960 for details.
This was referenced Sep 5, 2023
anthrotype
added a commit
to anthrotype/brotli
that referenced
this issue
Sep 6, 2023
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
pushed a commit
to google/brotli
that referenced
this issue
Sep 7, 2023
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.
aforren1
added a commit
to aforren1/Psychtoolbox-3
that referenced
this issue
Dec 14, 2023
Unclear whether this was intentional on the python tooling side, but twine (the tool that uploads packages to PyPI) now fails if the long_description is missing. See pypa/twine#960 for details.
aforren1
added a commit
to aforren1/Psychtoolbox-3
that referenced
this issue
Jun 11, 2024
It seems this is unintentional and may be fixed one day, but twine (the tool that uploads packages to PyPI) now fails if the long_description is not set. See pypa/twine#960 for context.
aforren1
added a commit
to aforren1/Psychtoolbox-3
that referenced
this issue
Jun 11, 2024
It seems this is unintentional and may be fixed one day, but twine (the tool that uploads packages to PyPI) now fails if the long_description is not set. See pypa/twine#960 for context.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your Environment
Originally caught on GitHub Actions Publish to PyPI, but locally repro'd on my OSX laptop.
3.10.8
pip install twine
4.0.2
PyPI
PKG-INFO.txt
The Issue
I noticed today that my Github action to publish to pypi started failing with
This was confusing for me because
After coming across #454, I tried to repro the issue locally and was able to do so:
Steps to Reproduce
I am able to reproduce this locally using the config mentioned above.
python -m build --sdist --wheel --outdir dist/ .
twine check dist/*
.Steps I took to fix:
I added a
long_description
field to setup.py and twine check now passes:Questions
long_description
a mandatory field?long_description
is mandatory, instead of saying that "long_description
has syntax errors"?Thank you for your time! Please let me know if I missed something silly in my own configs.
The text was updated successfully, but these errors were encountered: