From 694a20fb9518676223b987a62965ccc13213d2e3 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Tue, 17 Nov 2020 22:17:12 +0200 Subject: [PATCH] Drop support for EOL Python 3.5 (#1197) --- .appveyor.yml | 2 -- .travis.yml | 1 - NEWS | 6 +++--- doc/src/install.rst | 2 +- psycopg/python.h | 4 ++-- scripts/appveyor.py | 5 ++--- setup.py | 3 +-- tox.ini | 2 +- 8 files changed, 10 insertions(+), 15 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 4e14e120..0a1603b0 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -19,8 +19,6 @@ environment: - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "37", PY_ARCH: "64"} - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "36", PY_ARCH: "32"} - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "36", PY_ARCH: "64"} - - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "35", PY_ARCH: "32"} - - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "35", PY_ARCH: "64"} - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "27", PY_ARCH: "32"} - {APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015, PY_VER: "27", PY_ARCH: "64"} diff --git a/.travis.yml b/.travis.yml index 56355c24..84dd6059 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,6 @@ arch: - arm64 python: - - 3.5 - 3.6 - 3.7 - 3.8 diff --git a/NEWS b/NEWS index a05882c4..46a393d5 100644 --- a/NEWS +++ b/NEWS @@ -1,10 +1,10 @@ Current release --------------- -What's new in psycopg 2.9.0 -^^^^^^^^^^^^^^^^^^^^^^^^^^^ +What's new in psycopg 2.9 +------------------------- -- Dropped support for Python 3.4 (:ticket:`#1000`). +- Dropped support for Python 3.4, 3.5 (:tickets:#1000, #1197). What's new in psycopg 2.8.6 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/doc/src/install.rst b/doc/src/install.rst index 169c2b65..b5a43980 100644 --- a/doc/src/install.rst +++ b/doc/src/install.rst @@ -132,7 +132,7 @@ The current `!psycopg2` implementation supports: NOTE: keep consistent with setup.py and the /features/ page. - Python version 2.7 -- Python 3 versions from 3.5 to 3.9 +- Python 3 versions from 3.6 to 3.9 - PostgreSQL server versions from 7.4 to 13 - PostgreSQL client library version from 9.1 diff --git a/psycopg/python.h b/psycopg/python.h index 1d3c2096..c142de40 100644 --- a/psycopg/python.h +++ b/psycopg/python.h @@ -34,8 +34,8 @@ #error "psycopg requires Python 2.7" #endif -#if PY_3 && PY_VERSION_HEX < 0x03050000 -#error "psycopg requires Python 3.5" +#if PY_3 && PY_VERSION_HEX < 0x03060000 +#error "psycopg requires Python 3.6" #endif #include diff --git a/scripts/appveyor.py b/scripts/appveyor.py index ab905710..0ebccada 100755 --- a/scripts/appveyor.py +++ b/scripts/appveyor.py @@ -696,7 +696,7 @@ class Options: def py_ver(self): """The Python version to build as 2 digits string.""" rv = os.environ['PY_VER'] - assert rv in ('27', '35', '36', '37', '38', '39'), rv + assert rv in ('27', '36', '37', '38', '39'), rv return rv @property @@ -780,11 +780,10 @@ class Options: # https://wiki.python.org/moin/WindowsCompilers # https://www.appveyor.com/docs/windows-images-software/#python # Py 2.7 = VS Ver. 9.0 (VS 2008) - # Py 3.5--3.8 = VS Ver. 14.0 (VS 2015) + # Py 3.6--3.8 = VS Ver. 14.0 (VS 2015) # Py 3.9 = VS Ver. 16.0 (VS 2019) vsvers = { '27': '9.0', - '35': '14.0', '36': '14.0', '37': '14.0', '38': '14.0', diff --git a/setup.py b/setup.py index 933fd622..a413f56f 100644 --- a/setup.py +++ b/setup.py @@ -61,7 +61,6 @@ Programming Language :: Python Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 -Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 @@ -599,7 +598,7 @@ setup(name="psycopg2", url="https://psycopg.org/", license="LGPL with exceptions", platforms=["any"], - python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*', + python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*', description=readme.split("\n")[0], long_description="\n".join(readme.split("\n")[2:]).lstrip(), classifiers=[x for x in classifiers.split("\n") if x], diff --git a/tox.ini b/tox.ini index 241c7a53..b8d7d6d4 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{27,35,36,37,38} +envlist = py{27,36,37,38,39} [testenv] commands = make check