From acbcbb1a160c792db939811803d9d86038589837 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 16 Oct 2014 14:04:58 -0700 Subject: Support pypy3 --- .travis.yml | 1 + jsonschema/_utils.py | 2 +- tox.ini | 7 ++++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e092a0a..1b2cb28 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: python python: - "pypy" + - "pypy3" - "2.6" - "2.7" - "3.3" diff --git a/jsonschema/_utils.py b/jsonschema/_utils.py index 2262f33..ae7e2b5 100644 --- a/jsonschema/_utils.py +++ b/jsonschema/_utils.py @@ -54,7 +54,7 @@ def load_schema(name): """ - data = pkgutil.get_data(__package__, "schemas/{0}.json".format(name)) + data = pkgutil.get_data('jsonschema', "schemas/{0}.json".format(name)) return json.loads(data.decode("utf-8")) diff --git a/tox.ini b/tox.ini index 6a8ef47..f7ec579 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,10 @@ [tox] -envlist = py26, py27, pypy, py34, docs, style +envlist = py26, py27, pypy, pypy3, py34, docs, style [testenv] +# by default tox runs with --pre which tickles this bug: +# https://bitbucket.org/pypy/pypy/issue/1894/keyerror-core-dumped-on-unicode-triple +install_command = pip install {opts} {packages} commands = py.test [] jsonschema {envpython} -m doctest README.rst @@ -20,7 +23,6 @@ deps = commands = py.test [] jsonschema {envpython} -m doctest README.rst - sphinx-build -b doctest docs {envtmpdir}/html deps = {[testenv:all]deps} {[testenv:notpy26]deps} @@ -35,7 +37,6 @@ deps = [testenv:all] deps = - lxml pytest sphinx strict-rfc3339 -- cgit v1.2.1