Skip to content

Wrong license specifier in pyproject.toml #1368

Closed
@kien-truong

Description

@kien-truong

license = { text = "LICENSE" }

It should be

license = { text = "MIT LICENSE" }

or if you want to read from the LICENSE file

license = { file = "LICENSE" }

This bug is causing the PyPI package from version 4.2.0 onward to have the wrong LICENSE metadata

https://pypi.org/project/commitizen/4.2.0/

Activity

Lee-W

Lee-W commented on Mar 20, 2025

@Lee-W
Member

ah.., right. should be the second one. Thanks for reminding us!

self-assigned this
on Mar 20, 2025
kien-truong

kien-truong commented on Mar 20, 2025

@kien-truong
Author

In that case, you should add the License to the trove classifier too

classifiers = [
...
"License :: OSI Approved :: MIT License"
...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @kien-truong@Lee-W

    Issue actions

      Wrong license specifier in pyproject.toml · Issue #1368 · commitizen-tools/commitizen