commit: d60b2ff1e30f2cf31c8879e9854e0aefd1d1922b Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> AuthorDate: Mon Jul 5 01:20:16 2021 +0000 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> CommitDate: Mon Jul 5 01:20:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d60b2ff1
dev-python/hypercorn: ebuild maintenance Closes: https://bugs.gentoo.org/784044 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> .../hypercorn/files/hypercorn-0.11.2-no-coverage.patch | 9 +++++++++ dev-python/hypercorn/hypercorn-0.11.2.ebuild | 18 ++++++------------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/dev-python/hypercorn/files/hypercorn-0.11.2-no-coverage.patch b/dev-python/hypercorn/files/hypercorn-0.11.2-no-coverage.patch new file mode 100644 index 000000000..8c3f4210a --- /dev/null +++ b/dev-python/hypercorn/files/hypercorn-0.11.2-no-coverage.patch @@ -0,0 +1,9 @@ +--- a/setup.cfg ++++ b/setup.cfg +@@ -43,5 +43,5 @@ + ignore_missing_imports = True + + [tool:pytest] +-addopts = --no-cov-on-fail --showlocals ++addopts = --showlocals + testpaths = tests diff --git a/dev-python/hypercorn/hypercorn-0.11.2.ebuild b/dev-python/hypercorn/hypercorn-0.11.2.ebuild index 56221e820..181ee3e08 100644 --- a/dev-python/hypercorn/hypercorn-0.11.2.ebuild +++ b/dev-python/hypercorn/hypercorn-0.11.2.ebuild @@ -3,20 +3,20 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) DISTUTILS_USE_SETUPTOOLS=rdepend - DOCS_BUILDER="sphinx" DOCS_DEPEND=" dev-python/sphinxcontrib-napoleon dev-python/pydata-sphinx-theme " DOCS_DIR="${S}/docs" +PYTHON_COMPAT=( python3_{8..9} ) inherit distutils-r1 docs optfeature DESCRIPTION="ASGI Server based on Hyper libraries and inspired by Gunicorn" HOMEPAGE=" + https://pgjones.gitlab.io/hypercorn https://gitlab.com/pgjones/hypercorn https://github.com/pgjones/hypercorn https://pypi.org/project/Hypercorn @@ -33,29 +33,23 @@ RDEPEND=" dev-python/priority[${PYTHON_USEDEP}] dev-python/toml[${PYTHON_USEDEP}] >=dev-python/wsproto-0.14.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' python3_7) " BDEPEND=" test? ( dev-python/hypothesis[${PYTHON_USEDEP}] >=dev-python/mock-4[${PYTHON_USEDEP}] - <dev-python/pytest-6[${PYTHON_USEDEP}] dev-python/pytest-asyncio[${PYTHON_USEDEP}] dev-python/pytest-trio[${PYTHON_USEDEP}] dev-python/trio[${PYTHON_USEDEP}] ) " -distutils_enable_tests pytest - -python_prepare_all() { - # do not install LICENSE to /usr/ - sed -i -e '/data_files/d' setup.py || die +PATCHES=( "${FILESDIR}/${P}-no-coverage.patch" ) - # Remove pytest-cov dep - sed -i -e '/addopts/d' setup.cfg || die +distutils_enable_tests pytest - distutils-r1_python_prepare_all +python_test() { + epytest -vv --deselect tests/trio/test_keep_alive.py::test_http1_keep_alive_pre_request || die } pkg_postinst() {