1 |
commit: 0917a91e64fd1c407a6ba556552c16ed4a0d7260 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 12 06:25:34 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 12 07:13:30 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0917a91e |
7 |
|
8 |
dev-python/jsonpickle: Bump to 2.2.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/jsonpickle/Manifest | 1 + |
13 |
dev-python/jsonpickle/jsonpickle-2.2.0.ebuild | 61 +++++++++++++++++++++++++++ |
14 |
2 files changed, 62 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/jsonpickle/Manifest b/dev-python/jsonpickle/Manifest |
17 |
index 24fd7c25cf73..e27f98f94be7 100644 |
18 |
--- a/dev-python/jsonpickle/Manifest |
19 |
+++ b/dev-python/jsonpickle/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST jsonpickle-2.1.0.tar.gz 186799 BLAKE2B a9e82a046fc77e1a4d5e7b1f13fc34f07e0e42e34922258bb0bd5aa4557bfec2b5fc06e450a0391522ae27380306111001204eb4f5429c2ad1f908fc4dec40a0 SHA512 46e8bcc2e24616da43b87bf8371ec9b39de1e8e33380684c05b7d7c6695f17bcc21150848c3306d235f89c5d74c69b6fda79e93fc823665d72cc88d9d89d8484 |
22 |
+DIST jsonpickle-2.2.0.tar.gz 189866 BLAKE2B d8fcd0e8b71947b734c59240d9fa4f0b35b9b0ac2e2940a9baf05c160771db0eae5f011b61e3b1c0bc746a740ac2e137a392931e270fea3acf4884578133283e SHA512 b6cb35316e32f38875cbfa3784a3930f669d4ea730ead6117242070590647987383e9f933c193b8c246c40dba87ad56600a65db89c45c18a790b3c1f9232b245 |
23 |
|
24 |
diff --git a/dev-python/jsonpickle/jsonpickle-2.2.0.ebuild b/dev-python/jsonpickle/jsonpickle-2.2.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..0b1bb08720e9 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/jsonpickle/jsonpickle-2.2.0.ebuild |
29 |
@@ -0,0 +1,61 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+ |
38 |
+inherit distutils-r1 optfeature |
39 |
+ |
40 |
+DESCRIPTION="Python library for serializing any arbitrary object graph into JSON" |
41 |
+HOMEPAGE=" |
42 |
+ https://github.com/jsonpickle/jsonpickle/ |
43 |
+ https://pypi.org/project/jsonpickle/ |
44 |
+" |
45 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" |
50 |
+ |
51 |
+BDEPEND=" |
52 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
53 |
+ test? ( |
54 |
+ dev-python/feedparser[${PYTHON_USEDEP}] |
55 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
56 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
57 |
+ dev-python/simplejson[${PYTHON_USEDEP}] |
58 |
+ dev-python/sqlalchemy[${PYTHON_USEDEP}] |
59 |
+ dev-python/ujson[${PYTHON_USEDEP}] |
60 |
+ ) |
61 |
+" |
62 |
+ |
63 |
+distutils_enable_sphinx docs \ |
64 |
+ dev-python/jaraco-packaging \ |
65 |
+ dev-python/rst-linker |
66 |
+distutils_enable_tests pytest |
67 |
+ |
68 |
+python_prepare_all() { |
69 |
+ sed -i -e 's:--flake8 --cov::' pytest.ini || die |
70 |
+ distutils-r1_python_prepare_all |
71 |
+} |
72 |
+ |
73 |
+python_test() { |
74 |
+ local EPYTEST_IGNORE=( |
75 |
+ # unpackaged bson dependency |
76 |
+ tests/bson_test.py |
77 |
+ # broken when gmpy is installed |
78 |
+ # https://github.com/jsonpickle/jsonpickle/issues/328 |
79 |
+ # https://github.com/jsonpickle/jsonpickle/issues/316 |
80 |
+ tests/ecdsa_test.py |
81 |
+ ) |
82 |
+ epytest |
83 |
+} |
84 |
+ |
85 |
+pkg_postinst() { |
86 |
+ # Unpackaged optional backends: yajl, demjson |
87 |
+ optfeature "encoding numpy-based data" dev-python/numpy |
88 |
+ optfeature "encoding pandas objects" dev-python/pandas |
89 |
+ optfeature "fast JSON backend" dev-python/simplejson |
90 |
+} |