From a8b5d68a0bc298543d9493b23bdcce571d448d63 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Wed, 21 Dec 2022 02:35:49 +0100 Subject: [PATCH] SA20: Adjust compatible SQLAlchemy versions: >=1.4,<2.1 The code, now ready for SQLAlchemy 2.x, will not be compatible with SQLAlchemy 1.3 any longer. The reason is that `sqlalchemy.orm.declarative_base` did not exist back then. --- .github/workflows/tests.yml | 2 +- README.rst | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 67bddeab..fd017760 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,7 +22,7 @@ jobs: os: [ubuntu-latest, macos-latest] python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] cratedb-version: ['5.1.2'] - sqla-version: ['1.3.24', '1.4.45', 'next'] + sqla-version: ['1.4.45', 'next'] fail-fast: false env: CRATEDB_VERSION: ${{ matrix.cratedb-version }} diff --git a/README.rst b/README.rst index c2b7ccba..c1bd1c5a 100644 --- a/README.rst +++ b/README.rst @@ -46,7 +46,7 @@ A Python client library for CrateDB_. This library: - Implements the Python `DB API 2.0`_ specification -- Includes support for SQLAlchemy_ (>= 1.3.0) +- Includes support for SQLAlchemy_ >= 1.4. Prerequisites ============= diff --git a/setup.py b/setup.py index 7070977a..26dbc82e 100644 --- a/setup.py +++ b/setup.py @@ -60,7 +60,7 @@ def read(path): }, install_requires=['urllib3>=1.9,<2'], extras_require=dict( - sqlalchemy=['sqlalchemy>=1.0,<1.5', + sqlalchemy=['sqlalchemy>=1.4,<2.1', 'geojson>=2.5.0,<3', 'backports.zoneinfo<1; python_version<"3.9"'], test=['tox>=3,<4',