Skip to content

Conversation

@JMSoler7
Copy link
Contributor

@JMSoler7 JMSoler7 commented May 7, 2025

This commit updates setup.py to resolve build-time warnings and errors under setuptools>=80, which now deprecates the use of license classifiers for identifying the license of a project. Changes:

Replaced the deprecated license classifier License :: OSI Approved :: MIT License with a valid license="MIT" field using an SPDX license identifier.

Motivation:

Under Python 3.12 and modern setuptools, building the package triggered the following warning, which can escalate to build failures in strict environments:

setuptools.warnings.SetuptoolsDeprecationWarning: License classifiers are deprecated. Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: MIT License

Replacing the license classifier with the SPDX-compliant license="MIT" field aligns the project with modern packaging standards and prevents the warning from interrupting builds.

This closes #28

This commit updates setup.py to resolve build-time warnings and errors under setuptools>=80, which now deprecates the use of license classifiers for identifying the license of a project.
Changes:

    Replaced the deprecated license classifier License :: OSI Approved :: MIT License with a valid license="MIT" field using an SPDX license identifier.

Motivation:

Under Python 3.12 and modern setuptools, building the package triggered the following warning, which can escalate to build failures in strict environments:

setuptools.warnings.SetuptoolsDeprecationWarning: License classifiers are deprecated.
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License

Replacing the license classifier with the SPDX-compliant license="MIT" field aligns the project with modern packaging standards and prevents the warning from interrupting builds.
@rr- rr- merged commit a887d45 into rr-:master May 7, 2025
1 of 3 checks passed
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.

🐛 Build fails with Python 3.12 and setuptools>=80 due to deprecated license classifier

2 participants