diff --git a/.github/workflows/run-test.yaml b/.github/workflows/run-test.yaml index cddf78ba..d8da46d0 100644 --- a/.github/workflows/run-test.yaml +++ b/.github/workflows/run-test.yaml @@ -30,11 +30,11 @@ jobs: - "windows-latest" - "macos-latest" python-version: - - "3.7" - "3.8" - "3.9" - "3.10" - "3.11" + - "3.12" sqlalchemy: - sqla13 - sqla14 @@ -73,6 +73,7 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" fail-fast: false diff --git a/README.unittests.rst b/README.unittests.rst index b741d581..6e7dcd2c 100644 --- a/README.unittests.rst +++ b/README.unittests.rst @@ -23,20 +23,20 @@ Advanced Tox Options For more elaborate CI-style test running, the tox script provided will run against various Python / database targets. For a basic run against -Python 3.9 using an in-memory SQLite database:: +Python 3.11 using an in-memory SQLite database:: - tox -e py39-sqlite + tox -e py311-sqlite The tox runner contains a series of target combinations that can run against various combinations of databases. The test suite can be run against SQLite with "backend" tests also running against a PostgreSQL database:: - tox -e py39-sqlite-postgresql + tox -e py311-sqlite-postgresql Or to run just "backend" tests against a MySQL database:: - tox -e py39-mysql-backendonly + tox -e py311-mysql-backendonly Running against backends other than SQLite requires that a database of that vendor be available at a specific URL. See "Setting Up Databases" below @@ -131,7 +131,7 @@ with the tox runner also:: [db] postgresql=postgresql://username:pass@hostname/dbname -Now when we run ``tox -e py39-postgresql``, it will use our custom URL instead +Now when we run ``tox -e py311-postgresql``, it will use our custom URL instead of the fixed one in setup.cfg. Database Configuration diff --git a/alembic/__init__.py b/alembic/__init__.py index d0ecfc1a..01bdfdc5 100644 --- a/alembic/__init__.py +++ b/alembic/__init__.py @@ -1,6 +1,4 @@ -import sys - from . import context from . import op -__version__ = "1.12.2" +__version__ = "1.13.0" diff --git a/alembic/util/compat.py b/alembic/util/compat.py index 31e0208d..5b8f3d95 100644 --- a/alembic/util/compat.py +++ b/alembic/util/compat.py @@ -16,7 +16,6 @@ py311 = sys.version_info >= (3, 11) py310 = sys.version_info >= (3, 10) py39 = sys.version_info >= (3, 9) -py38 = sys.version_info >= (3, 8) # produce a wrapper that allows encoded text to stream diff --git a/docs/build/conf.py b/docs/build/conf.py index 658beb6b..e4d34785 100644 --- a/docs/build/conf.py +++ b/docs/build/conf.py @@ -259,8 +259,6 @@ # latex_use_modindex = True -# {'python': ('http://docs.python.org/3.2', None)} - autoclass_content = "both" intersphinx_mapping = { diff --git a/docs/build/front.rst b/docs/build/front.rst index 2dba5b95..28d40c74 100644 --- a/docs/build/front.rst +++ b/docs/build/front.rst @@ -79,11 +79,10 @@ SQLAlchemy as of version **1.3.0**. .. versionchanged:: 1.5.0 Support for SQLAlchemy older than 1.3.0 was dropped. -Alembic supports Python versions **3.7 and above** +Alembic supports Python versions **3.8 and above** +.. versionchanged:: 1.13 Alembic now supports Python 3.8 and newer. .. versionchanged:: 1.8 Alembic now supports Python 3.7 and newer. -.. versionchanged:: 1.7 Alembic now supports Python 3.6 and newer; support - for Python 2.7 has been dropped. .. _versioning_scheme: diff --git a/docs/build/requirements.txt b/docs/build/requirements.txt index 6b2fd0e5..d042a565 100644 --- a/docs/build/requirements.txt +++ b/docs/build/requirements.txt @@ -4,6 +4,6 @@ git+https://github.com/sqlalchemy/sqlalchemy.git python-dateutil # because there's a dependency in pyfiles.py Mako -importlib-metadata;python_version<"3.8" +importlib-metadata;python_version<"3.9" importlib-resources;python_version<"3.9" sphinx_copybutton==0.5.1 diff --git a/docs/build/unreleased/1359.rst b/docs/build/unreleased/1359.rst new file mode 100644 index 00000000..7e5340d0 --- /dev/null +++ b/docs/build/unreleased/1359.rst @@ -0,0 +1,5 @@ +.. change:: + :tags: installation, changed + :tickets: 1359 + + Alembic 1.13 now supports Python 3.8 and above. diff --git a/setup.cfg b/setup.cfg index e3e67ea9..7453183c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,7 +20,6 @@ classifiers = Operating System :: OS Independent Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 @@ -38,7 +37,7 @@ project_urls = packages = find_namespace: include_package_data = true zip_safe = false -python_requires = >=3.7 +python_requires = >=3.8 install_requires = SQLAlchemy>=1.3.0