diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index 45f114322015b..7a31c457e8b52 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -50,7 +50,7 @@ dependencies: - pyxlsb>=1.0.10 - s3fs>=2022.11.0 - scipy>=1.10.0 - - sqlalchemy>=2.0.0 + - sqlalchemy>=1.4.46 - tabulate>=0.9.0 - xarray>=2022.12.0 - xlrd>=2.0.1 diff --git a/ci/deps/actions-311-downstream_compat.yaml b/ci/deps/actions-311-downstream_compat.yaml index d6bf9ec7843de..2cf8af4979489 100644 --- a/ci/deps/actions-311-downstream_compat.yaml +++ b/ci/deps/actions-311-downstream_compat.yaml @@ -51,7 +51,7 @@ dependencies: - pyxlsb>=1.0.10 - s3fs>=2022.11.0 - scipy>=1.10.0 - - sqlalchemy>=2.0.0 + - sqlalchemy>=1.4.46 - tabulate>=0.9.0 - xarray>=2022.12.0 - xlrd>=2.0.1 diff --git a/ci/deps/actions-311.yaml b/ci/deps/actions-311.yaml index d14686696e669..07f479c772fe2 100644 --- a/ci/deps/actions-311.yaml +++ b/ci/deps/actions-311.yaml @@ -50,7 +50,7 @@ dependencies: - pyxlsb>=1.0.10 - s3fs>=2022.11.0 - scipy>=1.10.0 - - sqlalchemy>=2.0.0 + - sqlalchemy>=1.4.46 - tabulate>=0.9.0 - xarray>=2022.12.0 - xlrd>=2.0.1 diff --git a/ci/deps/actions-312.yaml b/ci/deps/actions-312.yaml index 86aaf24b4e15c..846c46cb90d9a 100644 --- a/ci/deps/actions-312.yaml +++ b/ci/deps/actions-312.yaml @@ -50,7 +50,7 @@ dependencies: - pyxlsb>=1.0.10 - s3fs>=2022.11.0 - scipy>=1.10.0 - - sqlalchemy>=2.0.0 + - sqlalchemy>=1.4.46 - tabulate>=0.9.0 - xarray>=2022.12.0 - xlrd>=2.0.1 diff --git a/ci/deps/actions-39-minimum_versions.yaml b/ci/deps/actions-39-minimum_versions.yaml index 115ccf01ccaad..fb01b56ad0385 100644 --- a/ci/deps/actions-39-minimum_versions.yaml +++ b/ci/deps/actions-39-minimum_versions.yaml @@ -52,7 +52,7 @@ dependencies: - pyxlsb=1.0.10 - s3fs=2022.11.0 - scipy=1.10.0 - - sqlalchemy=2.0.0 + - sqlalchemy=1.4.46 - tabulate=0.9.0 - xarray=2022.12.0 - xlrd=2.0.1 diff --git a/ci/deps/actions-39.yaml b/ci/deps/actions-39.yaml index 31ee74174cd46..a23d3a4c4c617 100644 --- a/ci/deps/actions-39.yaml +++ b/ci/deps/actions-39.yaml @@ -50,7 +50,7 @@ dependencies: - pyxlsb>=1.0.10 - s3fs>=2022.11.0 - scipy>=1.10.0 - - sqlalchemy>=2.0.0 + - sqlalchemy>=1.4.46 - tabulate>=0.9.0 - xarray>=2022.12.0 - xlrd>=2.0.1 diff --git a/ci/deps/circle-310-arm64.yaml b/ci/deps/circle-310-arm64.yaml index a19ffd485262d..06d82e959613d 100644 --- a/ci/deps/circle-310-arm64.yaml +++ b/ci/deps/circle-310-arm64.yaml @@ -50,7 +50,7 @@ dependencies: - pyxlsb>=1.0.10 - s3fs>=2022.11.0 - scipy>=1.10.0 - - sqlalchemy>=2.0.0 + - sqlalchemy>=1.4.46 - tabulate>=0.9.0 - xarray>=2022.12.0 - xlrd>=2.0.1 diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst index b54a220f74ca3..3636b19a2e03d 100644 --- a/doc/source/getting_started/install.rst +++ b/doc/source/getting_started/install.rst @@ -340,7 +340,7 @@ Traditional drivers are installable with ``pip install "pandas[postgresql, mysql ========================= ================== =============== ============================================================= Dependency Minimum Version pip extra Notes ========================= ================== =============== ============================================================= -SQLAlchemy 2.0.0 postgresql, SQL support for databases other than sqlite +SQLAlchemy 1.4.46 postgresql, SQL support for databases other than sqlite mysql, sql-other psycopg2 2.9.6 postgresql PostgreSQL engine for sqlalchemy diff --git a/doc/source/whatsnew/v2.2.1.rst b/doc/source/whatsnew/v2.2.1.rst index 93965ffed23d3..6383e5468d51e 100644 --- a/doc/source/whatsnew/v2.2.1.rst +++ b/doc/source/whatsnew/v2.2.1.rst @@ -29,7 +29,7 @@ Bug fixes Other ~~~~~ -- +- The minimum SQLAlchemy version has been lowered to ``1.4.46`` instead of ``2.0.0`` (:issue:`57049`) .. --------------------------------------------------------------------------- .. _whatsnew_221.contributors: diff --git a/environment.yml b/environment.yml index 58eb69ad1f070..9e05a7195d03b 100644 --- a/environment.yml +++ b/environment.yml @@ -52,7 +52,7 @@ dependencies: - pyxlsb>=1.0.10 - s3fs>=2022.11.0 - scipy>=1.10.0 - - sqlalchemy>=2.0.0 + - sqlalchemy>=1.4.46 - tabulate>=0.9.0 - xarray>=2022.12.0 - xlrd>=2.0.1 diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py index 0f63d3d3002c3..71b3676cbe2dd 100644 --- a/pandas/compat/_optional.py +++ b/pandas/compat/_optional.py @@ -47,7 +47,7 @@ "pyxlsb": "1.0.10", "s3fs": "2022.11.0", "scipy": "1.10.0", - "sqlalchemy": "2.0.0", + "sqlalchemy": "1.4.46", "tables": "3.8.0", "tabulate": "0.9.0", "xarray": "2022.12.0", diff --git a/pyproject.toml b/pyproject.toml index ffd3a7e1f1f33..85d23b4f0991e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,9 +75,9 @@ hdf5 = [# blosc only available on conda (https://github.com/Blosc/python-blosc/i #'blosc>=1.20.1', 'tables>=3.8.0'] spss = ['pyreadstat>=1.2.0'] -postgresql = ['SQLAlchemy>=2.0.0', 'psycopg2>=2.9.6', 'adbc-driver-postgresql>=0.8.0'] -mysql = ['SQLAlchemy>=2.0.0', 'pymysql>=1.0.2'] -sql-other = ['SQLAlchemy>=2.0.0', 'adbc-driver-postgresql>=0.8.0', 'adbc-driver-sqlite>=0.8.0'] +postgresql = ['SQLAlchemy>=1.4.46', 'psycopg2>=2.9.6', 'adbc-driver-postgresql>=0.8.0'] +mysql = ['SQLAlchemy>=1.4.46', 'pymysql>=1.0.2'] +sql-other = ['SQLAlchemy>=1.4.46', 'adbc-driver-postgresql>=0.8.0', 'adbc-driver-sqlite>=0.8.0'] html = ['beautifulsoup4>=4.11.2', 'html5lib>=1.1', 'lxml>=4.9.2'] xml = ['lxml>=4.9.2'] plot = ['matplotlib>=3.6.3'] @@ -117,7 +117,7 @@ all = ['adbc-driver-postgresql>=0.8.0', 'qtpy>=2.3.0', 'scipy>=1.10.0', 's3fs>=2022.11.0', - 'SQLAlchemy>=2.0.0', + 'SQLAlchemy>=1.4.46', 'tables>=3.8.0', 'tabulate>=0.9.0', 'xarray>=2022.12.0', diff --git a/requirements-dev.txt b/requirements-dev.txt index 5a63e59e1db88..98b0a264e9153 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -41,7 +41,7 @@ python-calamine>=0.1.7 pyxlsb>=1.0.10 s3fs>=2022.11.0 scipy>=1.10.0 -SQLAlchemy>=2.0.0 +SQLAlchemy>=1.4.46 tabulate>=0.9.0 xarray>=2022.12.0 xlrd>=2.0.1