Skip to content

Commit fbe12a3

Browse files
fix!: Drop support for SQLAlchemy 1.4 (#1916)
1 parent 04dd773 commit fbe12a3

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ env:
3737

3838
jobs:
3939
tests:
40-
name: "Test on ${{ matrix.python-version }} (${{ matrix.session }}) / ${{ matrix.os }} / SQLAlchemy: ${{ matrix.sqlalchemy }}"
40+
name: "Test on ${{ matrix.python-version }} (${{ matrix.session }}) / ${{ matrix.os }}"
4141
runs-on: ${{ matrix.os }}
4242
continue-on-error: true
4343
env:
@@ -49,11 +49,9 @@ jobs:
4949
session: [tests]
5050
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
5151
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
52-
sqlalchemy: ["2"]
5352
include:
54-
- { session: tests, python-version: "3.12", os: "ubuntu-latest", sqlalchemy: "1" }
55-
- { session: doctest, python-version: "3.12", os: "ubuntu-latest", sqlalchemy: "2" }
56-
- { session: mypy, python-version: "3.12", os: "ubuntu-latest", sqlalchemy: "2" }
53+
- { session: doctest, python-version: "3.12", os: "ubuntu-latest" }
54+
- { session: mypy, python-version: "3.12", os: "ubuntu-latest" }
5755

5856
steps:
5957
- uses: actions/checkout@v4
@@ -93,8 +91,6 @@ jobs:
9391
nox --version
9492
9593
- name: Run Nox
96-
env:
97-
SQLALCHEMY_VERSION: ${{ matrix.sqlalchemy }}
9894
run: |
9995
nox --verbose
10096

noxfile.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,6 @@ def tests(session: Session) -> None:
8383
session.install(".[faker,parquet,s3]")
8484
session.install(*test_dependencies)
8585

86-
sqlalchemy_version = os.environ.get("SQLALCHEMY_VERSION")
87-
if sqlalchemy_version:
88-
# Bypass nox-poetry use of --constraint so we can install a version of
89-
# SQLAlchemy that doesn't match what's in poetry.lock.
90-
session.poetry.session.install( # type: ignore[attr-defined]
91-
f"sqlalchemy=={sqlalchemy_version}.*",
92-
)
93-
9486
env = {"COVERAGE_CORE": "sysmon"} if session.python == "3.12" else {}
9587

9688
try:

tests/conftest.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import typing as t
99

1010
import pytest
11-
import sqlalchemy as sa
1211

1312
from singer_sdk import SQLConnector
1413
from singer_sdk import typing as th
@@ -44,11 +43,6 @@ def pytest_runtest_setup(item):
4443
pytest.skip(f"cannot run on platform {system}")
4544

4645

47-
def pytest_report_header() -> list[str]:
48-
"""Return a list of strings to be displayed in the header of the report."""
49-
return [f"sqlalchemy: {sa.__version__}"]
50-
51-
5246
@pytest.fixture(scope="class")
5347
def outdir() -> t.Generator[str, None, None]:
5448
"""Create a temporary directory for target output."""

0 commit comments

Comments
 (0)