Skip to content

Commit

Permalink
Drop support for EOL Python 3.5 (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Nov 17, 2020
1 parent 490c53b commit 694a20f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 15 deletions.
2 changes: 0 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}

Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 9,6 @@ arch:
- arm64

python:
- 3.5
- 3.6
- 3.7
- 3.8
Expand Down
6 changes: 3 additions & 3 deletions NEWS
Original file line number Diff line number Diff line change
@@ -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
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion doc/src/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions psycopg/python.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <structmember.h>
Expand Down
5 changes: 2 additions & 3 deletions scripts/appveyor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -780,11 780,10 @@ def vs_ver(self):
# 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',
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 61,6 @@
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
Expand Down Expand Up @@ -599,7 598,7 @@ def is_py_64():
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],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 1,5 @@
[tox]
envlist = py{27,35,36,37,38}
envlist = py{27,36,37,38,39}

[testenv]
commands = make check
Expand Down

0 comments on commit 694a20f

Please sign in to comment.