Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ws4py/
Date: Sat, 27 Feb 2021 21:39:50
Message-Id: 1614461960.410c96167901662df104df0aeadf9c53476b8d37.sam@gentoo
1 commit: 410c96167901662df104df0aeadf9c53476b8d37
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 21:20:48 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 21:39:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=410c9616
7
8 dev-python/ws4py: add Python 3.9
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-python/ws4py/ws4py-0.5.1-r1.ebuild | 12 ++++++++----
13 dev-python/ws4py/ws4py-9999.ebuild | 12 ++++++++----
14 2 files changed, 16 insertions(+), 8 deletions(-)
15
16 diff --git a/dev-python/ws4py/ws4py-0.5.1-r1.ebuild b/dev-python/ws4py/ws4py-0.5.1-r1.ebuild
17 index 66d94c727f0..94d185d8670 100644
18 --- a/dev-python/ws4py/ws4py-0.5.1-r1.ebuild
19 +++ b/dev-python/ws4py/ws4py-0.5.1-r1.ebuild
20 @@ -1,4 +1,4 @@
21 -# Copyright 1999-2020 Gentoo Authors
22 +# Copyright 1999-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 # We could depend on dev-python/cherrypy when USE=server, but
26 @@ -7,12 +7,14 @@
27 # pypy is viable but better with a cutdown set of deps
28
29 EAPI=7
30 -PYTHON_COMPAT=( python3_{7,8} )
31 +
32 +PYTHON_COMPAT=( python3_{7,8,9} )
33 PYTHON_REQ_USE="threads(+)?"
34
35 MY_PN="WebSocket-for-Python"
36
37 inherit distutils-r1
38 +
39 if [[ ${PV} == "9999" ]] ; then
40 EGIT_REPO_URI="https://github.com/Lawouach/${MY_PN}.git"
41 inherit git-r3
42 @@ -42,11 +44,13 @@ DEPEND="test? (
43 >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
44 )"
45
46 -PATCHES=( "${FILESDIR}"/${PN}-0.5.1-python3.7+-compatibility.patch )
47 +PATCHES=(
48 + "${FILESDIR}"/${PN}-0.5.1-python3.7+-compatibility.patch
49 +)
50
51 python_test() {
52 # testsuite displays an issue with mock under py3 but is non fatal
53 - "${PYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"
54 + "${EPYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"
55 }
56
57 python_install() {
58
59 diff --git a/dev-python/ws4py/ws4py-9999.ebuild b/dev-python/ws4py/ws4py-9999.ebuild
60 index 3561e1388c9..5d471f0ff14 100644
61 --- a/dev-python/ws4py/ws4py-9999.ebuild
62 +++ b/dev-python/ws4py/ws4py-9999.ebuild
63 @@ -1,4 +1,4 @@
64 -# Copyright 1999-2020 Gentoo Authors
65 +# Copyright 1999-2021 Gentoo Authors
66 # Distributed under the terms of the GNU General Public License v2
67
68 # We could depend on dev-python/cherrypy when USE=server, but
69 @@ -7,12 +7,14 @@
70 # pypy is viable but better with a cutdown set of deps
71
72 EAPI=7
73 -PYTHON_COMPAT=( python3_{7,8} )
74 +
75 +PYTHON_COMPAT=( python3_{7,8,9} )
76 PYTHON_REQ_USE="threads(+)?"
77
78 MY_PN="WebSocket-for-Python"
79
80 inherit distutils-r1
81 +
82 if [[ ${PV} == "9999" ]] ; then
83 EGIT_REPO_URI="https://github.com/Lawouach/${MY_PN}.git"
84 inherit git-r3
85 @@ -42,11 +44,13 @@ DEPEND="test? (
86 >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
87 )"
88
89 -PATCHES=( "${FILESDIR}"/${PN}-0.5.1-python3.7+-compatibility.patch )
90 +PATCHES=(
91 + "${FILESDIR}"/${PN}-0.5.1-python3.7+-compatibility.patch
92 +)
93
94 python_test() {
95 # testsuite displays an issue with mock under py3 but is non fatal
96 - "${PYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"
97 + "${EPYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"
98 }
99
100 python_install() {