Repository navigation
chore: declare the Apache-2.0 license in the metadata of every package - #893
Merged
Merged
Conversation
All 9 pyproject.toml files (the root and 8 packages) now set license = "Apache-2.0" and license-files = ["LICENSE", "NOTICE"] (PEP 639) and drop the legacy License classifier. rai_finetune and rai_semap get the LICENSE and NOTICE files the other packages have. rai_perception builds with hatchling>=1.27, the first release with PEP 639 metadata. rai_core 2.14.0 -> 2.14.1, so the next release publishes the metadata. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #893 +/- ##
=======================================
Coverage 76.37% 76.37%
=======================================
Files 83 83
Lines 3670 3670
=======================================
Hits 2803 2803
Misses 867 867 ☔ View full report in Codecov by Harness. |
adamdbrw
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
rai_bench,rai_perceptionandrai_finetunedeclare no license, and the others carry only the legacy classifier.rai_finetuneandrai_semapalso ship without LICENSE and NOTICE files.Proposed Changes
pyproject.tomlfiles (the root and 8 packages): addlicense = "Apache-2.0"andlicense-files = ["LICENSE", "NOTICE"](PEP 639). Remove theLicense :: OSI Approved :: Apache Software Licenseclassifier, which PEP 639 replaces with the license expression.src/rai_finetune/andsrc/rai_semap/: addLICENSEandNOTICE, the same files as the other packages. Their sources already carry Apache-2.0 headers.rai_perception: build withhatchling>=1.27, the first release that writes PEP 639 metadata.rai_core: 2.14.0 -> 2.14.1, so the next release publishes the new metadata.uv.lockchanges only that version.Issues
Testing
uv build src/<package>) before and after. After: each wheel hasMetadata-Version2.4 or 2.5,License-Expression: Apache-2.0, no license classifier, andLICENSEandNOTICEunderdist-info/licenses/; each sdist holds both files.uv lock --check: passes.pre-commit run --files <changed files>: passes.