Skip to content

Commit 0df0e27

Browse files
committed
Dropped support for SQLAlchemy 1.x
1 parent bebed21 commit 0df0e27

14 files changed

+697
-3646
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
14-
sqlalchemy-version: ["1.4", "2.0"]
1514
runs-on: ubuntu-latest
1615
steps:
1716
- uses: actions/checkout@v4
@@ -22,12 +21,8 @@ jobs:
2221
allow-prereleases: true
2322
cache: pip
2423
cache-dependency-path: pyproject.toml
25-
- name: Install dependencies SQLAlchemy 1.4
26-
if: matrix.sqlalchemy-version == 1.4
27-
run: pip install -e .[test,sqlmodel] coveralls SQLAlchemy==1.4.*
28-
- name: Install dependencies SQLAlchemy 2.0
29-
if: matrix.sqlalchemy-version == 2.0
30-
run: pip install -e .[test] coveralls SQLAlchemy==2.0.*
24+
- name: Install dependencies
25+
run: pip install -e .[test] coverage
3126
- name: Test with pytest
3227
run: coverage run -m pytest
3328
- name: Upload Coverage

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Version history
44
**UNRELEASED**
55

66
- Dropped support for Python 3.7
7+
- Dropped support for SQLAlchemy 1.x
78
- Added support for the ``pgvector`` extension (with help from KellyRousselHoomano)
89

910
**3.0.0rc3**

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ latest SQLAlchemy version).
1818
Features
1919
========
2020

21-
* Supports SQLAlchemy 1.4.x and 2
21+
* Supports SQLAlchemy 2.x
2222
* Produces declarative code that almost looks like it was hand written
2323
* Produces `PEP 8`_ compliant code
2424
* Accurately determines relationships, including many-to-many, one-to-one

pyproject.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ classifiers = [
2929
]
3030
requires-python = ">=3.8"
3131
dependencies = [
32-
"SQLAlchemy >= 1.4.36",
32+
"SQLAlchemy >= 2.0.23",
3333
"inflect >= 4.0.0",
3434
"importlib_metadata; python_version < '3.10'",
3535
]
@@ -46,9 +46,7 @@ test = [
4646
"psycopg2-binary",
4747
"mysql-connector-python",
4848
]
49-
sqlmodel = [
50-
"sqlmodel",
51-
]
49+
sqlmodel = ["sqlmodel >= 0.0.12"]
5250
citext = ["sqlalchemy-citext >= 1.7.0"]
5351
geoalchemy2 = ["geoalchemy2 >= 0.11.1"]
5452
pgvector = ["pgvector >= 0.2.4"]
@@ -79,7 +77,6 @@ src = ["src"]
7977

8078
[tool.mypy]
8179
strict = true
82-
plugins = ["sqlalchemy.ext.mypy.plugin"]
8380

8481
[tool.pytest.ini_options]
8582
addopts = "-rsx --tb=short"
@@ -101,7 +98,5 @@ minversion = 4.0.0
10198
10299
[testenv]
103100
extras = test
104-
setenv =
105-
SQLALCHEMY_WARN_20 = true
106101
commands = python -m pytest {posargs}
107102
"""

0 commit comments

Comments
 (0)