Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add explicit license metadata for Python bindings#1976

Open
julia-thorn wants to merge 8 commits intohuggingface:mainhuggingface/tokenizers:mainfrom
julia-thorn:mainjulia-thorn/tokenizers:mainCopy head branch name to clipboard
Open

Add explicit license metadata for Python bindings#1976
julia-thorn wants to merge 8 commits intohuggingface:mainhuggingface/tokenizers:mainfrom
julia-thorn:mainjulia-thorn/tokenizers:mainCopy head branch name to clipboard

Conversation

@julia-thorn
Copy link
Copy Markdown

Description

Set explicit Apache-2.0 license metadata and include a LICENSE file in built distributions so package metadata is consistently discoverable.

Motivation and Context

Compliance tooling reads installed artifact metadata. Without explicit license fields/files, packages can be reported as having no detectable license even when the repo is properly licensed.

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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

Adds explicit Apache-2.0 license metadata for the Python bindings so that installed artifacts have consistently discoverable license information for compliance tooling.

Changes:

  • Set PEP 639 license metadata in bindings/python/pyproject.toml (license + license-files) and stop treating license as a dynamic field.
  • Add an Apache 2.0 LICENSE file under bindings/python for inclusion in built artifacts.
  • Declare license = "Apache-2.0" in the Rust bindings/python/Cargo.toml package metadata.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
bindings/python/pyproject.toml Adds explicit PEP 639 license metadata for Python package builds
bindings/python/LICENSE Adds license text intended to be shipped with distributions
bindings/python/Cargo.toml Adds SPDX license metadata for the Rust crate powering the Python extension

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

Comment thread bindings/python/pyproject.toml
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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


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

Comment thread bindings/python/pyproject.toml
@julia-thorn julia-thorn requested a review from Copilot March 24, 2026 14:45
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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


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

@julia-thorn
Copy link
Copy Markdown
Author

@ArthurZucker Ready for re-review, thanks!

@julia-thorn
Copy link
Copy Markdown
Author

@ArthurZucker bumping this PR, thank you!

@julia-thorn
Copy link
Copy Markdown
Author

@ArthurZucker ready for review, thank you!

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.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.