Skip to content

chore: remove pywin32 from expected missing license set#1091

Merged
kavmur merged 1 commit intoaws-deadline:mainlinefrom
kavmur:fix/pywin32-license-detection
Apr 6, 2026
Merged

chore: remove pywin32 from expected missing license set#1091
kavmur merged 1 commit intoaws-deadline:mainlinefrom
kavmur:fix/pywin32-license-detection

Conversation

@kavmur
Copy link
Copy Markdown
Contributor

@kavmur kavmur commented Apr 4, 2026

Summary

pip-licenses now correctly detects pywin32's license when packages are installed via uv. The _EXPECTED_MISSING_LICENSE set was originally added because older tooling couldn't find pywin32's license metadata. This is no longer the case.

Changes

  • Removed pywin32 from _EXPECTED_MISSING_LICENSE in the attributions script

Testing

This fixes the Windows installer build failure where the attributions generation was failing with:

RuntimeError: Expected pip-licenses to not find a license for pywin32 but one was found.

@kavmur kavmur requested a review from a team as a code owner April 4, 2026 02:31
@github-actions github-actions Bot added the waiting-on-maintainers Waiting on the maintainers to review. label Apr 4, 2026
@kavmur kavmur force-pushed the fix/pywin32-license-detection branch from 5bf5faf to f1c0cc4 Compare April 4, 2026 02:35
pip-licenses now correctly detects pywin32's license when packages are
installed via uv. The _EXPECTED_MISSING_LICENSE set was originally
added because older tooling couldn't find pywin32's license metadata.
This is no longer the case.

Signed-off-by: Kaviraj Murugesan <120754614+kavmur@users.noreply.github.com>
@kavmur kavmur force-pushed the fix/pywin32-license-detection branch from f1c0cc4 to efb102e Compare April 4, 2026 02:37
@kavmur kavmur changed the title fix: remove pywin32 from expected missing license set chore: remove pywin32 from expected missing license set Apr 4, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 4, 2026

@kavmur kavmur self-assigned this Apr 4, 2026
# Some packages specify their license but do not include it in the repository/package
# We attribute these manually using _ADDITIONAL_ATTRIBUTIONS
_EXPECTED_MISSING_LICENSE = {"pywin32"}
_EXPECTED_MISSING_LICENSE: set[str] = set()
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.

Not a blocker. If its empty set, can we delete this? 👀

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We could, but it's referenced in other places so I kept it as an empty set to minimize changes and preserve the mechanism for future use.

@kavmur kavmur merged commit 19e8b91 into aws-deadline:mainline Apr 6, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-on-maintainers Waiting on the maintainers to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants