You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ERROR InvalidDistribution: Invalid distribution metadata: unrecognized or malformed field 'license-file' #923
Please describe the issue that you are experiencing
ERROR InvalidDistribution: Invalid distribution metadata: unrecognized or malformed field 'license-file'
Please list the steps required to reproduce this behaviour
Run 'twine upload dist/*'
Anything else you'd like to mention?
Sorry guys for bother y'all, but is the thing.
I'm studying python (with dummy exercises) and decide to bring a poor DevOps to my repository.
I'm using the pyproject.toml and the twine.
Mine code inside those are here: pyproject.toml
I tried another forum but I didn't get what is wrong with my codes, so if you could, check my repo, and give me some help to resolve that.
@woodruffw hello, thank you for the speed.
For sure, this is the message of error
Checking dist/meu_pacote_python-1.0.9-py3-none-any.whl: ERROR InvalidDistribution: Invalid distribution metadata: unrecognized or
malformed field 'license-file'
This error appears to me at the verify file step at my CD
Activity
woodruffw commentedon May 7, 2025
Hi @igorpompeo, thanks for filing an issue.
To clarify: can you share the entire error message? Are you seeing that error from
twineitself, or as a spit-out from PyPI?(This should be fixed with packaging 25.0, which your twine metadata suggests you're using.)
igorpompeo commentedon May 7, 2025
@woodruffw hello, thank you for the speed.
For sure, this is the message of error
This error appears to me at the verify file step at my CD
woodruffw commentedon May 8, 2025
Okay, thank you. Could you share that
.whlfile, as well as the output you see when you runpip list?igorpompeo commentedon May 8, 2025
Sorry my delay.
Here is the .whl if isn't this, let me know please.
I really appreciated your help.
sigmavirus24 commentedon May 8, 2025
@woodruffw does this belong here or in packaging problems?
igorpompeo commentedon May 8, 2025
My packaging are at version 25.0, I had checked. Sorry for intruding
woodruffw commentedon May 8, 2025
Hmm, I can't reproduce this: I extracted the
METADATAfile from that.whl, and it parses fine:then:
@igorpompeo can you please provide your full
pip listoutput? I strongly suspect you're running into some kind of mixed environment problem.(Per @sigmavirus24's point, this is probably best suited for general triage in packaging-problems, so I'll migrate there.)
igorpompeo commentedon May 8, 2025
Hello,
Here is.
And I'm using venv environment, I don't know if this is some important to say.
woodruffw commentedon May 8, 2025
Thanks, I'll be able to triage this more tonight.
Yes, that's helpful context, thanks! That's the right thing to be doing.
igorpompeo commentedon May 8, 2025
Sorry about that, I'm new in all of this.