Skip to content

Commit ad595a5

Browse files
committed
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.
1 parent eb5c45a commit ad595a5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
os: [ubuntu-latest, macos-latest]
2323
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
2424
cratedb-version: ['5.1.2']
25-
sqla-version: ['1.3.24', '1.4.45', 'next']
25+
sqla-version: ['1.4.45', 'next']
2626
fail-fast: false
2727
env:
2828
CRATEDB_VERSION: ${{ matrix.cratedb-version }}

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ A Python client library for CrateDB_.
4646
This library:
4747

4848
- Implements the Python `DB API 2.0`_ specification
49-
- Includes support for SQLAlchemy_ (>= 1.3.0)
49+
- Includes support for SQLAlchemy_ >= 1.4.
5050

5151
Prerequisites
5252
=============

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def read(path):
6060
},
6161
install_requires=['urllib3>=1.9,<2'],
6262
extras_require=dict(
63-
sqlalchemy=['sqlalchemy>=1.0,<1.5',
63+
sqlalchemy=['sqlalchemy>=1.4,<2.1',
6464
'geojson>=2.5.0,<3',
6565
'backports.zoneinfo<1; python_version<"3.9"'],
6666
test=['tox>=3,<4',

0 commit comments

Comments
 (0)