Skip to content

chore: declare the Apache-2.0 license in the metadata of every package - #893

Merged
maciejmajek merged 1 commit into
mainfrom
chore/pyproject-license-metadata
Nov 9, 2026
Merged

maciejmajek merged 1 commit into
mainfrom
chore/pyproject-license-metadata

Conversation

@maciejmajek

@maciejmajek maciejmajek commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Purpose

  • Make the published metadata of every RAI package state its license. Today rai_bench, rai_perception and rai_finetune declare no license, and the others carry only the legacy classifier. rai_finetune and rai_semap also ship without LICENSE and NOTICE files.

Proposed Changes

  • All 9 pyproject.toml files (the root and 8 packages): add license = "Apache-2.0" and license-files = ["LICENSE", "NOTICE"] (PEP 639). Remove the License :: OSI Approved :: Apache Software License classifier, which PEP 639 replaces with the license expression.
  • src/rai_finetune/ and src/rai_semap/: add LICENSE and NOTICE, the same files as the other packages. Their sources already carry Apache-2.0 headers.
  • rai_perception: build with hatchling>=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.lock changes only that version.
  • No code changes.

Issues

Testing

  • Built every package (uv build src/<package>) before and after. After: each wheel has Metadata-Version 2.4 or 2.5, License-Expression: Apache-2.0, no license classifier, and LICENSE and NOTICE under dist-info/licenses/; each sdist holds both files.
  • uv lock --check: passes.
  • pre-commit run --files <changed files>: passes.

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

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.37%. Comparing base (b0193ee) to head (eeddb09).
✅ All tests successful. No failed tests found.

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.
📢 Have feedback on the report? Share it here.

@maciejmajek
maciejmajek merged commit d0cf7b0 into main Nov 9, 2026
13 of 14 checks passed
@maciejmajek
maciejmajek deleted the chore/pyproject-license-metadata branch November 9, 2026 14:07
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