Skip to content

Commit 108bf10

Browse files
authored
Merge pull request #47 from launchdarkly/eb/ch15531/drop-python-2.6
drop Python 2.6 support
2 parents e3c1189 + d5d0a38 commit 108bf10

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,9 @@ Your first feature flag
3838
else:
3939
# the code to run if the feature is off
4040

41-
Python 2.6
41+
Supported Python versions
4242
----------
43-
Python 2.6 requires an extra dependency. Here's how to set it up:
44-
45-
1. Use the `python2.6` extra in your requirements.txt:
46-
`ldclient-py[python2.6]`
43+
The SDK is tested with the most recent patch releases of Python 2.7, 3.3, 3.4, 3.5, and 3.6. Python 2.6 is no longer supported.
4744

4845
Learn more
4946
-----------

ldclient/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import queue
2222
except:
2323
# noinspection PyUnresolvedReferences,PyPep8Naming
24-
import Queue as queue
24+
import Queue as queue # Python 3
2525

2626
from cachecontrol import CacheControl
2727
from threading import Lock

ldclient/expiringdict.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@
2323
import time
2424
from threading import RLock
2525

26-
try:
27-
from collections import OrderedDict
28-
except ImportError:
29-
# Python < 2.7
30-
from ordereddict import OrderedDict
26+
from collections import OrderedDict
3127

3228

3329
class ExpiringDict(OrderedDict):

python2.6-requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@
1212

1313
# parse_requirements() returns generator of pip.req.InstallRequirement objects
1414
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
15-
python26_reqs = parse_requirements('python2.6-requirements.txt', session=uuid.uuid1())
1615
test_reqs = parse_requirements('test-requirements.txt', session=uuid.uuid1())
1716
redis_reqs = parse_requirements('redis-requirements.txt', session=uuid.uuid1())
1817

1918
# reqs is a list of requirement
2019
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
2120
reqs = [str(ir.req) for ir in install_reqs]
22-
python26reqs = [str(ir.req) for ir in python26_reqs]
2321
testreqs = [str(ir.req) for ir in test_reqs]
2422
redisreqs = [str(ir.req) for ir in redis_reqs]
2523

@@ -54,17 +52,17 @@ def run(self):
5452
'License :: OSI Approved :: Apache Software License',
5553
'Operating System :: OS Independent',
5654
'Programming Language :: Python :: 2',
57-
'Programming Language :: Python :: 2.6',
5855
'Programming Language :: Python :: 2.7',
5956
'Programming Language :: Python :: 3',
6057
'Programming Language :: Python :: 3.3',
6158
'Programming Language :: Python :: 3.4',
59+
'Programming Language :: Python :: 3.5',
60+
'Programming Language :: Python :: 3.6',
6261
'Topic :: Software Development',
6362
'Topic :: Software Development :: Libraries',
6463
],
6564
extras_require={
66-
"redis": redisreqs,
67-
"python2.6": python26reqs
65+
"redis": redisreqs
6866
},
6967
tests_require=testreqs,
7068
cmdclass={'test': PyTest},

0 commit comments

Comments
 (0)