Skip to content

Fix build failure: remove redundant License classifier#16

Merged
ronaldvdmeer merged 1 commit intomainfrom
fix/remove-license-classifier
Mar 29, 2026
Merged

Fix build failure: remove redundant License classifier#16
ronaldvdmeer merged 1 commit intomainfrom
fix/remove-license-classifier

Conversation

@ronaldvdmeer
Copy link
Copy Markdown
Owner

Summary

Removes the License :: OSI Approved :: MIT License classifier that was added in #15, which broke the CI build.

Root cause

PEP 639 (adopted in setuptools ≥68) rejects License :: classifiers when a SPDX license expression is already set via the license key. The two representations conflict and setuptools now raises InvalidConfigError.

Fix

Remove the classifier. The existing license = "MIT" entry is a valid SPDX expression and already satisfies the Home Assistant third-party library policy requirement — the licence is visible on PyPI through both the metadata field and the LICENSE file bundled in the distribution.

PEP 639 / setuptools >=68 rejects 'License :: OSI Approved' classifiers
when a license SPDX expression is already set via the 'license' key.
Remove the classifier — license = "MIT" is sufficient and already
satisfies the HA third-party library policy requirement.
Copilot AI review requested due to automatic review settings March 29, 2026 23:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes a packaging metadata conflict in pyproject.toml that causes builds to fail under setuptools’ PEP 639 validation, by dropping the redundant License :: trove classifier while retaining the SPDX license expression.

Changes:

  • Removed License :: OSI Approved :: MIT License from [project].classifiers to avoid conflicting license metadata.
  • Keeps license = "MIT" as the single source of license metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ronaldvdmeer ronaldvdmeer merged commit 1b5a0b5 into main Mar 29, 2026
10 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.

2 participants