From cdad3802baed638b2b1d7ca19bb1be80f213e02d Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 30 Aug 2019 13:51:44 -0400 Subject: [PATCH] Drop python 3.4 support mysqlclient is no longer working in Python 3.4, and as pip is also emitting warnings for dropped support, in order to maintain CI we need to drop Python 3.4. Also include 3.7, 3.8 in classifiers. Change-Id: I6fb2514934b6133d2a484621a0d7003b424c66f4 --- alembic/util/compat.py | 3 +-- docs/build/front.rst | 4 +++- docs/build/unreleased/drop_py34.rst | 6 ++++++ setup.py | 3 ++- 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 docs/build/unreleased/drop_py34.rst diff --git a/alembic/util/compat.py b/alembic/util/compat.py index a08b1017..78a93fe9 100644 --- a/alembic/util/compat.py +++ b/alembic/util/compat.py @@ -6,7 +6,6 @@ import sys py27 = sys.version_info >= (2, 7) py2k = sys.version_info.major < 3 py3k = sys.version_info.major >= 3 -py33 = sys.version_info >= (3, 3) py35 = sys.version_info >= (3, 5) py36 = sys.version_info >= (3, 6) @@ -84,7 +83,7 @@ else: range = xrange # noqa -if py33: +if py3k: import collections.abc as collections_abc else: import collections as collections_abc # noqa diff --git a/docs/build/front.rst b/docs/build/front.rst index fdc536fc..d288472f 100644 --- a/docs/build/front.rst +++ b/docs/build/front.rst @@ -40,10 +40,12 @@ newer versions such as the 1.1 or 1.2 series. .. versionchanged:: 1.0.0 Support for SQLAlchemy 0.8 and 0.7.9 was dropped. -Alembic supports Python versions 2.7, 3.4 and above. +Alembic supports Python versions 2.7, 3.5 and above. .. versionchanged:: 1.0.0 Support for Python 2.6 and 3.3 was dropped. +.. versionchanged:: 1.1.1 Support for Python 3.4 was dropped. + Community ========= diff --git a/docs/build/unreleased/drop_py34.rst b/docs/build/unreleased/drop_py34.rst new file mode 100644 index 00000000..5ba5c8cc --- /dev/null +++ b/docs/build/unreleased/drop_py34.rst @@ -0,0 +1,6 @@ +.. change:: + :tags: change: py3k + + Python 3.4 support is dropped, as the upstream tooling (pip, mysqlclient) + etc are already dropping support for Python 3.4, which itself is no longer + maintained. diff --git a/setup.py b/setup.py index 9574ac69..52c764ec 100644 --- a/setup.py +++ b/setup.py @@ -56,9 +56,10 @@ setup( "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Database :: Front-Ends", -- 2.47.2