commit:     410c96167901662df104df0aeadf9c53476b8d37
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 27 21:20:48 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 27 21:39:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=410c9616

dev-python/ws4py: add Python 3.9

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/ws4py/ws4py-0.5.1-r1.ebuild | 12 ++++++++----
 dev-python/ws4py/ws4py-9999.ebuild     | 12 ++++++++----
 2 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/dev-python/ws4py/ws4py-0.5.1-r1.ebuild 
b/dev-python/ws4py/ws4py-0.5.1-r1.ebuild
index 66d94c727f0..94d185d8670 100644
--- a/dev-python/ws4py/ws4py-0.5.1-r1.ebuild
+++ b/dev-python/ws4py/ws4py-0.5.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # We could depend on dev-python/cherrypy when USE=server, but
@@ -7,12 +7,14 @@
 # pypy is viable but better with a cutdown set of deps
 
 EAPI=7
-PYTHON_COMPAT=( python3_{7,8} )
+
+PYTHON_COMPAT=( python3_{7,8,9} )
 PYTHON_REQ_USE="threads(+)?"
 
 MY_PN="WebSocket-for-Python"
 
 inherit distutils-r1
+
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="https://github.com/Lawouach/${MY_PN}.git";
        inherit git-r3
@@ -42,11 +44,13 @@ DEPEND="test? (
                >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
        )"
 
-PATCHES=( "${FILESDIR}"/${PN}-0.5.1-python3.7+-compatibility.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.5.1-python3.7+-compatibility.patch
+)
 
 python_test() {
        # testsuite displays an issue with mock under py3 but is non fatal
-       "${PYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"
+       "${EPYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"
 }
 
 python_install() {

diff --git a/dev-python/ws4py/ws4py-9999.ebuild 
b/dev-python/ws4py/ws4py-9999.ebuild
index 3561e1388c9..5d471f0ff14 100644
--- a/dev-python/ws4py/ws4py-9999.ebuild
+++ b/dev-python/ws4py/ws4py-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # We could depend on dev-python/cherrypy when USE=server, but
@@ -7,12 +7,14 @@
 # pypy is viable but better with a cutdown set of deps
 
 EAPI=7
-PYTHON_COMPAT=( python3_{7,8} )
+
+PYTHON_COMPAT=( python3_{7,8,9} )
 PYTHON_REQ_USE="threads(+)?"
 
 MY_PN="WebSocket-for-Python"
 
 inherit distutils-r1
+
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="https://github.com/Lawouach/${MY_PN}.git";
        inherit git-r3
@@ -42,11 +44,13 @@ DEPEND="test? (
                >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
        )"
 
-PATCHES=( "${FILESDIR}"/${PN}-0.5.1-python3.7+-compatibility.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.5.1-python3.7+-compatibility.patch
+)
 
 python_test() {
        # testsuite displays an issue with mock under py3 but is non fatal
-       "${PYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"
+       "${EPYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"
 }
 
 python_install() {

Reply via email to