Repository navigation
fix: pin setuptools <81 to prevent pkg_resources removal - #36104
Conversation
Code Review Agent Run #63fd84Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #36104 +/- ##
===========================================
+ Coverage 0 68.37% +68.37%
===========================================
Files 0 631 +631
Lines 0 45988 +45988
Branches 0 4987 +4987
===========================================
+ Hits 0 31446 +31446
- Misses 0 13295 +13295
- Partials 0 1247 +1247
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Pin setuptools to version <81 to prevent breaking changes when pkg_resources is removed. The pkg_resources API is deprecated and scheduled for removal in setuptools 81+ (around 2025-11-30). While Superset's codebase has already migrated to importlib.metadata, some production dependencies (notably Preset's 'clients' package) still use pkg_resources. This pin provides time for all dependencies to migrate. BREAKING CHANGE PREVENTION: - Prevents runtime errors from pkg_resources removal - Maintains compatibility with existing production deployments - Allows gradual migration of dependent packages WHAT'S INCLUDED: - Added setuptools<81 constraint in requirements/base.in - Regenerated base.txt and development.txt with minimal changes - Created migration guide at docs/docs/contributing/pkg-resources-migration.md SUPERSET STATUS: - Superset codebase already uses importlib.metadata (superset/db_engine_specs/__init__.py:36) - No changes needed to Superset code itself - Only preventing breakage from third-party dependencies MIGRATION PATH: See docs/docs/contributing/pkg-resources-migration.md for: - Timeline and affected packages - Migration examples (pkg_resources → importlib.metadata) - Action items for dependency updates
(cherry picked from commit 519990e)
(cherry picked from commit 519990e)
(cherry picked from commit 519990e)
(cherry picked from commit 519990e)
(cherry picked from commit 519990e)
SUMMARY
Pin setuptools to version <81 to prevent breaking changes when pkg_resources is removed. The pkg_resources API is deprecated and scheduled for removal in setuptools 81+ (around 2025-11-30).
Problem:
Solution:
Status:
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A - Backend dependency management only
TESTING INSTRUCTIONS
Verify setuptools version constraint:
Verify requirements regeneration:
uv pip compile requirements/base.in -o /tmp/test-base.txt diff requirements/base.txt /tmp/test-base.txt # Should show no meaningful differencesCheck that Superset uses modern API:
Review migration documentation:
ADDITIONAL INFORMATION
Timeline:
References: