diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-06-09 20:01:39 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-06-09 20:02:52 +0200 |
commit | 49519288a59e969168f36f17d387768fb84508ea (patch) | |
tree | 40a0759789bf69a3d72ecce390b7fb4803fb8ef9 /dev-python/terminado | |
parent | www-apps/icingaweb2: 2.8.0 bump (diff) | |
download | gentoo-49519288a59e969168f36f17d387768fb84508ea.tar.gz gentoo-49519288a59e969168f36f17d387768fb84508ea.tar.bz2 gentoo-49519288a59e969168f36f17d387768fb84508ea.zip |
dev-python/terminado: Port to py3.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/terminado')
-rw-r--r-- | dev-python/terminado/terminado-0.8.3.ebuild | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/dev-python/terminado/terminado-0.8.3.ebuild b/dev-python/terminado/terminado-0.8.3.ebuild index 8088786d9bb9..9b0ff3d216f6 100644 --- a/dev-python/terminado/terminado-0.8.3.ebuild +++ b/dev-python/terminado/terminado-0.8.3.ebuild @@ -3,7 +3,8 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python3_{6..9} ) inherit distutils-r1 @@ -14,15 +15,15 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" SLOT="0" LICENSE="BSD-2" KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND=" dev-python/ptyprocess[${PYTHON_USEDEP}] - >=www-servers/tornado-0.4[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + www-servers/tornado[${PYTHON_USEDEP}]" -python_test() { - py.test -v || die +distutils_enable_tests pytest + +src_prepare() { + sed -i -e 's:test_max_terminals:_&:' \ + terminado/tests/basic_test.py || die + distutils-r1_src_prepare } |