Skip to content

Commit d0b5ce2

Browse files
zzzeekGerrit Code Review
authored andcommitted
Merge "Drop python 3.5 support"
2 parents 2827aa9 + 9b3812a commit d0b5ce2

12 files changed

Lines changed: 22 additions & 40 deletions

File tree

.github/workflows/create-wheels.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
- "macos-latest"
2525
python-version:
2626
- "2.7"
27-
- "3.5"
2827
- "3.6"
2928
- "3.7"
3029
- "3.8"
@@ -84,10 +83,9 @@ jobs:
8483
pip install -f dist --no-index sqlalchemy
8584
8685
- name: Check c extensions
87-
# on windows in python 2.7 and 3.5 the cextension fail to build.
86+
# on windows in python 2.7 the cextension fail to build.
8887
# for python 2.7 visual studio 9 is missing
89-
# for python 3.5 the linker has an error "cannot run 'rc.exe'"
90-
if: matrix.os != 'windows-latest' || ( matrix.python-version != '2.7' && matrix.python-version != '3.5' )
88+
if: matrix.os != 'windows-latest' || matrix.python-version != '2.7'
9189
run: |
9290
python -c 'from sqlalchemy import cprocessors, cresultproxy, cutils'
9391
@@ -146,7 +144,6 @@ jobs:
146144
# the versions are <python tag>-<abi tag> as specified in PEP 425.
147145
- cp27-cp27m
148146
- cp27-cp27mu
149-
- cp35-cp35m
150147
- cp36-cp36m
151148
- cp37-cp37m
152149
- cp38-cp38
@@ -296,7 +293,6 @@ jobs:
296293
- "ubuntu-latest"
297294
python-version:
298295
# the versions are <python tag>-<abi tag> as specified in PEP 425.
299-
- cp35-cp35m
300296
- cp36-cp36m
301297
- cp37-cp37m
302298
- cp38-cp38

.github/workflows/run-test.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
- "macos-latest"
3030
python-version:
3131
- "2.7"
32-
- "3.5"
3332
- "3.6"
3433
- "3.7"
3534
- "3.8"
@@ -48,13 +47,10 @@ jobs:
4847
pytest-args: "-k 'not test_autocommit_on and not test_turn_autocommit_off_via_default_iso_level and not test_autocommit_isolation_level'"
4948

5049
exclude:
51-
# c-extensions fail to build on windows for python 3.5 and 2.7
50+
# c-extensions fail to build on windows for python 2.7
5251
- os: "windows-latest"
5352
python-version: "2.7"
5453
build-type: "cext"
55-
- os: "windows-latest"
56-
python-version: "3.5"
57-
build-type: "cext"
5854
# linux and osx do not have x86 python
5955
- os: "ubuntu-latest"
6056
architecture: x86
@@ -95,7 +91,6 @@ jobs:
9591
strategy:
9692
matrix:
9793
python-version:
98-
- cp35-cp35m
9994
- cp36-cp36m
10095
- cp37-cp37m
10196
- cp38-cp38
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. change::
2+
:tags: change
3+
:tickets: 5634
4+
5+
Dropped support for python 3.5 that has reached EOL.
6+
SQLAlchemy 1.4 series requires python 2.7 or 3.6+.

doc/build/intro.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ Supported Platforms
7171
SQLAlchemy has been tested against the following platforms:
7272

7373
* cPython 2.7
74-
* cPython 3.5 and higher
74+
* cPython 3.6 and higher
7575
* `PyPy <http://pypy.org/>`_ 2.1 or greater
7676

7777
.. versionchanged:: 1.2
7878
Python 2.7 is now the minimum Python version supported.
7979

8080
.. versionchanged:: 1.4
81-
Within the Python 3 series, 3.5 is now the minimum Python 3 version supported.
81+
Within the Python 3 series, 3.6 is now the minimum Python 3 version supported.
8282

8383
Supported Installation Methods
8484
-------------------------------

lib/sqlalchemy/dialects/postgresql/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
from .ranges import TSTZRANGE
6060
from ...util import compat
6161

62-
if compat.py36:
62+
if compat.py3k:
6363
from . import asyncpg # noqa
6464

6565
base.dialect = dialect = psycopg2.dialect

lib/sqlalchemy/testing/util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from ..util import has_refcount_gc
1818
from ..util import inspect_getfullargspec
1919
from ..util import py2k
20-
from ..util import py36
2120

2221
if not has_refcount_gc:
2322

@@ -54,7 +53,7 @@ def picklers():
5453
yield pickle_.loads, lambda d: pickle_.dumps(d, protocol)
5554

5655

57-
if py2k or not py36:
56+
if py2k:
5857

5958
def random_choices(population, k=1):
6059
pop = list(population)

lib/sqlalchemy/util/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
from .compat import pickle # noqa
7373
from .compat import print_ # noqa
7474
from .compat import py2k # noqa
75-
from .compat import py36 # noqa
7675
from .compat import py37 # noqa
7776
from .compat import py3k # noqa
7877
from .compat import pypy # noqa

lib/sqlalchemy/util/compat.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
py38 = sys.version_info >= (3, 8)
1919
py37 = sys.version_info >= (3, 7)
20-
py36 = sys.version_info >= (3, 6)
2120
py3k = sys.version_info >= (3, 0)
2221
py2k = sys.version_info < (3, 0)
2322
pypy = platform.python_implementation() == "PyPy"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[tool.black]
22
line-length = 79
3-
target-version = ['py27', 'py35']
3+
target-version = ['py27', 'py36']

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ classifiers =
2121
Programming Language :: Python :: 2
2222
Programming Language :: Python :: 2.7
2323
Programming Language :: Python :: 3
24-
Programming Language :: Python :: 3.5
2524
Programming Language :: Python :: 3.6
2625
Programming Language :: Python :: 3.7
2726
Programming Language :: Python :: 3.8
@@ -35,7 +34,7 @@ project_urls =
3534

3635
[options]
3736
packages = find:
38-
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
37+
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
3938
package_dir =
4039
=lib
4140
install_requires =

0 commit comments

Comments
 (0)