diff --git a/.appveyor/packages.yml b/.appveyor/packages.yml index 4d4cb767..c43bf117 100644 --- a/.appveyor/packages.yml +++ b/.appveyor/packages.yml @@ -21,8 +21,6 @@ environment: - {PY_VER: "39", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019} - {PY_VER: "38", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015} - {PY_VER: "38", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015} - - {PY_VER: "37", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015} - - {PY_VER: "37", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015} WORKFLOW: packages diff --git a/.appveyor/tests.yml b/.appveyor/tests.yml index a904b758..728b7c87 100644 --- a/.appveyor/tests.yml +++ b/.appveyor/tests.yml @@ -16,8 +16,6 @@ environment: - {PY_VER: "39", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019} - {PY_VER: "38", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015} - {PY_VER: "38", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015} - - {PY_VER: "37", PY_ARCH: "32", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015} - - {PY_VER: "37", PY_ARCH: "64", APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015} WORKFLOW: tests diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0554d8b4..af7cef11 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,6 @@ jobs: fail-fast: false matrix: include: - - {python: "3.7", postgres: "10"} - {python: "3.8", postgres: "12"} - {python: "3.9", postgres: "13"} - {python: "3.10", postgres: "14"} @@ -22,7 +21,6 @@ jobs: - {python: "3.13-dev", postgres: "16"} # Opposite extremes of the supported Py/PG range, other architecture - - {python: "3.7", postgres: "16", architecture: "x86"} - {python: "3.8", postgres: "15", architecture: "x86"} - {python: "3.9", postgres: "14", architecture: "x86"} - {python: "3.10", postgres: "13", architecture: "x86"} diff --git a/NEWS b/NEWS index ce8c6aea..4940a91d 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ What's new in psycopg 2.9.10 (unreleased) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Add support for Python 3.13. +- Drop support for Python 3.7. What's new in psycopg 2.9.9 diff --git a/doc/src/install.rst b/doc/src/install.rst index 00d693a0..60354120 100644 --- a/doc/src/install.rst +++ b/doc/src/install.rst @@ -131,7 +131,7 @@ The current `!psycopg2` implementation supports: .. NOTE: keep consistent with setup.py and the /features/ page. -- Python versions from 3.7 to 3.12 +- Python versions from 3.8 to 3.12 - PostgreSQL server versions from 7.4 to 16 - PostgreSQL client library version from 9.1 diff --git a/psycopg/python.h b/psycopg/python.h index 37de2316..f8c2c0aa 100644 --- a/psycopg/python.h +++ b/psycopg/python.h @@ -27,8 +27,8 @@ #ifndef PSYCOPG_PYTHON_H #define PSYCOPG_PYTHON_H 1 -#if PY_VERSION_HEX < 0x03070000 -#error "psycopg requires Python 3.7" +#if PY_VERSION_HEX < 0x03080000 +#error "psycopg requires Python 3.8" #endif #include diff --git a/setup.py b/setup.py index f7a8caa5..be7af122 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,6 @@ Intended Audience :: Developers License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) 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 diff --git a/tox.ini b/tox.ini index ce450d3d..c46872dd 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = {3.7,3.8,3.9,3.10,3.11,3.12,3.13} +envlist = {3.8,3.9,3.10,3.11,3.12,3.13} [testenv] commands = make check