-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Solve alleged twine warnings on pypi publishing #1778
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
Conversation
(venv) PS C:\...\pvlib-python> py -m twine check dist/* Checking dist\pvlib-0.9.6.dev25+g763dd0a.d20230618-py3-none-any.whl: PASSED with warnings WARNING `long_description_content_type` missing. defaulting to `text/x-rst`. Checking dist\pvlib-0.9.6.dev25+g763dd0a.d20230618.tar.gz: PASSED with warnings WARNING `long_description_content_type` missing. defaulting to `text/x-rst`.
I'd keep this open until the warning can be confirmed on v0.10 release. |
From last release logs, at Checking dist/pvlib-0.10.0-py3-none-any.whl: PASSED with warnings
WARNING `long_description_content_type` missing. defaulting to `text/x-rst`.
Checking dist/pvlib-0.10.0.tar.gz: PASSED with warnings
WARNING `long_description_content_type` missing. defaulting to `text/x-rst`. |
Thanks @echedey-ls! Would it make sense to add |
I don't really have the knowledge to say so. I believe the desired behaviour would be to report the warnings on the action status although I don't have a clue on how to do that or if GitHub automatically does. From linked action recommendation on metadata verification:
So I'd say yes. I'll add that and revert if you think so later. |
BTW, I don't have a clue on how to test this. |
Co-Authored-By: Kevin Anderson <[email protected]>
It amazes me how you review everything with such depth. I wouldn't have spotted the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @echedey-ls, it's great to have another person looking at the project's infrastructure like this!
Whoops, looks like this one got forgotten. I'll go ahead and merge now. Thanks again @echedey-ls! |
[ ] Closes #xxxx[ ] Tests added[ ] Updates entries indocs/sphinx/source/reference
for API changes.[ ] Adds description and name entries in the appropriate "what's new" file indocs/sphinx/source/whatsnew
for all changes. Includes link to the GitHub Issue with:issue:`num`
or this Pull Request with:pull:`num`
. Includes contributor name and/or GitHub username (link with:ghuser:`user`
).[ ] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.remote-data
) and Milestone are assigned to the Pull Request and linked Issue.I'm pretty sure the following warnings are being raised in the publish action, since metadata verification is not disabled in the PyPI publishing action.
Can't compare against last publication as the logs were deleted.See comments below.(I was playing with the sdist and installation procedures, in case you were wondering).
This solves it. It currently does not have any impact but just in case.