1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{6,7,8} )
9 DESCRIPTION="Compatibility API between asyncio/Twisted/Trollius"
10 HOMEPAGE="https://github.com/crossbario/txaio https://pypi.org/project/txaio/"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 KEYWORDS="amd64 arm ~arm64 x86 ~amd64-linux ~x86-linux"
17 RESTRICT="!test? ( test )"
20 dev-python/setuptools[${PYTHON_USEDEP}]
22 >=dev-python/sphinx-1.2.3[${PYTHON_USEDEP}]
23 >=dev-python/sphinxcontrib-spelling-2.1.2[${PYTHON_USEDEP}]
24 >=dev-python/sphinx_rtd_theme-0.1.9[${PYTHON_USEDEP}]
26 test? ( >=dev-python/pytest-2.6.4[${PYTHON_USEDEP}]
27 >=dev-python/mock-1.3.0[${PYTHON_USEDEP}]
33 # Take out failing tests known to pass when run manually
34 # we certainly don't need to test "python setup.py sdist" here
35 rm "${S}/test/test_packaging.py" || die
38 python_compile_all() {
39 use doc && emake -C docs html
43 pytest -v || die "Tests failed under ${EPYTHON}"
46 python_install_all() {
47 use doc && HTML_DOCS=( docs/_build/html/. )
48 distutils-r1_python_install_all