Skip to content

Commit

Permalink
Dropped support for SQLAlchemy 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Feb 14, 2024
1 parent bebed21 commit 0df0e27
Show file tree
Hide file tree
Showing 14 changed files with 697 additions and 3,646 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
sqlalchemy-version: ["1.4", "2.0"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -22,12 +21,8 @@ jobs:
allow-prereleases: true
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies SQLAlchemy 1.4
if: matrix.sqlalchemy-version == 1.4
run: pip install -e .[test,sqlmodel] coveralls SQLAlchemy==1.4.*
- name: Install dependencies SQLAlchemy 2.0
if: matrix.sqlalchemy-version == 2.0
run: pip install -e .[test] coveralls SQLAlchemy==2.0.*
- name: Install dependencies
run: pip install -e .[test] coverage
- name: Test with pytest
run: coverage run -m pytest
- name: Upload Coverage
Expand Down
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Version history
**UNRELEASED**

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

**3.0.0rc3**
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ latest SQLAlchemy version).
Features
========

* Supports SQLAlchemy 1.4.x and 2
* Supports SQLAlchemy 2.x
* Produces declarative code that almost looks like it was hand written
* Produces `PEP 8`_ compliant code
* Accurately determines relationships, including many-to-many, one-to-one
Expand Down
9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ classifiers = [
]
requires-python = ">=3.8"
dependencies = [
"SQLAlchemy >= 1.4.36",
"SQLAlchemy >= 2.0.23",
"inflect >= 4.0.0",
"importlib_metadata; python_version < '3.10'",
]
Expand All @@ -46,9 +46,7 @@ test = [
"psycopg2-binary",
"mysql-connector-python",
]
sqlmodel = [
"sqlmodel",
]
sqlmodel = ["sqlmodel >= 0.0.12"]
citext = ["sqlalchemy-citext >= 1.7.0"]
geoalchemy2 = ["geoalchemy2 >= 0.11.1"]
pgvector = ["pgvector >= 0.2.4"]
Expand Down Expand Up @@ -79,7 +77,6 @@ src = ["src"]

[tool.mypy]
strict = true
plugins = ["sqlalchemy.ext.mypy.plugin"]

[tool.pytest.ini_options]
addopts = "-rsx --tb=short"
Expand All @@ -101,7 +98,5 @@ minversion = 4.0.0
[testenv]
extras = test
setenv =
SQLALCHEMY_WARN_20 = true
commands = python -m pytest {posargs}
"""
Loading

0 comments on commit 0df0e27

Please sign in to comment.