dev-python/matrix-nio: fix blunders with docs and tests

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2021-05-22 22:29:45 +03:00
parent e918eb027d
commit 737301d1dd
No known key found for this signature in database
GPG Key ID: A12750536B5E7010
2 changed files with 15 additions and 22 deletions

View File

@ -15,7 +15,7 @@ SRC_URI="https://github.com/poljar/matrix-nio/archive/${PV}.tar.gz -> ${P}.tar.g
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc e2e test"
IUSE="e2e test"
RDEPEND="
>=dev-python/future-0.18.2[${PYTHON_USEDEP}]
@ -55,21 +55,11 @@ DEPEND="
dev-python/mypy_extensions[${PYTHON_USEDEP}]
)
"
BDEPEND="
doc? ( dev-python/sphinx )
"
distutils_enable_tests pytest
distutils_enable_sphinx doc dev-python/sphinx_rtd_theme dev-python/m2r2
# Tests dont parallelize happily
python_compile_all() {
if use doc; then
emacs -C docs html || die
fi
}
python_install_all() {
use doc && HTML_DOCS=( docs/build/html/. )
distutils-r1_python_install_all
python_test() {
# Former requires internet access, latter fails randomly
epytest --deselect tests/async_client_test.py::TestClass::test_connect_wrapper[pyloop] --deselect tests/async_client_test.py::TestClass::test_transfer_monitor_callbacks
}

View File

@ -2,10 +2,13 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email> parona@protonmail.com </email>
<name> Alfred Wingate </name>
<email>parona@protonmail.com</email>
<name>Alfred Wingate</name>
</maintainer>
<upstream>
<remote-id type="github">poljar/matrix-nio</remote-id>
</upstream>
<use>
<flag name="e2e"> Enable end to end encryption support </flag>
<flag name="e2e">Enable end to end encryption support</flag>
</use>
</pkgmetadata>