Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/raet/files/, dev-python/raet/
Date: Sat, 27 Feb 2021 02:32:43
Message-Id: 1614393151.050fb060efb1cdb29cb6f07b7fc61fdbeaf472f5.chutzpah@gentoo
1 commit: 050fb060efb1cdb29cb6f07b7fc61fdbeaf472f5
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Fri Feb 26 22:32:04 2021 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 02:32:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=050fb060
7
8 dev-python/raet-0.6.8-r2: revbump, add py39, patch for msgpack-1
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-3.0.15, Repoman-3.0.2
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/raet/files/raet-0.6.8-python39.patch | 14 +++++++++
15 dev-python/raet/raet-0.6.8-r2.ebuild | 40 +++++++++++++++++++++++++
16 2 files changed, 54 insertions(+)
17
18 diff --git a/dev-python/raet/files/raet-0.6.8-python39.patch b/dev-python/raet/files/raet-0.6.8-python39.patch
19 new file mode 100644
20 index 00000000000..4f400bc9afc
21 --- /dev/null
22 +++ b/dev-python/raet/files/raet-0.6.8-python39.patch
23 @@ -0,0 +1,14 @@
24 +diff --git a/raet/lane/paging.py b/raet/lane/paging.py
25 +index 5a2f480..32c8f95 100644
26 +--- a/raet/lane/paging.py
27 ++++ b/raet/lane/paging.py
28 +@@ -162,8 +162,7 @@ class TxBody(Body):
29 + if not msgpack:
30 + emsg = "Msgpack not installed."
31 + raise raeting.PacketError(emsg)
32 +- self.packed = msgpack.dumps(self.data,
33 +- encoding='utf-8')
34 ++ self.packed = msgpack.dumps(self.data)
35 + else:
36 + emsg = "Unrecognized message pack kind '{0}'\n".format(pk)
37 + console.terse(emsg)
38
39 diff --git a/dev-python/raet/raet-0.6.8-r2.ebuild b/dev-python/raet/raet-0.6.8-r2.ebuild
40 new file mode 100644
41 index 00000000000..ccf39de3c9f
42 --- /dev/null
43 +++ b/dev-python/raet/raet-0.6.8-r2.ebuild
44 @@ -0,0 +1,40 @@
45 +# Copyright 1999-2021 Gentoo Authors
46 +# Distributed under the terms of the GNU General Public License v2
47 +
48 +EAPI=7
49 +PYTHON_COMPAT=(python3_{7..9})
50 +inherit distutils-r1
51 +
52 +DESCRIPTION="Reliable Asynchronous Event Transport Protocol"
53 +HOMEPAGE="https://github.com/RaetProtocol/raet"
54 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
55 +
56 +LICENSE="Apache-2.0"
57 +SLOT="0"
58 +KEYWORDS="~amd64 ~arm ~x86"
59 +IUSE="test"
60 +RESTRICT="!test? ( test )"
61 +
62 +RDEPEND=">=dev-python/six-1.6.1[${PYTHON_USEDEP}]
63 + >=dev-python/libnacl-1.4.3[${PYTHON_USEDEP}]
64 + >=dev-python/ioflo-2.0[${PYTHON_USEDEP}]"
65 +BDEPEND="${RDEPEND}
66 + test? (
67 + >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}]
68 + dev-python/unittest2[${PYTHON_USEDEP}]
69 + )"
70 +
71 +PATCHES=(
72 + "${FILESDIR}/raet-0.6.8-msgpack-1.0.patch"
73 +)
74 +
75 +python_prepare_all() {
76 + distutils-r1_python_prepare_all
77 + sed -i -e "/setuptools_git/d" setup.py || die
78 +}
79 +
80 +python_test() {
81 + pushd "${BUILD_DIR}"/lib || die
82 + ${EPYTHON} ${PN}/test/__init__.py || die "tests failed for ${EPYTHON}"
83 + popd || die
84 +}