]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Alembic 1.13 now supports Python 3.8 and above
authorFederico Caselli <cfederico87@gmail.com>
Thu, 16 Nov 2023 19:51:15 +0000 (20:51 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Fri, 17 Nov 2023 22:51:53 +0000 (23:51 +0100)
Fixes: #1359
Change-Id: I93d4f4e4b326acb1430749e7cd3a53577c40f349

.github/workflows/run-on-pr.yaml
.github/workflows/run-test.yaml
README.unittests.rst
alembic/__init__.py
alembic/util/compat.py
docs/build/conf.py
docs/build/front.rst
docs/build/requirements.txt
docs/build/unreleased/1359.rst [new file with mode: 0644]
setup.cfg

index f3a4691ec5ec31ce532aa4e0c0e5eca81f78d10d..ca6641e9429664fad0714d6aba5030c9c9bee989 100644 (file)
@@ -36,10 +36,10 @@ jobs:
     # steps to run in each job. Some are github actions, others run shell commands
     steps:
       - name: Checkout repo
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
 
       - name: Set up python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.python-version }}
           architecture: ${{ matrix.architecture }}
@@ -67,10 +67,10 @@ jobs:
 
     steps:
       - name: Checkout repo
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
 
       - name: Set up python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.python-version }}
           architecture: ${{ matrix.architecture }}
index cddf78ba74f3ed66848995e3a67fc26923d0abae..10d313e581be0e3f9126fe13a395b3495f846ce0 100644 (file)
@@ -30,25 +30,29 @@ jobs:
           - "windows-latest"
           - "macos-latest"
         python-version:
-          - "3.7"
           - "3.8"
           - "3.9"
           - "3.10"
           - "3.11"
+          - "3.12"
         sqlalchemy:
           - sqla13
           - sqla14
           - sqlamain
+        exclude:
+          # sqla13 does not seem to support 3.12
+          - sqlalchemy: sqla13
+            python-version: "3.12"
 
       fail-fast: false
 
     # steps to run in each job. Some are github actions, others run shell commands
     steps:
       - name: Checkout repo
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
 
       - name: Set up python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.python-version }}
           architecture: ${{ matrix.architecture }}
@@ -73,15 +77,16 @@ jobs:
           - "3.9"
           - "3.10"
           - "3.11"
+          - "3.12"
 
       fail-fast: false
 
     steps:
       - name: Checkout repo
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
 
       - name: Set up python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.python-version }}
           architecture: ${{ matrix.architecture }}
index b741d581951294b3fdca6bdb1e3fcfa6c16ca793..6e7dcd2ca53c0a7dfc9719f948bb5d36b9971411 100644 (file)
@@ -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
index d0ecfc1aaed709e5b82c960df5549fbdefc2da78..01bdfdc599b140767499ba406884069f3b992bc2 100644 (file)
@@ -1,6 +1,4 @@
-import sys
-
 from . import context
 from . import op
 
-__version__ = "1.12.2"
+__version__ = "1.13.0"
index 31e0208d764373b52baa4d4e8f1013839f917274..5b8f3d952fa05263f1b726ac915c469eb98a26aa 100644 (file)
@@ -16,7 +16,6 @@ is_posix = os.name == "posix"
 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
index 658beb6b55d967d1b511395bd71b05512ac91d09..e4d34785f0ee2749d952c9ac8250fe1b825dd243 100644 (file)
@@ -259,8 +259,6 @@ latex_documents = [
 # latex_use_modindex = True
 
 
-# {'python': ('http://docs.python.org/3.2', None)}
-
 autoclass_content = "both"
 
 intersphinx_mapping = {
index 2dba5b9549c402cf4031008f1a331f855a2ca2ef..4f1bbe2e13ee2566d053e25a6cff338a7df4b5c7 100644 (file)
@@ -79,11 +79,9 @@ 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.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.
+.. versionchanged::  1.13  Alembic now supports Python 3.8 and newer.
 
 .. _versioning_scheme:
 
index 6b2fd0e51a9a7a49d17619ce513d4b50c24e6710..d042a565be699e69b8f4b4f32405a466e6fd2743 100644 (file)
@@ -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 (file)
index 0000000..7e5340d
--- /dev/null
@@ -0,0 +1,5 @@
+.. change::
+    :tags: installation, changed
+    :tickets: 1359
+
+    Alembic 1.13 now supports Python 3.8 and above.
index e3e67ea971c014f476be3f78f72eae86e82f5198..7453183c6e15cd0e84cac80313d95c8d166f320d 100644 (file)
--- 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