Gentoo Archives: gentoo-commits

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