diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-05-26 19:07:53 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-05-26 20:09:47 +0200 |
commit | d8dcdf42484b6c45f0acacc90ac788d9c563daa4 (patch) | |
tree | 6b4082c7bbb3dc8ccf6ddb4376f92ca9cdade4d2 /dev-python/socketpool | |
parent | dev-python/gevent: Bump to 20.5.1 (diff) | |
download | gentoo-d8dcdf42484b6c45f0acacc90ac788d9c563daa4.tar.gz gentoo-d8dcdf42484b6c45f0acacc90ac788d9c563daa4.tar.bz2 gentoo-d8dcdf42484b6c45f0acacc90ac788d9c563daa4.zip |
dev-python/socketpool: Port to py39
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/socketpool')
-rw-r--r-- | dev-python/socketpool/socketpool-0.5.3-r3.ebuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dev-python/socketpool/socketpool-0.5.3-r3.ebuild b/dev-python/socketpool/socketpool-0.5.3-r3.ebuild index f0bfe38bf105..b96eb34c7eb1 100644 --- a/dev-python/socketpool/socketpool-0.5.3-r3.ebuild +++ b/dev-python/socketpool/socketpool-0.5.3-r3.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) inherit distutils-r1 @@ -44,6 +44,13 @@ PATCHES=( "${FILESDIR}"/${PN}-0.5.2-locale.patch ) distutils_enable_tests pytest +src_prepare() { + # py3.9 + sed -i -e 's:isAlive:is_alive:' socketpool/backend_thread.py || die + + distutils-r1_src_prepare +} + python_test() { cp -r examples tests "${BUILD_DIR}" || die |