From df3395ab1db3957e71c5a9701f0d3bb622faf16f Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 15 Jan 2018 16:57:26 +0200 Subject: Drop support for EOL Python 2.6 and 3.3 --- .travis.yml | 2 -- doc/index.rst | 2 +- jsonpointer.py | 2 +- setup.py | 3 +-- 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 `_). Python 2.6, 2.7, 3.2, 3.3 +6901 `_). 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.*', ) -- cgit v1.2.1