Skip to content

Use License Expressions in pyproject.toml #1111

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

csmarchbanks
Copy link
Member

@csmarchbanks csmarchbanks commented May 29, 2025

With the release of PEP-639 the best practice for specifying the license is now to use a license expression in the license field and specify any license files in license-files rather than the table-based approach from PEP-621. Including the license in the classifiers is also no longer allowed when using PEP-639 and has been removed.

@csmarchbanks csmarchbanks force-pushed the pep-639 branch 2 times, most recently from 2150f8f to 7bb3bf8 Compare May 29, 2025 01:01
With the release of PEP-639 the best practice for specifying the license
is now to use a license expression in the license field and specify any
license files in license-files rather than the table-based approach from
PEP-621. Including the license in the classifiers is also no longer
allowed when using PEP-639 and has been removed.

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
build-backend = "setuptools.build_meta"

[project]
name = "prometheus_client"
version = "0.22.0"
description = "Python client for the Prometheus monitoring system."
readme = "README.md"
license = { file = "LICENSE" }
license = "Apache-2.0 AND BSD-2-Clause"
Copy link
Member Author

Choose a reason for hiding this comment

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

BSD-2-Clause is from the decorators file we embed into this library.

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.

1 participant