-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: sqlalchemy dependencies #12760
base: main
Are you sure you want to change the base?
fix: sqlalchemy dependencies #12760
Conversation
SQLAlchemy v2.0.24 fails with Python 3.13 with error: ``` AssertionError: Class <class 'sqlalchemy.sql.elements.SQLCoreOperations'> directly inherits TypingOnly but has additional attributes {'__static_attributes__'}. ``` [see bug GoogleCloudPlatform#11334](sqlalchemy/sqlalchemy#11334) Bumping version of SQLAlchemy and fixing Python to version 3.13 to avoid such problems in the future.
@wiktorn wouldn't MySQL and SQL Server folders also benefit from this change? MySQL: https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/cloud-sql/mysql/sqlalchemy |
@jackwotherspoon Actually, both MySQL and SQL Server pinned python:3.11 (though different flavors). I aligned Dockerfiles and requirements.txt across these three. |
Description
SQLAlchemy v2.0.24 fails with Python 3.13 with error:
see bug #11334
Bumping version of SQLAlchemy and fixing Python to version 3.13 to avoid such problems in the future.
Checklist
nox -s py-3.9
(see Test Environment Setup)nox -s lint
(see Test Environment Setup)