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/pyro/
Date: Sun, 02 Feb 2020 15:34:38
Message-Id: 1580657660.2f84a5f846fddd0689574fd86d0492dcd36bc02a.mgorny@gentoo
1 commit: 2f84a5f846fddd0689574fd86d0492dcd36bc02a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 2 15:13:27 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 2 15:34:20 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f84a5f8
7
8 dev-python/pyro: Bump to 4.78
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pyro/Manifest | 1 +
13 dev-python/pyro/pyro-4.78.ebuild | 65 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/dev-python/pyro/Manifest b/dev-python/pyro/Manifest
17 index a8139fed667..2f2d13df116 100644
18 --- a/dev-python/pyro/Manifest
19 +++ b/dev-python/pyro/Manifest
20 @@ -1 +1,2 @@
21 DIST Pyro4-4.77.tar.gz 479025 BLAKE2B 20c7b53cea55b77efea11cd7b74a1cfcc45ad721ba45e039947f1d869291bfcb054f16bc48fb5ad21386fe7d47785514ff94953b1bcf893266c2c41015bba589 SHA512 52a9f90cec8c5e23ec30ddb69484a15bb86d61024d1bc718d075e01678a3d9655a1ed21f18da1891c121bf0e95282fb1151762b2fdb826a6408056079d2b1a66
22 +DIST Pyro4-4.78.tar.gz 490988 BLAKE2B 0fbd7129557d2b1603176a34106f9e287faa6e1725eeede7a7427c0b975f2c4e136dc4ce1573e826c43211a903fee0d7baca85fb8ae58360da7869a3309a1a2d SHA512 7a95828f6c8d9d94b8a5263c63263335c3bfaa54c5e527bd8e61d2bc00d4cdb3c4c6a92155af189401b892a6729ad91dad207e389ff43ee342a011b95ddc90e5
23
24 diff --git a/dev-python/pyro/pyro-4.78.ebuild b/dev-python/pyro/pyro-4.78.ebuild
25 new file mode 100644
26 index 00000000000..493fa5c46b9
27 --- /dev/null
28 +++ b/dev-python/pyro/pyro-4.78.ebuild
29 @@ -0,0 +1,65 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +DISTUTILS_USE_SETUPTOOLS=rdepend
36 +PYTHON_COMPAT=( python3_{6,7,8} )
37 +
38 +inherit distutils-r1
39 +
40 +MY_PN="Pyro4"
41 +MY_P="${MY_PN}-${PV}"
42 +
43 +DESCRIPTION="Distributed object middleware for Python (RPC)"
44 +HOMEPAGE="https://pypi.org/project/Pyro4/
45 + https://github.com/irmen/Pyro4"
46 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +SLOT="4"
50 +KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
51 +IUSE="doc examples test"
52 +RESTRICT="!test? ( test )"
53 +
54 +RDEPEND="
55 + !dev-python/pyro:0
56 + $(python_gen_cond_dep \
57 + 'dev-python/selectors34[${PYTHON_USEDEP}]' -2)
58 + >=dev-python/serpent-1.27[${PYTHON_USEDEP}]"
59 +DEPEND="${RDEPEND}
60 + test? (
61 + >=dev-python/cloudpickle-1.2.1[${PYTHON_USEDEP}]
62 + dev-python/dill[${PYTHON_USEDEP}]
63 + >=dev-python/msgpack-0.4.6[${PYTHON_USEDEP}]
64 + )"
65 +
66 +S="${WORKDIR}/${MY_P}"
67 +
68 +python_prepare_all() {
69 + # Disable tests requiring network connection.
70 + rm tests/PyroTests/test_naming.py || die
71 + sed \
72 + -e "s/testStartNSfunc/_&/" \
73 + -i tests/PyroTests/test_naming2.py || die
74 +
75 + sed \
76 + -e "s/testBroadcast/_&/" \
77 + -e "s/testGetIP/_&/" \
78 + -i tests/PyroTests/test_socket.py || die
79 +
80 + distutils-r1_python_prepare_all
81 +}
82 +
83 +python_test() {
84 + esetup.py test
85 +}
86 +
87 +python_install_all() {
88 + use doc && HTML_DOCS=( docs/. )
89 + if use examples; then
90 + dodoc -r examples
91 + docompress -x /usr/share/doc/${PF}/examples
92 + fi
93 + distutils-r1_python_install_all
94 +}