Commit Graph

48 Commits

Author SHA1 Message Date
Julian Berman 168237288e
Temporarily disable lxml-cffi because travis' libxml doesn't cooperate. 2015-04-08 23:42:46 -04:00
Julian Berman 10ea4fa104
Er, green doesn't work on 2.6, and make running right out of a checkout easier. 2015-03-15 14:00:10 -04:00
Julian Berman 159dd1f0ea
Really run on the installed package. 2015-03-15 12:24:33 -04:00
Julian Berman e5664b639f
Begone py.test. 2015-03-15 11:52:45 -04:00
Julian Berman 2b7b85e206
lxml-cffi is giving obscure errors again. 2015-03-15 11:46:08 -04:00
Julian Berman e2a604f7eb
Switch to vcversioner, use repoze.lru only on 2.6, and add extras_require for format. 2015-03-15 11:45:34 -04:00
Julian Berman 5f91ee6876
Run tests on the installed package. 2015-03-15 11:41:34 -04:00
Julian Berman 6093485f50
Newer tox is slightly saner. 2015-03-15 11:39:47 -04:00
Julian Berman a23ef83090
Generative environments, and disable lxml on pypy3 which doesn't work yet. 2014-11-24 08:33:15 -05:00
Anthony Sottile acbcbb1a16 Support pypy3 2014-10-16 14:04:58 -07:00
Julian Berman f2d83f9a69
Supposedly that's what I put this here for. 2014-06-08 18:48:24 -04:00
Julian Berman 6f071cc303 Reorder toxenvs. 2014-04-27 18:27:09 -04:00
Julian Berman 812e07b259 Remove py33 from tox. 2014-04-27 15:37:35 -04:00
Julian Berman 0154fd200e Less repetitive repetetive. 2014-04-27 15:36:59 -04:00
Julian Berman be7cb49a17 Build for 3.4 as well. 2014-04-02 17:57:19 -04:00
Julian Berman eb557da58c Enable branch coverage and show report on the command line.
Closes #137
2013-12-08 14:34:08 -05:00
Julian Berman bc42f4da6a Drop support for 3.2 2013-12-01 20:29:40 -05:00
Julian Berman cd9db3c1af Pass along arguments. 2013-09-25 09:19:39 -04:00
Julian Berman f718d36883 Re-add the coverage env. 2013-09-25 09:19:33 -04:00
Julian Berman f49fe39a22 Only allow RFC 3339 date times, not all of ISO 8601.
Closes #115
2013-06-17 21:19:29 -04:00
Julian Berman 86dba639a6 Make py.test less stupid. 2013-06-17 21:18:32 -04:00
Julian Berman 5a54ff861f Move tests into package. 2013-05-17 19:39:23 -04:00
Julian Berman c06550bebf Add style to tox run. 2013-05-12 23:41:16 -04:00
Colin Dunklau 8f6ed86bb5 Cleanup tests a bit.
Removed doctest attempt for module.
Renamed tests.py -> test_jsonschema.py
2013-05-12 20:38:58 -05:00
Colin Dunklau feb3e38a14 Minor style changes 2013-05-11 15:17:49 -05:00
Julian Berman d3247ff150 Begone. 2013-04-26 19:03:09 -04:00
Julian Berman 98495484cb Flake8 because I'm sadistic. 2013-04-26 18:35:36 -04:00
Julian Berman a27655cdf0 Fix doctests. 2013-04-20 21:21:17 -04:00
Julian Berman 1e6ff63ca1 Fix doc env. 2013-04-18 00:45:06 -04:00
Julian Berman 2134961fd4 Fix path and tox. 2013-04-18 00:13:16 -04:00
Julian Berman 733684d99c requires argparse for suite bin to work. 2013-02-22 13:49:37 -05:00
Julian Berman 98ddbfa823 Fix tests on old PyPys. 2013-02-18 15:21:07 -05:00
Julian Berman 565dbcb32b Doctest is horrible. 2013-02-17 09:34:50 -05:00
Julian Berman 782ab62acb Gymnastics. 2013-02-17 09:33:31 -05:00
Julian Berman dcec9ba144 Never mind, use isodate since it isn't broken. 2013-02-16 23:35:38 -05:00
Julian Berman 7f2268c070 Don't need tox on py33 2013-02-03 16:44:08 -05:00
Julian Berman 69d1dabaa8 Don't fall back if webcolors isn't present 2013-02-03 01:47:52 -05:00
Julian Berman e0836bb07b Doctest jsonschema 2013-02-03 00:44:23 -05:00
Julian Berman 1b1f747c36 Sphinx doctest 2013-01-12 23:15:22 -05:00
Julian Berman ac034f9ced Build docs in tox 2012-11-30 12:27:44 -05:00
Julian Berman 3ca9e34a49 Stupid nose. 2012-11-17 21:39:40 -05:00
Julian Berman e4e08ea246 Add Python 3.3 2012-10-22 15:14:13 -04:00
Julian Berman 968de69370 Add mock. 2012-09-28 11:30:51 -04:00
Michael Droettboom 267a9152c6 An initial stab at making jsonschema Python 3.x compatible.
This takes the approach of being Python 2.6, 2.7, 3.1 and 3.2
compatible from an identical code base, i.e. not by requiring an
explicit 2to3 step.  With this approach it is almost impossible to
also support Python 2.5, though that can be investigated if that is a
hard requirement.

The testing framework was changed from Twisted.trial to nosetests,
since Twisted does not yet have Python 3.x support.  Alternatively,
pytest could be used.

Most changes are related to adding "from __future__ import
unicode_literals" and removing all of the "u" prefixes on string
literals.

Since 3.x drops renames dict.iteritems to dict.items, a function
"iteritems" was added to handle either case.

Likewise, itertools.izip was dropped in favor of just using zip.

Comparisions of strings and numbers no longer works, so the string is
forcibly converted to a float before doing a numeric comparison.

Updated "try .. except" to use the new "Exception as e" syntax.

Python 3 changed the way metaclasses are handled.  The metaclass in
tests.py (there are none in the library proper) now uses a crazy
inscrutable syntax that is Python 2.x and 3.x compatible.  See
http://mikewatkins.ca/2008/11/29/python-2-and-3-metaclasses/

There is one doctest failing on Python 3.x that fails due to the fact
that in Python 3 the full path to the Exception object is shown in
tracebacks, i.e. jsonschema.ValidationError vs. ValidationError.  I'm
not sure how to resolve this in a way that is both Python 2 and 3
compatible.  We may just want to skip the doctests on Python 3.
2012-04-20 15:22:23 -04:00
Julian Berman f72f335455 Removed the securetypes stuff.
The hash fix has been released, so this can all go away.
2012-04-19 14:39:50 -04:00
Julian Berman b3ae1de431 Adding uniqueItems with optional (recommended) dep on securetypes. 2012-01-18 19:29:09 -05:00
Julian Berman 31bbe94cca Missed a dep. 2011-12-30 15:10:10 -05:00
Julian Berman 008e747fb8 setup.py and tox 2011-12-30 14:03:11 -05:00