Skip to content

pyproject.toml: rework license information#827

Open
yegorich wants to merge 2 commits into
webpy:masterfrom
yegorich:fix-license-info
Open

pyproject.toml: rework license information#827
yegorich wants to merge 2 commits into
webpy:masterfrom
yegorich:fix-license-info

Conversation

@yegorich

@yegorich yegorich commented Jun 9, 2026

Copy link
Copy Markdown

Don't use license info in the classifiers section define both license and license file via the new options.

This resolves the following issues:

*********************************************************************** 
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future.

See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. 
***********************************************************************
*********************************************************************** 
Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: Public Domain

See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. 
***********************************************************************

Don't use license info in the classifiers section define both license
and license file via the new options.

This resolves the following issues:

***********************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.

See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
***********************************************************************

***********************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: Public Domain

See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
***********************************************************************

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
@yegorich

yegorich commented Jun 9, 2026

Copy link
Copy Markdown
Author

There is another consideration: there is no "Public domain" license as an SPDX definition. So I had to create a custom tag. The closest definition would be CC0-1.0.

@yegorich

yegorich commented Jun 9, 2026

Copy link
Copy Markdown
Author

Do we need to bump setuptools to 77.0.0?

@cclauss

cclauss commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

pre-commit: upgrade validate-pyproject and pyproject-fmt

Let's make sure that the pyproject.toml tools validate the proposed changes.

@cclauss cclauss force-pushed the fix-license-info branch from 022190b to d463b26 Compare June 11, 2026 10:31
@cclauss cclauss force-pushed the fix-license-info branch from d463b26 to 1adbcdd Compare June 11, 2026 10:35

@cclauss cclauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@anandology @mekarpeles Can you please comment on whether we should choose the custom LicenseRef-Public-Domain-1.0 string conforming to the SPDX specification or the SPDX identifier CC0-1.0?

@cclauss cclauss requested review from anandology and mekarpeles June 11, 2026 12:27
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