Skip to content

fix(amber): declare setuptools in LICENSE-binary-python - #9829

Merged
parshimers merged 1 commit into
apache:mainfrom
mengw15:fix/license-binary-setuptools
Dec 2, 2026
Merged

parshimers merged 1 commit into
apache:mainfrom
mengw15:fix/license-binary-setuptools

Conversation

@mengw15

@mengw15 mengw15 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Declares setuptools in amber/LICENSE-binary-python, in the MIT section.

build / pyamber (ubuntu-latest, 3.12) has failed its license check on main since about 10:00 UTC on 2026-12-02. CI installs the latest pip-licenses, and 6.0.0 no longer hides setuptools as a system package. torch==2.13.0+cpu from amber/operator-requirements.txt installs setuptools>=77.0.3, so the check now reports it as an undeclared bundled package. It was bundled before too; pip-licenses 5.5.5 just left it out of the report.

Any related issues, documentation, discussions?

Same shape as #8293 (cloudpickle). It blocks every PR that runs the pyamber job, for example #9800 in the merge queue and #9828 on release/v1.3.

How was this PR tested?

Ran bin/licensing/check_binary_deps.py --ignore-transitive-version python on a CSV of the packages this file declares plus setuptools==84.2.1. It fails on main with "NEW Python packages not claimed by LICENSE-binary: + setuptools==84.2.1" and passes with this change ("OK: 111 Python packages match LICENSE-binary.").

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-5-5)

@mengw15
mengw15 requested review from Yicong-Huang and parshimers and a balanced review from Copilot December 2, 2026 12:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the setuptools license-manifest update.

No open issues 🎉

What changed in this PR

Updates Amber’s Python license manifest to address the pyamber CI failure caused by pip-licenses now reporting setuptools.

Changes:

  • Adds setuptools==84.2.1 to the MIT-licensed package list.
File Description
amber/​LICENSE-binary-python Declares the bundled setuptools dependency under MIT.

Review effort: Balanced

@github-actions github-actions Bot added the fix label Dec 2, 2026
@Yicong-Huang Yicong-Huang added release/v1.3 back porting to release/v1.3 release/v1.2 back porting to release/v1.2 labels Dec 2, 2026
@github-actions
github-actions Bot requested a review from xuang7 December 2, 2026 12:08
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Backport auto-label report

This fix: PR was checked against each actively-supported release branch. A release/* label nominates a backport target; the branch's release manager approving this PR is what sends the fix there, and the labels left on a merged PR are exactly the branches it reached.

Blocked by a red Backport Approvals check? That required check stays red until every release/* label below is either approved by its branch's release manager or removed. To unblock a backport you do not want:

  • Remove that branch's release/* label to decline just it (the removal is remembered, so it is not added again).
  • Add the no-backport-needed label to decline every branch at once.
  • If this PR is not really a fix, change its title away from fix: and all of these labels are removed automatically; retitling back to fix: re-adds them.
Release branch Analysis
✅ release/v1.3 Change detected on this branch — label added; this fix is queued to backport here.
✅ release/v1.2 Change detected on this branch — label added; this fix is queued to backport here. @xuang7 decides: approving sends the fix here, removing this label declines it. The merge waits on one or the other. Review requested.

Auto-label run.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • No candidates found from git blame history.

@parshimers

Copy link
Copy Markdown
Member

Ugh. Hopefully #9799 will solve this long-term.
I think this will block 1.4 though? Because setuptools itself includes autocommand, which is LGPL (i.e. Category X)?

@parshimers parshimers removed the release/v1.2 back porting to release/v1.2 label Dec 2, 2026
@parshimers
parshimers enabled auto-merge December 2, 2026 18:00
@parshimers
parshimers added this pull request to the merge queue Dec 2, 2026
Merged via the queue into apache:main with commit f83ee3e Dec 2, 2026
47 of 58 checks passed
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Backport PR opened: draft #9836 (#9836) to release/v1.3, assigned to @mengw15 — needs manual work because the cherry-pick conflicts.

@mengw15

mengw15 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Yes, this is a real problem, but not a new one. setuptools vendors autocommand 2.2.2 (LGPL-3.0), and our computing-unit images have shipped setuptools all along (the Dockerfiles upgrade it, and torch requires it), so the 1.2 and 1.3.0 images have it too. pip-licenses 6.0.0 stopped hiding setuptools, so this PR just surfaced a hidden problem. What do you think is the best way to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix release/v1.3 back porting to release/v1.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants