Skip to content

Commit

Permalink
Deprecate CPython 2.7 and 3.4 support
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jstasiak committed Nov 4, 2020
1 parent 087ba74 commit a745d62
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rst
Expand Up @@ -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
=====
Expand Down
6 changes: 6 additions & 0 deletions doc/index.rst
Expand Up @@ -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
=========

Expand Down
2 changes: 2 additions & 0 deletions doc/real_index.html
Expand Up @@ -39,6 +39,8 @@ <h1>Eventlet</h1>

<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>


Expand Down
7 changes: 7 additions & 0 deletions 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))
Expand Down

0 comments on commit a745d62

Please sign in to comment.