diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-04-19 16:01:19 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-04-19 16:55:55 +0200 |
| commit | c48655a7cb0baa87d815e8fa44889c3229de8d36 (patch) | |
| tree | dd3b1368fc3b5cfcde18ca93d42ff0fe4655f0b1 /dev-python/aiohttp-cors | |
| parent | cb26e23d44ef6ab3c97129a344b4b402b9c80a2e (diff) | |
| download | gentoo-c48655a7cb0baa87d815e8fa44889c3229de8d36.tar.gz gentoo-c48655a7cb0baa87d815e8fa44889c3229de8d36.tar.bz2 gentoo-c48655a7cb0baa87d815e8fa44889c3229de8d36.zip | |
dev-python/aiohttp-cors: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/aiohttp-cors')
6 files changed, 0 insertions, 213 deletions
diff --git a/dev-python/aiohttp-cors/Manifest b/dev-python/aiohttp-cors/Manifest index 57eebaa425f7..9af30e9e6dd5 100644 --- a/dev-python/aiohttp-cors/Manifest +++ b/dev-python/aiohttp-cors/Manifest @@ -1,3 +1 @@ -DIST aiohttp-cors-0.7.0.gh.tar.gz 39728 BLAKE2B 747499856272f551cf8e2e0911ff7cbb2c7cb8a1f3159327dd8f0d40cabbbd9713a1a9e30ef9c99f3f9642567c99025e049db837c89f907d6698a27005ac2632 SHA512 72e0b365b952c08a02c1123d7672cfea01063e2ff01743a71e10f804d22178edc0f1c6b7f87b7ed484ca7c24e89a32de90d0d279f2f5c060427319182f9bdd3b -DIST aiohttp-cors-0.8.0.gh.tar.gz 40794 BLAKE2B 92a88f55b49e8cbc86bf970af336ffe742950f2ca2f15667edd37e4ec4daad7c70e3243bd10974569c618978d20a0cdd9b25f95942808d3de06de778dd4d5663 SHA512 6f4b648b62511dfa0ccfbfcb24bed8308576edc801496b34a4541f8f43a23edd04ea7881400e5550e756a422f63aa7935307cdda0a096612a6d66b0161e4a588 DIST aiohttp-cors-0.8.1.gh.tar.gz 40447 BLAKE2B 553dcf7d9769c0f2b75bbea271aac71fde9dcc1f8d5e292603e29b6082cbdada653f831407408ade76cf4804c4d25742c77459f601b118060e7b539ce4a5944b SHA512 774561b07dd71bbe186fa6b2f056d703551ef5fd9e321a9bfa7a4344156964f0bdcb3c99dec6d4a53d8ba6aab373bbe10f15c3d59beb2fd185828eba64975171 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 deleted file mode 100644 index c6c780833079..000000000000 --- a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0-r2.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 ) - -inherit distutils-r1 - -DESCRIPTION="Implements CORS support for aiohttp asyncio-powered asynchronous HTTP server" -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" -KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" - -RDEPEND=" - >=dev-python/aiohttp-1.1.1[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/pytest-aiohttp[${PYTHON_USEDEP}] - dev-python/selenium[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -src_prepare() { - local PATCHES=( - # https://github.com/aio-libs/aiohttp-cors/pull/278 - "${FILESDIR}/${P}-tests.patch" - "${FILESDIR}/${P}-py3_7.patch" - # https://github.com/aio-libs/aiohttp-cors/pull/412 - "${FILESDIR}/${P}-py3_11.patch" - ) - - # doesn't do anything, except for breaking pytest-8 - rm conftest.py || die - - distutils-r1_src_prepare -} - -python_test() { - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -o addopts= -p aiohttp -p asyncio --asyncio-mode=auto -} diff --git a/dev-python/aiohttp-cors/aiohttp-cors-0.8.0.ebuild b/dev-python/aiohttp-cors/aiohttp-cors-0.8.0.ebuild deleted file mode 100644 index 234716d11dbb..000000000000 --- a/dev-python/aiohttp-cors/aiohttp-cors-0.8.0.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 ) - -inherit distutils-r1 - -DESCRIPTION="Implements CORS support for aiohttp asyncio-powered asynchronous HTTP server" -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" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" - -RDEPEND=" - >=dev-python/aiohttp-3.9[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/pytest-aiohttp[${PYTHON_USEDEP}] - dev-python/selenium[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -python_test() { - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -o addopts= -p aiohttp -p asyncio --asyncio-mode=auto -} diff --git a/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-py3_11.patch b/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-py3_11.patch deleted file mode 100644 index 2dd0df4b61e2..000000000000 --- a/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-py3_11.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 1eb2226aaf664d0be746753a32f82ee2e04c2f0b Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com> -Date: Tue, 1 Mar 2022 15:31:54 +0100 -Subject: [PATCH] Replace @asyncio.coroutine decorator with async def - -In Python 3.11 @asyncio.coroutine decorator was removed and it should -be replaced with async def call. - -Fixes: #280 ---- - tests/unit/test_cors_config.py | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/tests/unit/test_cors_config.py b/tests/unit/test_cors_config.py -index 817410e..9fe1052 100644 ---- a/tests/unit/test_cors_config.py -+++ b/tests/unit/test_cors_config.py -@@ -29,8 +29,7 @@ async def _handler(request): - - class _View(web.View, CorsViewMixin): - -- @asyncio.coroutine -- def get(self): -+ async def get(self): - return web.Response(text="Done") - - diff --git a/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-py3_7.patch b/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-py3_7.patch deleted file mode 100644 index 9a4610824099..000000000000 --- a/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-py3_7.patch +++ /dev/null @@ -1,23 +0,0 @@ -From e64b95848f3253157d831f4934841fceeaf9b2e3 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz> -Date: Thu, 14 Nov 2019 12:54:47 +0100 -Subject: [PATCH] Test instance type by isinstance, not issubclass - -https://github.com/aio-libs/aiohttp-cors/pull/278 -Fixes https://github.com/aio-libs/aiohttp-cors/issues/277 ---- - tests/unit/test_cors_config.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tests/unit/test_cors_config.py b/tests/unit/test_cors_config.py -index 817410e..d494e20 100644 ---- a/tests/unit/test_cors_config.py -+++ b/tests/unit/test_cors_config.py -@@ -103,7 +103,7 @@ def test_static_resource(app, cors): - "/file", "/", name="dynamic_named_route") - assert len(app.router.keys()) == 1 - for resource in list(app.router.resources()): -- if issubclass(resource, web.StaticResource): -+ if isinstance(resource, web.StaticResource): - cors.add(resource) - assert len(app.router.keys()) == 1 diff --git a/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-tests.patch b/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-tests.patch deleted file mode 100644 index e6480b58ea68..000000000000 --- a/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-tests.patch +++ /dev/null @@ -1,66 +0,0 @@ -From fed5542836c6afa925f3b607d544a92307c5e09f Mon Sep 17 00:00:00 2001 -From: Andrew Svetlov <andrew.svetlov@gmail.com> -Date: Mon, 15 Oct 2018 21:32:48 +0300 -Subject: [PATCH] Fix tests - ---- - tests/integration/test_real_browser.py | 18 ++++++++---------- - tests/unit/test_cors_config.py | 5 ++--- - 2 files changed, 10 insertions(+), 13 deletions(-) - -diff --git a/tests/integration/test_real_browser.py b/tests/integration/test_real_browser.py -index a5c9030..5dff79a 100644 ---- a/tests/integration/test_real_browser.py -+++ b/tests/integration/test_real_browser.py -@@ -193,22 +193,20 @@ class IntegrationServers: - - # Start servers. - for server_name, server_descr in self.servers.items(): -- handler = server_descr.app.make_handler() -- server = await self.loop.create_server( -- handler, -- sock=server_sockets[server_name]) -- server_descr.handler = handler -- server_descr.server = server -+ runner = web.AppRunner(server_descr.app) -+ await runner.setup() -+ site = web.SockSite(runner, server_sockets[server_name]) -+ await site.start() -+ server_descr.runner = runner - - self._logger.info("Started server '%s' at '%s'", - server_name, server_descr.url) - - async def stop_servers(self): - for server_descr in self.servers.values(): -- server_descr.server.close() -- await server_descr.handler.shutdown() -- await server_descr.server.wait_closed() -- await server_descr.app.cleanup() -+ runner = server_descr.runner -+ await runner.shutdown() -+ await runner.cleanup() - - self.servers = {} - -diff --git a/tests/unit/test_cors_config.py b/tests/unit/test_cors_config.py -index 5b8d8f3..817410e 100644 ---- a/tests/unit/test_cors_config.py -+++ b/tests/unit/test_cors_config.py -@@ -58,11 +58,10 @@ def options_route(app): - "OPTIONS", "/options_path", _handler) - - --def test_add_options_route(cors, options_route): -+def test_add_options_route(app, cors, options_route): - """Test configuring OPTIONS route""" -- - with pytest.raises(ValueError, -- match="/options_path already has OPTIONS handler"): -+ match="already has OPTIONS handler"): - cors.add(options_route.resource) - - --- -2.25.1 - |
