From b0efbee33c321ceaf1202a6c4f2e65d3c1f989ae Mon Sep 17 00:00:00 2001 From: Jakub Stasiak Date: Wed, 4 Nov 2020 11:02:16 +0100 Subject: [PATCH] Deprecate CPython 2.7 and 3.4 support This will allow us to remove some code and better spend the available resources. Both 2.7 and 3.4 are EOL. Closes GH-623. --- README.rst | 4 ++++ doc/index.rst | 6 ++++++ doc/real_index.html | 2 ++ eventlet/__init__.py | 7 +++++++ 4 files changed, 19 insertions(+) diff --git a/README.rst b/README.rst index a859abcaf0..db5330351b 100644 --- a/README.rst +++ b/README.rst @@ -62,6 +62,10 @@ If you have a project that uses Eventlet with Twisted, your options are: Apologies for any inconvenience. +Supported Python versions +========================= + +Currently CPython 2.7 and 3.4+ are supported, but **2.7 and 3.4 support is deprecated and will be removed in the future**, only CPython 3.5+ support will remain. Flair ===== diff --git a/doc/index.rst b/doc/index.rst index 608c29b2f7..76455cc14a 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -21,6 +21,12 @@ Code talks! This is a simple web crawler that fetches a bunch of urls concurren for body in pool.imap(fetch, urls): print("got body", len(body)) +Supported Python versions +========================= + +Currently CPython 2.7 and 3.4+ are supported, but **2.7 and 3.4 support is deprecated and will be removed in the future**, only CPython 3.5+ support will remain. + + Contents ========= diff --git a/doc/real_index.html b/doc/real_index.html index fe1b65617d..453714d17f 100644 --- a/doc/real_index.html +++ b/doc/real_index.html @@ -39,6 +39,8 @@

Eventlet

License: MIT

+

Currently CPython 2.7 and 3.4+ are supported, but 2.7 and 3.4 support is deprecated and will be removed in the future, only CPython 3.5+ support will remain.

+

API Documentation

diff --git a/eventlet/__init__.py b/eventlet/__init__.py index b33415e027..3b94a52bce 100644 --- a/eventlet/__init__.py +++ b/eventlet/__init__.py @@ -1,5 +1,12 @@ import os +import sys +import warnings +if sys.version_info < (3, 5): + warnings.warn( + "Support for your Python version is deprecated and will be removed in the future", + DeprecationWarning, + ) version_info = (0, 29, 1) __version__ = '.'.join(map(str, version_info))