You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
fixes license metadata in py/pyproject.toml to conform to PEP 639: https://peps.python.org/pep-0639 (the current way we define license metadata is deprecated and will no longer work after February 2026)
updates Bazel configuration to include copyright notice file (NOTICE) in the packages we build for distribution (wheel/sdist)
🔄 Types of changes
Build/Packaging
PR Type
Other
Description
Update Python license metadata to PEP 639 compliance
Include NOTICE file in distribution packages
Add Bazel rules for copyright notice handling
Create symlinks for LICENSE and NOTICE files
Diagram Walkthrough
flowchart LR
A["License Metadata"] --> B["PEP 639 Compliance"]
C["NOTICE File"] --> D["Distribution Package"]
E["Bazel Rules"] --> F["Copyright Handling"]
B --> G["Updated pyproject.toml"]
D --> G
F --> G
Consider adding the NOTICE file to the license-files array as well, since it contains copyright notices that should be distributed with the package metadata
Why: The suggestion correctly points out that the NOTICE file should be added to the license-files key in pyproject.toml for packaging correctness, which was missed in the PR.
✅ Fix missing comma in arraySuggestion Impact:The suggestion was directly implemented - a comma was added after "LICENSE" and also after "NOTICE" to properly format the TOML array
code diff:
- "LICENSE"- "NOTICE"+ "LICENSE",+ "NOTICE",
Add a missing comma after "LICENSE" to properly separate the list items. Without the comma, this creates a syntax error in the TOML array.
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.
User description
🔗 Related Issues
#16113
💥 What does this PR do?
This PR updates Python packaging:
py/pyproject.toml
to conform to PEP 639: https://peps.python.org/pep-0639 (the current way we define license metadata is deprecated and will no longer work after February 2026)NOTICE
) in the packages we build for distribution (wheel/sdist)🔄 Types of changes
PR Type
Other
Description
Update Python license metadata to PEP 639 compliance
Include NOTICE file in distribution packages
Add Bazel rules for copyright notice handling
Create symlinks for LICENSE and NOTICE files
Diagram Walkthrough
File Walkthrough
BUILD.bazel
Add NOTICE file handling to Bazel build
py/BUILD.bazel
LICENSE
Add LICENSE symlink
py/LICENSE
NOTICE
Add NOTICE symlink
py/NOTICE
pyproject.toml
Update license metadata for PEP 639
py/pyproject.toml