Skip to content

Drop support for SQLAlchemy 1.4 #1851

Description

@zzzeek

Alembic 1.20.0 will drop support for SQLAlchemy 1.4, making SQLAlchemy 2.0 the minimum required version.

SQLAlchemy 1.4's final release series is well past its maintenance window, and 1.4 has no support for Python 3.13 and above, meaning the 1.4 leg of Alembic's test matrix can only run on progressively older interpreters. Removing it allows the numerous version-conditional code paths in alembic.util.sqla_compat and elsewhere to be collapsed onto the 2.0 API.

Scope:

  • SQLAlchemy>=2.0 in project dependencies
  • remove the sqla_14_18 / sqla_14_26 / sqla_2 compatibility flags and the code branches they guard
  • remove the sqla14 legs from the nox and GitHub Actions test matrices
  • documentation and changelog updates

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions