summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml2
-rw-r--r--README.md12
-rw-r--r--doc/index.rst2
-rw-r--r--jsonpointer.py2
-rw-r--r--setup.py3
5 files changed, 12 insertions, 9 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/README.md b/README.md
index cae175d..5248dc8 100644
--- a/README.md
+++ b/README.md
@@ -1,16 +1,22 @@
-python-json-pointer [![Build Status](https://secure.travis-ci.org/stefankoegl/python-json-pointer.png?branch=master)](https://travis-ci.org/stefankoegl/python-json-pointer) [![Coverage Status](https://coveralls.io/repos/stefankoegl/python-json-pointer/badge.png?branch=master)](https://coveralls.io/r/stefankoegl/python-json-pointer?branch=master) ![Downloads](https://pypip.in/d/jsonpointer/badge.png) ![Version](https://pypip.in/v/jsonpointer/badge.png)
+python-json-pointer
===================
+[![PyPI version](https://img.shields.io/pypi/v/jsonpointer.svg)](https://pypi.python.org/pypi/jsonpointer/)
+[![Supported Python versions](https://img.shields.io/pypi/pyversions/jsonpointer.svg)](https://pypi.python.org/pypi/jsonpointer/)
+[![Build Status](https://travis-ci.org/stefankoegl/python-json-pointer.png?branch=master)](https://travis-ci.org/stefankoegl/python-json-pointer)
+[![Coverage Status](https://coveralls.io/repos/stefankoegl/python-json-pointer/badge.png?branch=master)](https://coveralls.io/r/stefankoegl/python-json-pointer?branch=master)
+
+
Resolve JSON Pointers in Python
-------------------------------
Library to resolve JSON Pointers according to
[RFC 6901](http://tools.ietf.org/html/rfc6901)
-See Sourcecode for Examples
+See source code for examples
* Website: https://github.com/stefankoegl/python-json-pointer
* Repository: https://github.com/stefankoegl/python-json-pointer.git
* Documentation: https://python-json-pointer.readthedocs.org/
* PyPI: https://pypi.python.org/pypi/jsonpointer
-* Travis-CI: https://travis-ci.org/stefankoegl/python-json-pointer
+* Travis CI: https://travis-ci.org/stefankoegl/python-json-pointer
* Coveralls: https://coveralls.io/r/stefankoegl/python-json-pointer
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.*',
)