Skip to content

Commit aa2cd27

Browse files
committed
Drop support for Python 2.6
1 parent 3eb5de8 commit aa2cd27

File tree

5 files changed

+8
-17
lines changed

5 files changed

+8
-17
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jsonschema
1010
==========
1111

1212
``jsonschema`` is an implementation of `JSON Schema <http://json-schema.org>`_
13-
for Python (supporting 2.6+ including Python 3).
13+
for Python (supporting 2.7+ including Python 3).
1414

1515
.. code-block:: python
1616

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jsonschema
77

88

99
``jsonschema`` is an implementation of `JSON Schema <http://json-schema.org>`_
10-
for Python (supporting 2.6+ including Python 3).
10+
for Python (supporting 2.7+ including Python 3).
1111

1212
.. code-block:: python
1313

jsonschema/compat.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from collections.abc import MutableMapping, Sequence # noqa
99

1010
PY3 = sys.version_info[0] >= 3
11-
PY26 = sys.version_info[:2] == (2, 6)
1211

1312
if PY3:
1413
zip = zip
@@ -33,10 +32,7 @@
3332
int_types = int, long
3433
iteritems = operator.methodcaller("iteritems")
3534

36-
if PY26:
37-
from repoze.lru import lru_cache
38-
else:
39-
from functools32 import lru_cache
35+
from functools32 import lru_cache
4036

4137

4238
# On python < 3.3 fragments are not handled properly with unknown schemes

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"Operating System :: OS Independent",
1414
"Programming Language :: Python",
1515
"Programming Language :: Python :: 2",
16-
"Programming Language :: Python :: 2.6",
1716
"Programming Language :: Python :: 2.7",
1817
"Programming Language :: Python :: 3",
1918
"Programming Language :: Python :: 3.4",
@@ -23,7 +22,6 @@
2322

2423
extras_require = {
2524
"format" : ["rfc3987", "strict-rfc3339", "webcolors"],
26-
":python_version=='2.6'": ["argparse", "repoze.lru"],
2725
":python_version=='2.7'": ["functools32"],
2826
}
2927

tox.ini

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{26,27,34,py,py3}, docs, style
2+
envlist = py{27,34,py,py3}, docs, style
33

44

55
[testenv]
@@ -10,11 +10,10 @@ whitelist_externals =
1010
sh
1111
virtualenv
1212
commands =
13-
py26: sh -c 'cd {envtmpdir}; {envbindir}/trial [] jsonschema'
1413
py{27,34,py,py3}: {envbindir}/green [] jsonschema
1514

1615
{envpython} -m doctest {toxinidir}/README.rst
17-
py{26,27,34}: {envbindir}/sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html
16+
py{27,34}: {envbindir}/sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html
1817

1918
# Check to make sure that releases build and install properly
2019
virtualenv --quiet --python=python2.7 {envtmpdir}/venv
@@ -29,14 +28,12 @@ commands =
2928
deps =
3029
-e{toxinidir}[format]
3130

32-
py26: twisted
3331
py{27,34,py,py3}: green
3432

35-
py26: unittest2
36-
py{26,27,py,py3}: mock
33+
py{27,py,py3}: mock
3734

38-
py{26,27,34}: lxml
39-
py{26,27,34,py}: sphinx
35+
py{27,34}: lxml
36+
py{27,34,py}: sphinx
4037

4138

4239
[testenv:coverage]

0 commit comments

Comments
 (0)