Skip to content

Use SPDX string for project.license in pyproject template#255

Merged
tekktrik merged 1 commit intoadafruit:mainfrom
nthbotast:fix-254-spdx-license-field
Mar 10, 2026
Merged

Use SPDX string for project.license in pyproject template#255
tekktrik merged 1 commit intoadafruit:mainfrom
nthbotast:fix-254-spdx-license-field

Conversation

@nthbotast
Copy link

Summary

Fixes the setuptools deprecation warning described in #254 by updating the generated pyproject.toml template:

  • change project.license from TOML table to SPDX string ("MIT")
  • remove deprecated MIT license classifier from project.classifiers

This follows the packaging guidance referenced in the issue and avoids the upcoming setuptools breakage window for deprecated license metadata.

Validation

  • Template file updated: {{ cookiecutter.__dirname }}/pyproject.toml
  • Attempted to run tests in a fresh venv; test collection currently fails in this environment due to an upstream dependency compatibility warning (requests/urllib3 on Python 3.14), unrelated to this metadata-only change.

@tekktrik tekktrik linked an issue Mar 10, 2026 that may be closed by this pull request
Copy link
Member

@tekktrik tekktrik left a comment

Choose a reason for hiding this comment

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

Thanks!

@tekktrik
Copy link
Member

Merging despite failing - see #256 for more information

@tekktrik tekktrik merged commit ab5a535 into adafruit:main Mar 10, 2026
3 of 4 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.

Update to licensing specification in pyproject.toml needed

2 participants