diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c330be86cc..8c8014f7bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ env: jobs: tests: - name: "Test on ${{ matrix.python-version }} (${{ matrix.session }}) / ${{ matrix.os }} / SQLAlchemy: ${{ matrix.sqlalchemy }}" + name: "Test on ${{ matrix.python-version }} (${{ matrix.session }}) / ${{ matrix.os }}" runs-on: ${{ matrix.os }} env: NOXSESSION: ${{ matrix.session }} @@ -47,11 +47,9 @@ jobs: session: [tests] os: ["ubuntu-latest", "macos-latest", "windows-latest"] python-version: ["3.8", "3.9", "3.10", "3.11"] - sqlalchemy: ["2.*"] include: - - { session: tests, python-version: "3.11", os: "ubuntu-latest", sqlalchemy: "1.*" } - - { session: doctest, python-version: "3.10", os: "ubuntu-latest", sqlalchemy: "2.*" } - - { session: mypy, python-version: "3.8", os: "ubuntu-latest", sqlalchemy: "2.*" } + - { session: doctest, python-version: "3.10", os: "ubuntu-latest" } + - { session: mypy, python-version: "3.8", os: "ubuntu-latest" } steps: - name: Check out the repository @@ -88,8 +86,6 @@ jobs: nox --version - name: Run Nox - env: - SQLALCHEMY_VERSION: ${{ matrix.sqlalchemy }} run: | nox --python=${{ matrix.python-version }} diff --git a/noxfile.py b/noxfile.py index 3421eea52d..0df65e431b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -86,14 +86,6 @@ def tests(session: Session) -> None: session.install(".[s3]") session.install(*test_dependencies) - sqlalchemy_version = os.environ.get("SQLALCHEMY_VERSION") - if sqlalchemy_version: - # Bypass nox-poetry use of --constraint so we can install a version of - # SQLAlchemy that doesn't match what's in poetry.lock. - session.poetry.session.install( # type: ignore[attr-defined] - f"sqlalchemy=={sqlalchemy_version}", - ) - try: session.run( "coverage", diff --git a/poetry.lock b/poetry.lock index 2df0ea3590..bc78004b98 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2720,4 +2720,4 @@ testing = ["pytest", "pytest-durations"] [metadata] lock-version = "2.0" python-versions = "<4,>=3.8" -content-hash = "cd0f4ac9f0b12e6b2178ef578a3843ca24912e959c7ab485d15634f23d0eed05" +content-hash = "5185c3993ef094bd246d4e0f8e70fea26a7daa0ed2315f0ffdb964785ec62cc7" diff --git a/pyproject.toml b/pyproject.toml index 67327b8134..2785b2f2fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ memoization = ">=0.3.2,<0.5.0" jsonpath-ng = "^1.5.3" joblib = "^1.0.1" inflection = "^0.5.1" -sqlalchemy = ">=1.4,<3.0" +sqlalchemy = ">=2.0,<3.0" python-dotenv = ">=0.20,<0.22" typing-extensions = "^4.2.0" simplejson = "^3.17.6" diff --git a/tests/conftest.py b/tests/conftest.py index 7e7c39958f..a6d30cc377 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -8,7 +8,6 @@ import typing as t import pytest -from sqlalchemy import __version__ as sqlalchemy_version from singer_sdk import SQLConnector from singer_sdk import typing as th @@ -45,11 +44,6 @@ def pytest_runtest_setup(item): pytest.skip(f"cannot run on platform {system}") -def pytest_report_header() -> list[str]: - """Return a list of strings to be displayed in the header of the report.""" - return [f"sqlalchemy: {sqlalchemy_version}"] - - @pytest.fixture(scope="class") def outdir() -> t.Generator[str, None, None]: """Create a temporary directory for cookiecutters and target output."""