diff options
| author | Jakub Stasiak <jakub@stasiak.at> | 2020-11-04 11:02:16 +0100 |
|---|---|---|
| committer | Jakub Stasiak <jakub@stasiak.at> | 2020-11-04 11:02:16 +0100 |
| commit | b0efbee33c321ceaf1202a6c4f2e65d3c1f989ae (patch) | |
| tree | fc1858a5961339a3963834ce2e76db18599be43d | |
| parent | 087ba743c7af8a40ac1e4e2ec89409eee3b4233e (diff) | |
| download | eventlet-deprecate-python-27-34.tar.gz | |
Deprecate CPython 2.7 and 3.4 supportdeprecate-python-27-34
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.
| -rw-r--r-- | README.rst | 4 | ||||
| -rw-r--r-- | doc/index.rst | 6 | ||||
| -rw-r--r-- | doc/real_index.html | 2 | ||||
| -rw-r--r-- | eventlet/__init__.py | 7 |
4 files changed, 19 insertions, 0 deletions
@@ -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 608c29b..76455cc 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 fe1b656..453714d 100644 --- a/doc/real_index.html +++ b/doc/real_index.html @@ -39,6 +39,8 @@ <p>License: <a class="reference external" target="_blank" href="https://opensource.org/licenses/MIT">MIT</a></p> +<p>Currently CPython 2.7 and 3.4+ are supported, but <strong>2.7 and 3.4 support is deprecated and will be removed in the future</strong>, only CPython 3.5+ support will remain.</p> + <h3><a href="doc/">API Documentation</a></h3> diff --git a/eventlet/__init__.py b/eventlet/__init__.py index b33415e..3b94a52 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)) |
