1 |
commit: 7e6222ba42bd55c2c265b039400ef236d577cd7b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 31 08:50:23 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 31 08:50:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e6222ba |
7 |
|
8 |
dev-python/jsonpickle: Bump to 1.5.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/jsonpickle/Manifest | 1 + |
13 |
dev-python/jsonpickle/jsonpickle-1.5.1.ebuild | 49 +++++++++++++++++++++++++++ |
14 |
2 files changed, 50 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/jsonpickle/Manifest b/dev-python/jsonpickle/Manifest |
17 |
index 4fc4056dcef..72dea35f4f5 100644 |
18 |
--- a/dev-python/jsonpickle/Manifest |
19 |
+++ b/dev-python/jsonpickle/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST jsonpickle-1.4.2.tar.gz 104745 BLAKE2B af12141c867cd3dbecace5b7bc637b554c51c245d4f584c4d94e73e694b74f66fc59a65a62b7a0af361a7a8010b9398a9b04ee838c4f76c168b21dba6f2c9542 SHA512 a6da661a69daefbc9393a4a4c88aa1da1b8bd687b6eeaed3d833ce1683bd1fa9d7943fdeecfe927e0492945ee2910b6f2d5e53ddb2b928b21f7b099ab79d45e9 |
22 |
DIST jsonpickle-1.5.0.tar.gz 106088 BLAKE2B dcd35979a428180f10611638c831b083d9b8307729a0b19fe89b283c30ecac58477bd6a66e89c31e214dd2f100385d9933dc00d506e1f9bbb4b6ea9c3a0eaed3 SHA512 7828ded98173cb10908a9d60fa6b3f358add360d738cd85a90f012ca24b15c6bbb19c611027bdb0a4d25fe0649978ae59ff08fb7b717ef503a9916152aa6f849 |
23 |
+DIST jsonpickle-1.5.1.tar.gz 109560 BLAKE2B 07dd2a469f0bf6fe531d34b5f2d731c6aca863899ce804f44c14b38f93b8c8213b1bf4fc4cc19dc26dcb40d71bfded1115060e54570742afd393bd0d63f12d2d SHA512 ee3694e961bfbb6cc985691fb4821cf831dd6a2cbbdc8c6d1ba8e43fe7a4bba3d4b6868a02f76b88d9b036cebf51b217171504a6647f26b0e2d11727baee62f3 |
24 |
|
25 |
diff --git a/dev-python/jsonpickle/jsonpickle-1.5.1.ebuild b/dev-python/jsonpickle/jsonpickle-1.5.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..bfb5cf69380 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/jsonpickle/jsonpickle-1.5.1.ebuild |
30 |
@@ -0,0 +1,49 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{7..9} ) |
37 |
+DISTUTILS_USE_SETUPTOOLS=bdepend |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Python library for serializing any arbitrary object graph into JSON" |
41 |
+HOMEPAGE="https://github.com/jsonpickle/jsonpickle/ https://pypi.org/project/jsonpickle/" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" |
47 |
+ |
48 |
+# There are optional json backends serializer/deserializers in addition to those selected here |
49 |
+# jsonlib, yajl. |
50 |
+RDEPEND=" |
51 |
+ dev-python/simplejson[${PYTHON_USEDEP}] |
52 |
+ dev-python/feedparser[${PYTHON_USEDEP}] |
53 |
+ dev-python/ujson[${PYTHON_USEDEP}] |
54 |
+ $(python_gen_cond_dep ' |
55 |
+ dev-python/importlib_metadata[${PYTHON_USEDEP}] |
56 |
+ ' python3_{6,7}) |
57 |
+" |
58 |
+# toml via setuptools_scm[toml] |
59 |
+BDEPEND=" |
60 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
61 |
+ dev-python/toml[${PYTHON_USEDEP}]" |
62 |
+ |
63 |
+distutils_enable_sphinx "docs/source" |
64 |
+distutils_enable_tests pytest |
65 |
+ |
66 |
+python_prepare_all() { |
67 |
+ # too many dependencies |
68 |
+ rm tests/pandas_test.py || die |
69 |
+ # broken with gmpy |
70 |
+ rm tests/ecdsa_test.py || die |
71 |
+ |
72 |
+ sed -i -e 's:--flake8 --black --cov --cov-append::' pytest.ini || die |
73 |
+ |
74 |
+ distutils-r1_python_prepare_all |
75 |
+} |
76 |
+ |
77 |
+python_test() { |
78 |
+ pytest -vv tests || die "Tests failed with ${EPYTHON}" |
79 |
+} |