Skip to content

Defer import error for packaging.licenses in environments with packaging<24.2#4898

Merged
abravalheri merged 6 commits intopypa:mainfrom
abravalheri:issue-4894
Mar 20, 2025
Merged

Defer import error for packaging.licenses in environments with packaging<24.2#4898
abravalheri merged 6 commits intopypa:mainfrom
abravalheri:issue-4894

Conversation

@abravalheri
Copy link
Contributor

Summary of changes

Motivated by a well-known limitation of the vendoring system.

Closes #4894

Pull Request Checklist

@abravalheri
Copy link
Contributor Author

pyright is giving me a hard time even with the pyright: ignore[reportAssignmentType] comment...
So I guess I can try if not TYPE_CHECKING?

https://github.com/pypa/setuptools/actions/runs/13969415143/job/39107281188?pr=4898

@abravalheri abravalheri marked this pull request as ready for review March 20, 2025 13:22
@abravalheri abravalheri merged commit 5fe9c32 into pypa:main Mar 20, 2025
24 checks passed
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.

[BUG] setuptools==77.0.1 fails to import if packaging<24.2 is installed

1 participant