1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-anyjson
7 SDESC[v11]= Multiple JSON library wrapper (3.11)
8 SDESC[v12]= Multiple JSON library wrapper (3.12)
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPI/a/anyjson
14 DISTFILE[1]= anyjson-0.3.3.tar.gz:main
19 OPTIONS_AVAILABLE= PY311 PY312
20 OPTIONS_STANDARD= none
21 VOPTS[v11]= PY311=ON PY312=OFF
22 VOPTS[v12]= PY311=OFF PY312=ON
24 DISTNAME= anyjson-0.3.3
28 [PY311].USES_ON= python:v11,sutools
30 [PY312].USES_ON= python:v12,sutools
32 [FILE:1541:descriptions/desc.single]
33 ##############################
34 anyjson - JSON library wrapper
35 ##############################
40 Anyjson loads whichever is the fastest JSON module installed and provides
41 a uniform API regardless of which JSON implementation is used.
43 Originally part of carrot (http://github.com/ask/carrot/)
48 To serialize a python object to a JSON string, call the `serialize`
52 >>> anyjson.serialize(["test", 1, {"foo": 3.141592}, "bar"])
53 '["test", 1, {"foo": 3.141592}, "bar"]'
55 Conversion the other way is done with the `deserialize` call.
57 >>> anyjson.deserialize("""["test", 1, {"foo": 3.141592}, "bar"]""")
58 ['test', 1, {'foo': 3.1415920000000002}, 'bar']
60 Regardless of the JSON implementation used, the exceptions will be the
62 This means that trying to serialize something not compatible with JSON
65 >>> anyjson.serialize([object()])
66 Traceback (most recent call last):
68 TypeError: object is not JSON encodable
70 And deserializing a JSON string with invalid JSON raises a ValueError:
72 >>> anyjson.deserialize("""['missing square brace!""")
73 Traceback (most recent call last):
75 ValueError: cannot parse JSON description
80 The module is maintaned by Rune F. Halvorsen <runefh@gmail.com>.
81 The project resides at http://bitbucket.org/runeh/anyjson . Bugs and
83 requests can be submitted there. Patches are also very welcome.
97 37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba 8332 anyjson-0.3.3.tar.gz
100 [FILE:229:patches/patch-setup.py]
101 --- setup.py.orig 2012-06-21 22:59:59 UTC
103 @@ -2,8 +2,6 @@ import os
107 -if sys.version_info >= (3, 0):
108 - extra.update(use_2to3=True)
111 from setuptools import setup, find_packages