Repository navigation
fix(build): eliminate PostgreSQL extra installation on Python 3.12-based Superset Docker images - #37587
Conversation
Code Review Agent Run #08e3ddActionable 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 |
|
To minimize blast radius, pinning the version with == instead of >= is safer. This keeps the dependency at a specific version to avoid potential issues with newer releases. pyproject.toml |
|
Bito Automatic Review Skipped – PR Already Merged |
…sed Superset Docker images (#37587)
…sed Superset Docker images (apache#37587)
…sed Superset Docker images (apache#37587)
fix(deps): update psycopg2-binary pin for Python 3.12 support
SUMMARY
The PostgreSQL optional dependency pins
psycopg2-binary==2.9.6, which does not provide pre-built wheels for Python 3.12. This causespip install "apache-superset[postgres]"to fail on the official Python 3.12 Docker image because pip falls back to a source build without available build tools.This change updates the pin to
psycopg2-binary>=2.9.9, the first release that includes Python 3.12 wheels, restoring successful installation without modifying Docker images or runtime behavior.TESTING INSTRUCTIONS
apache/superset:6.0.0-py312Docker image.pip install "apache-superset[postgres]".ADDITIONAL INFORMATION
Fixes #37126