Skip to content

Trusted publishing gives a syntax error #191

Closed Answered by webknjaz
vtnate asked this question in Q&A
Discussion options

You must be logged in to vote

There is no long_description in my repo, and this error didn't get raised when using the token. I don't know how to get trusted publishing to work as expected. Is the source of this error anything you know of?

This is not related to secretless publishing. It's just that the dist you're trying to upload doesn't provide long description. The action checks the dists by running twine check --strict. It's generally recommended to do this early in your CI pipeline so that it raises the red flag earlier.

You can ask the action to skip that metadata verification check: https://github.com/marketplace/actions/pypi-publish#disabling-metadata-verification. Though, the proper solution is to fix your…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vtnate
Comment options

Answer selected by webknjaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants