Skip to content

Commit

Permalink
Drop support for EOL Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 17, 2020
1 parent 7babecc commit d956eaa
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 335 deletions.
4 changes: 2 additions & 2 deletions NEWS
Expand Up @@ -4,7 +4,7 @@ Current release
What's new in psycopg 2.9
-------------------------

- Dropped support for Python 3.4, 3.5 (:tickets:#1000, #1197).
- Dropped support for Python 2.7, 3.4, 3.5 (:tickets:#1198, #1000, #1197).

What's new in psycopg 2.8.6
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -13,7 +13,7 @@ What's new in psycopg 2.8.6
(:ticket:`#1101`).
- Fixed search of mxDateTime headers in virtualenvs (:ticket:`#996`).
- Added missing values from errorcodes (:ticket:`#1133`).
- `cursor.query` reports the query of the last :sql:`COPY` opearation too
- `cursor.query` reports the query of the last :sql:`COPY` operation too
(:ticket:`#1141`).
- `~psycopg2.errorcodes` map and `~psycopg2.errors` classes updated to
PostgreSQL 13.
Expand Down
3 changes: 1 addition & 2 deletions doc/src/install.rst
Expand Up @@ -131,8 +131,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.6 to 3.9
- Python versions from 3.6 to 3.9
- PostgreSQL server versions from 7.4 to 13
- PostgreSQL client library version from 9.1

Expand Down
104 changes: 0 additions & 104 deletions lib/_lru_cache.py

This file was deleted.

4 changes: 1 addition & 3 deletions scripts/appveyor.py
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', '36', '37', '38', '39'), rv
assert rv in ('36', '37', '38', '39'), rv
return rv

@property
Expand Down Expand Up @@ -779,11 +779,9 @@ def vc_dir(self):
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.6--3.8 = VS Ver. 14.0 (VS 2015)
# Py 3.9 = VS Ver. 16.0 (VS 2019)
vsvers = {
'27': '9.0',
'36': '14.0',
'37': '14.0',
'38': '14.0',
Expand Down
224 changes: 0 additions & 224 deletions tests/test_async_keyword.py

This file was deleted.

0 comments on commit d956eaa

Please sign in to comment.