ipython / ipython/traitlets

Fix License metadata in PyPi package

Open
#870 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
653
Forks
217
Avg merge
2d 21h
Merged PRs (30d)
2

Description

Hello,

the license metadata field for traitlets contains the full license text instead of only the license specifier in the resulting METADATA file within the dist-info part of the traitlets package.
This then causes the field on pypi.org to also try to print the full license text.

I have no clue what causes this, though. The pyproject.toml in the repository looks just fine. I've seen other projects that have the same problem with similar config (specifying the license file in the license field and the short name in the classifiers - pipenv for example) , but I've also seen projects that do this without problems, so I'm at a loss as to what causes this.

Maybe it's got to do with some custom packaging script of yours that I couldn't find.
I hope one of the maintainers might immediately know what the problem is now that it's known. (I think you barely check the Metadata on the pypi page or your built packages after releasing an update)

Contributor guide

Open the contributing guide

Research direction

Start by inspecting pyproject.toml and any packaging scripts, then build the traitlets distribution and examine the METADATA file under its dist-info directory. Compare the generated license field with the intended short license specifier and verify that the resulting PyPI metadata no longer displays the full license text.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.