diff options
| author | Michał Górny <mgorny@gentoo.org> | 2023-07-28 15:59:43 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2023-07-28 16:05:40 +0200 |
| commit | 3386db3ead980706cdaaff40510a85bae5734d2b (patch) | |
| tree | fddbba80e85b2e9056602b5be257c14d1e227946 /dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild | |
| parent | f2f338451f5ea0e7cc4d31a51e02ca3ad66a9f3c (diff) | |
| download | gentoo-3386db3ead980706cdaaff40510a85bae5734d2b.tar.gz gentoo-3386db3ead980706cdaaff40510a85bae5734d2b.tar.bz2 gentoo-3386db3ead980706cdaaff40510a85bae5734d2b.zip | |
dev-python/aiohttp-cors: Fix running async tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild')
| -rw-r--r-- | dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild index 152bc5045683..46a27617638b 100644 --- a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild +++ b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild @@ -4,13 +4,19 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..11} ) inherit distutils-r1 DESCRIPTION="Implements CORS support for aiohttp asyncio-powered asynchronous HTTP server" -HOMEPAGE="https://github.com/aio-libs/aiohttp-cors" -SRC_URI="https://github.com/aio-libs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE=" + https://github.com/aio-libs/aiohttp-cors/ + https://pypi.org/project/aiohttp_cors/ +" +SRC_URI=" + https://github.com/aio-libs/aiohttp-cors/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="Apache-2.0" SLOT="0" @@ -36,7 +42,7 @@ PATCHES=( "${FILESDIR}/${P}-py3_11.patch" ) -src_prepare() { - sed -i -e '/^addopts=/d' setup.cfg || die - distutils-r1_src_prepare +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -o addopts= -p aiohttp -p asyncio --asyncio-mode=auto } |
