Skip to content

Remove "License :: ..." classifiers from pyproject.toml examples #564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 4, 2025

Conversation

tomalrussell
Copy link
Contributor

Also update recommended use of "license = ..." key to use the short reference code for common licenses, rather than the legacy { file = "LICENSE" } specification.

See #557 for discussion

Copy link
Collaborator

@ucodery ucodery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR! I really like your new descriptions of why to use classifiers, even without licenses.
The license metadata field used to be overloaded to mean two different things at the same time, depending on the type of value. Those meanings have been divided between two distinct fields and we should be explicit about that.

Update use of "license = ..." key to use short reference.

See pyOpenSci#557 for discussion
- aim to be clear that pyproject.toml license entry is a "short code" or reference to the choice of license
- add note on and link to SPDX expressions for precision
- add sentence on license-files key for completeness
@tomalrussell tomalrussell force-pushed the fix/license-classifiers branch from af0549f to 3e57a98 Compare July 31, 2025 17:00
@tomalrussell
Copy link
Contributor Author

Thanks for the review @ucodery ☺️ I've had a go at each point in 3e57a98

Copy link
Collaborator

@ucodery ucodery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wonderful! Thanks for making those extra changes!

tomalrussell and others added 2 commits August 1, 2025 21:13
Co-authored-by: Jeremiah Paige <[email protected]>
Co-authored-by: Jeremiah Paige <[email protected]>
@ucodery ucodery merged commit 32e6cc3 into pyOpenSci:main Aug 4, 2025
4 checks passed
@ucodery
Copy link
Collaborator

ucodery commented Aug 4, 2025

@all-contributors please add @tomalrussell for code and doc

Copy link
Contributor

@ucodery

I've put up a pull request to add @tomalrussell! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants