-
Notifications
You must be signed in to change notification settings - Fork 309
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
twine check does not notice long_description problems with markdown and old bdist_wheel #425
Comments
I'm not sure this is something that Twine should be able to do. Twine only concerns itself with distribution artifacts, not source. From it's perspective, your wheel is correct (since it doesn't have the In order for it to understand that the wheel should have that field, it would have to execute |
But it does!
is right there in magic_wormhole-0.11.1.dist-info/METADATA in the whl file. |
Right, but the By the way, here's the output I see with
|
Will a poor random Python packager know these subtleties? (No.) Wouldn't it be nice if twine warned you about fields that are present but will be ignored because of the metadata version?
That's helpful! Now people can google that error message and eventually there'll be a StackOverflow answer telling them to upgrade their (I assume 1.12.2 is the number of the unreleased twine version from git, since PyPI has only 1.12.1?) I think this issue can be closed -- while there still are possible improvements, "defaulting to text/x-rst" will be a big hint to users that something went wrong about their attempt to use markdown. |
Ah, yes, apologies. I didn't realize this hasn't been released yet. 😕 |
:) This is why I like to keep the version number at 'x.y.z.dev0' in source control, except for the one commit that I tag as the x.y.z release. |
Yeah, someone who shouldn't be committing to the repo rogue committed a bunch of junk to master including the version bump. This isn't the project's normal way of keeping versions on master |
This comment has been minimized.
This comment has been minimized.
I have a similar issue and I believe I have the all latest versions of the packages. > twine --version
twine version 1.13.0 (pkginfo: 1.5.0.1, requests: 2.21.0, setuptools: 40.8.0,
requests-toolbelt: 0.9.1, tqdm: 4.31.1) and I'm trying to check my project's [1-2] README with
and I get
However, my long_description_content_type="text/markdown", my
and the Maybe I'm missing something obvious but I have no idea how to proceed to investigate this. As you can see in [2] the README renders badly and I cannot debug why b/c locally it is checked as [1] https://github.com/ioos/erddapy |
@ocefpaf Is it possible you have old distributions without this metadata in the |
Nope. I start that command with |
It looks like your setup.py has |
That is it. Thanks! I would never have guessed based on the
I guess that I should add a
to the PS: I always "corrupted" the use of the LICENSE field in the past to actually have a license text, specially in the BSD case b/c I really need the type of BSD (1, 2 or 3) to be there, instead of the PyPI classifier |
Given that this issue seems to be collecting unrelated problems, and that @mgedmin said:
I'm going to close this. If you think you have a similar problem, please open a new issue. |
* Keyword should only hold name of license In accordance with pypa/twine#425 * Correct license name
Your Environment
Thank you for taking the time to report an issue.
To more efficiently resolve this issue, we'd like to know some basic information about your system and setup.
Your operating system: Ubuntu 18.10
Version of python you are running:
virtualenv ~/.venv && ~/.venv/bin/pip install -U twine
I don't understand the question.
The Issue
The https://pypi.org/project/magic-wormhole project was trying to use markdown on the PyPI page, without success: magic-wormhole/magic-wormhole#316.
I was hoping
twine check
would help identify the issue, but it didn't.I would like
twine check
to be useful for these kinds of problems.Steps to Reproduce
If the issue is predictable and consistently reproducible, please list the steps here.
pip download --no-deps magic-wormhole==0.11.1
twine check magic_wormhole-0.11.1-py2.py3-none-any.whl
My expectation: twine will say "you're trying to use Description-Content-Type: text/markdown, but this wheel was generated with bdist_wheel (0.29.0) which does not support it (you need wheel >= 0.31.0)", or it will at least list the specific problems that prevent this project's long_description from being rendered correctly.
Actual results:
The text was updated successfully, but these errors were encountered: