-
Notifications
You must be signed in to change notification settings - Fork 323
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues (open and closed), and could not find an existing issue
What keywords did you use to search existing issues?
__
What operating system are you using?
Windows 11
If you selected 'Other', describe your Operating System here
No response
What version of Python are you running?
GHA installs python
How did you install twine? Did you use your operating system's package manager or pip or something else?
GHA installs twine
What version of twine do you have installed (include the complete output)
GHA installs twine
Which package repository are you using?
not relevant
Please describe the issue that you are experiencing
When using GHA to auto-publish to TestPyPI, enabling job verbose mode showed the following error:
body may not contain duplicate keys
This error message was very confusing.
I resolved this by fixing the repository URL to have a forward slash on the end of the URL.
Wrong:
repository-url: https://test.pypi.org/legacy
Correct:
repository-url: https://test.pypi.org/legacy/
Please list the steps required to reproduce this behaviour
Create a GHA pypi auto-publish workflow using this exact workflow code.
Remove the forward slash at the end of the TestPyPI URL.
Then push a commit to trigger the auto-build and auto-publish actions.
Anything else you'd like to mention?
No response