Ravenports generated: 10 Feb 2024 22:55
[ravenports.git] / bucket_C0 / python-anyjson
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-anyjson
4 VERSION=                0.3.3
5 KEYWORDS=               python
6 VARIANTS=               v11 v12
7 SDESC[v11]=             Multiple JSON library wrapper (3.11)
8 SDESC[v12]=             Multiple JSON library wrapper (3.12)
9 HOMEPAGE=               none
10 CONTACT=                Python_Automaton[python@ironwolf.systems]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            PYPI/a/anyjson
14 DISTFILE[1]=            anyjson-0.3.3.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[v11]=             single
17 SPKGS[v12]=             single
18
19 OPTIONS_AVAILABLE=      PY311 PY312
20 OPTIONS_STANDARD=       none
21 VOPTS[v11]=             PY311=ON PY312=OFF
22 VOPTS[v12]=             PY311=OFF PY312=ON
23
24 DISTNAME=               anyjson-0.3.3
25
26 GENERATED=              yes
27
28 [PY311].USES_ON=                        python:v11,sutools
29
30 [PY312].USES_ON=                        python:v12,sutools
31
32 [FILE:1541:descriptions/desc.single]
33 ##############################
34 anyjson - JSON library wrapper
35 ##############################
36
37 Overview
38 --------
39
40 Anyjson loads whichever is the fastest JSON module installed and provides
41 a uniform API regardless of which JSON implementation is used.
42
43 Originally part of carrot (http://github.com/ask/carrot/)
44
45 Examples
46 --------
47
48 To serialize a python object to a JSON string, call the `serialize`
49 function:
50
51 >>> import anyjson
52 >>> anyjson.serialize(["test", 1, {"foo": 3.141592}, "bar"])
53 '["test", 1, {"foo": 3.141592}, "bar"]'
54
55 Conversion the other way is done with the `deserialize` call.
56
57 >>> anyjson.deserialize("""["test", 1, {"foo": 3.141592}, "bar"]""")
58 ['test', 1, {'foo': 3.1415920000000002}, 'bar']
59
60 Regardless of the JSON implementation used, the exceptions will be the
61 same.
62 This means that trying to serialize something not compatible with JSON
63 raises a TypeError:
64
65 >>> anyjson.serialize([object()])
66 Traceback (most recent call last):
67   <snipped traceback>
68 TypeError: object is not JSON encodable
69
70 And deserializing a JSON string with invalid JSON raises a ValueError:
71
72 >>> anyjson.deserialize("""['missing square brace!""")
73 Traceback (most recent call last):
74   <snipped traceback>
75 ValueError: cannot parse JSON description
76
77 Contact
78 -------
79
80 The module is maintaned by Rune F. Halvorsen <runefh@gmail.com>.
81 The project resides at http://bitbucket.org/runeh/anyjson . Bugs and
82 feature
83 requests can be submitted there. Patches are also very welcome.
84
85 Changelog
86 ---------
87
88 See CHANGELOG file
89
90 License
91 -------
92
93 see the LICENSE file
94
95
96 [FILE:99:distinfo]
97 37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba         8332 anyjson-0.3.3.tar.gz
98
99
100 [FILE:229:patches/patch-setup.py]
101 --- setup.py.orig       2012-06-21 22:59:59 UTC
102 +++ setup.py
103 @@ -2,8 +2,6 @@ import os
104  import sys
105  
106  extra = {}
107 -if sys.version_info >= (3, 0):
108 -    extra.update(use_2to3=True)
109  
110  try:
111      from setuptools import setup, find_packages
112