mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-11-22 13:29:19 +08:00
fix: remove deprecated Apache license classifier (#3566)
## Description `pyproject.toml` already declares the modern SPDX license expression (`license = "Apache-2.0"`), but the `classifiers` list still carried the legacy trove classifier `License :: OSI Approved :: Apache Software License`. Per PEP 639, that classifier is deprecated once a license expression is declared, and shipping both is exactly what #3508 reports after inspecting the built wheel's METADATA. Closes #3508 ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Performance improvement - [ ] Code refactoring (no functional changes) ## Changes Made - Removed the single deprecated `License :: OSI Approved :: Apache Software License` line from `classifiers` in `pyproject.toml`. Nothing else changed. ## Testing - [x] Manual testing performed (no unit test needed -- one-line metadata removal, verified by building the package and inspecting its metadata) ### Test Output ```text $ uv build --sdist Built dist/headroom_ai-0.37.0.tar.gz $ tar xzOf dist/headroom_ai-0.37.0.tar.gz --wildcards "*/PKG-INFO" | grep -i "license\|classifier" Classifier: Development Status :: 4 - Beta Classifier: Intended Audience :: Developers Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 ... License-File: LICENSE License-File: NOTICE License-Expression: Apache-2.0 ``` The deprecated `License :: OSI Approved :: Apache Software License` classifier is gone; `License-Expression: Apache-2.0` is present and unaffected. ## Real Behavior Proof - Environment: this repo's `main`, `uv build --sdist`. - Exact command / steps: shown above. - Observed result: metadata is now PEP 639-compliant -- no deprecated classifier, license expression intact. - Not tested: wheel build (requires the Rust toolchain, not available in this sandbox); sdist metadata is generated from the same `pyproject.toml` fields and was verified directly. ## Runtime Rollout Safety - N/A -- build metadata only, no runtime behavior change. ## Review Readiness - [x] I have performed a self-review - [x] This PR is ready for human review ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] My changes generate no new warnings - [x] I did **not** edit `CHANGELOG.md`
This commit is contained in:
@@ -33,7 +33,6 @@ keywords = [
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: Apache Software License",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
|
||||
Reference in New Issue
Block a user