Skip to content

Commit e15c1a2

Browse files
authored
Merge pull request mjs#258 from mlorant/master
Drop support of Python 2.6 and 3.3
2 parents 580792f + c195ef2 commit e15c1a2

File tree

8 files changed

+17
-68
lines changed

8 files changed

+17
-68
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ library.
55

66
========================= ========================================
77
Current version 1.0.2
8-
Supported Python versions 2.6, 2.7, 3.3, 3.4, 3.5 and 3.6
8+
Supported Python versions 2.7, 3.4, 3.5 and 3.6
99
License New BSD
1010
Project home http://imapclient.freshfoo.com/
1111
PyPI https://pypi.python.org/pypi/IMAPClient

doc/src/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ explains IMAP in detail. Other RFCs also apply to various extensions
2929
to the base protocol. These are referred to in the documentation below
3030
where relevant.
3131

32-
Python versions 2.6, 2.7, 3.3, 3.4, 3.5 and 3.6 are officially supported.
32+
Python versions 2.7, 3.4, 3.5 and 3.6 are officially supported.
3333

3434
A Simple Example
3535
----------------
@@ -309,7 +309,7 @@ The connected IMAPClient instance is available as the variable
309309

310310
IMAPClient instance is "c"
311311
In [1]: c.select_folder('inbox')
312-
Out[1]:
312+
Out[1]:
313313
{b'EXISTS': 2,
314314
b'FLAGS': (b'\\Answered',
315315
b'\\Flagged',

doc/src/releases.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@ Changed
1212

1313
Other
1414
-----
15-
* Drop support of OAUTH(1)
15+
- Drop support of OAUTH(1)
16+
17+
18+
Python compatibility
19+
--------------------
20+
This version supports Python 2.7 serie and Python 3.4, 3.5 and 3.6.
21+
22+
Support for Python 2.6 and 3.3 is removed. We officially support the
23+
latest release of each series.
24+
1625

1726
===============
1827
Version 1.1.0

ez_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def _parse_args():
347347
parser = optparse.OptionParser()
348348
parser.add_option(
349349
'--user', dest='user_install', action='store_true', default=False,
350-
help='install in user site package (requires Python 2.6 or later)')
350+
help='install in user site package')
351351
parser.add_option(
352352
'--download-base', dest='download_base', metavar="URL",
353353
default=DEFAULT_URL,

imapclient/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,3 @@
1111
from .response_parser import *
1212
from .tls import *
1313
from .version import author as __author__, version as __version__, version_info
14-
15-
from .imaplib_ssl_fix import apply_patch
16-
apply_patch()

imapclient/imaplib_ssl_fix.py

Lines changed: 0 additions & 54 deletions
This file was deleted.

setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
MAJ_MIN_MIC = sys.version_info[:3]
1818
IS_PY3 = MAJ_MIN_MIC >= (3, 0, 0)
19-
IS_PY_26_OR_OLDER = MAJ_MIN_MIC < (2, 7, 0)
2019
IS_PY_278_OR_OLDER = MAJ_MIN_MIC <= (2, 7, 8)
2120
IS_PY_33_OR_OLDER = MAJ_MIN_MIC < (3, 4, 0)
2221
IS_PY_34_OR_NEWER = MAJ_MIN_MIC >= (3, 4, 0)
@@ -42,7 +41,7 @@
4241
* Convenience methods are provided for commonly used functionality.
4342
* Exceptions are raised when errors occur.
4443
45-
Python versions 2.6, 2.7, 3.3, 3.4, 3.5 and 3.6 are officially supported.
44+
Python versions 2.7, 3.4, 3.5 and 3.6 are officially supported.
4645
4746
IMAPClient includes comprehensive units tests and automated
4847
functional tests that can be run against a live IMAP server.
@@ -62,7 +61,7 @@ def finalize_options(self):
6261
def run_tests(self):
6362
from imapclient.test.util import unittest # this will import unittest2
6463
module = "__main__"
65-
if IS_PY_26_OR_OLDER or IS_PY_34_OR_NEWER:
64+
if IS_PY_34_OR_NEWER:
6665
module = None
6766
unittest.main(argv=['', 'discover'], module=module)
6867

@@ -78,8 +77,6 @@ def run_tests(self):
7877
setup_deps = common_deps + ['sphinx']
7978

8079
test_deps = ['mock>=1.3.0']
81-
if IS_PY_26_OR_OLDER:
82-
test_deps.append('unittest2')
8380

8481
setup(name='IMAPClient',
8582
description="Easy-to-use, Pythonic and complete IMAP client library",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist=py26,py27,py33,py34,py35,py36
2+
envlist=py27,py34,py35,py36
33

44
# The tests are currently run directly out of the source tree.
55
# See the notes in build-sdist for more details.

0 commit comments

Comments
 (0)