summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2018-01-15 16:57:26 +0200
committerHugo <hugovk@users.noreply.github.com>2018-01-15 16:57:26 +0200
commitdf3395ab1db3957e71c5a9701f0d3bb622faf16f (patch)
treec84eaeb520e8a7c00b71a1ef90db682b1b1c93a9
parentbae64f61ec5f1057342faf19b89d5bd571b038da (diff)
downloadpython-json-pointer-df3395ab1db3957e71c5a9701f0d3bb622faf16f.tar.gz
Drop support for EOL Python 2.6 and 3.3
-rw-r--r--.travis.yml2
-rw-r--r--doc/index.rst2
-rw-r--r--jsonpointer.py2
-rw-r--r--setup.py3
4 files changed, 3 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index bd9a8a3..f67ebbe 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,6 @@
language: python
python:
-- '2.6'
- '2.7'
-- '3.3'
- '3.4'
- '3.5'
- '3.6'
diff --git a/doc/index.rst b/doc/index.rst
index dbdf2c6..53b1dea 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -7,7 +7,7 @@ python-json-pointer
===================
*python-json-pointer* is a Python library for resolving JSON pointers (`RFC
-6901 <http://tools.ietf.org/html/rfc6901>`_). Python 2.6, 2.7, 3.2, 3.3
+6901 <http://tools.ietf.org/html/rfc6901>`_). Python 2.7, 3.4+
and PyPy are supported.
**Contents**
diff --git a/jsonpointer.py b/jsonpointer.py
index 285fc0c..a844729 100644
--- a/jsonpointer.py
+++ b/jsonpointer.py
@@ -174,7 +174,7 @@ class JsonPointer(object):
# validate escapes
invalid_escape = self._RE_INVALID_ESCAPE.search(pointer)
if invalid_escape:
- raise JsonPointerException('Found invalid escape {0}'.format(
+ raise JsonPointerException('Found invalid escape {}'.format(
invalid_escape.group()))
parts = pointer.split('/')
diff --git a/setup.py b/setup.py
index f5e850c..21660f5 100644
--- a/setup.py
+++ b/setup.py
@@ -42,10 +42,8 @@ CLASSIFIERS = [
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
- 'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
@@ -66,4 +64,5 @@ setup(name=PACKAGE,
py_modules=MODULES,
scripts=['bin/jsonpointer'],
classifiers=CLASSIFIERS,
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
)