Support pypy3
This commit is contained in:
parent
eb987ac9ee
commit
acbcbb1a16
|
@ -1,6 +1,7 @@
|
|||
language: python
|
||||
python:
|
||||
- "pypy"
|
||||
- "pypy3"
|
||||
- "2.6"
|
||||
- "2.7"
|
||||
- "3.3"
|
||||
|
|
|
@ -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"))
|
||||
|
||||
|
||||
|
|
7
tox.ini
7
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
|
||||
|
|
Loading…
Reference in New Issue