* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/aiohttp-cors/files/, dev-python/aiohttp-cors/
@ 2020-03-31 18:30 Alessandro Barbieri
0 siblings, 0 replies; 3+ messages in thread
From: Alessandro Barbieri @ 2020-03-31 18:30 UTC (permalink / raw
To: gentoo-commits
commit: 16bc3db95e54f77749c40803fc26bb9ea21d0ba6
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Mar 31 18:03:56 2020 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Mar 31 18:30:12 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=16bc3db9
dev-python/aiohttp-cors: treecleaned package
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/aiohttp-cors/Manifest | 1 +
dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild | 35 ++++++++++++
.../files/aiohttp-cors-0.7.0-tests.patch | 66 ++++++++++++++++++++++
dev-python/aiohttp-cors/metadata.xml | 8 +++
4 files changed, 110 insertions(+)
diff --git a/dev-python/aiohttp-cors/Manifest b/dev-python/aiohttp-cors/Manifest
new file mode 100644
index 0000000..4912de9
--- /dev/null
+++ b/dev-python/aiohttp-cors/Manifest
@@ -0,0 +1 @@
+DIST aiohttp-cors-0.7.0.tar.gz 39728 BLAKE2B 747499856272f551cf8e2e0911ff7cbb2c7cb8a1f3159327dd8f0d40cabbbd9713a1a9e30ef9c99f3f9642567c99025e049db837c89f907d6698a27005ac2632 SHA512 72e0b365b952c08a02c1123d7672cfea01063e2ff01743a71e10f804d22178edc0f1c6b7f87b7ed484ca7c24e89a32de90d0d279f2f5c060427319182f9bdd3b
diff --git a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild
new file mode 100644
index 0000000..bcc2930
--- /dev/null
+++ b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_6 )
+
+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"
+EGIT_REPO_URI="https://github.com/aio-libs/aiohttp-cors"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~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
+
+PATCHES=(
+ "${FILESDIR}"/aiohttp-cors-0.7.0-tests.patch
+)
+
+src_prepare() {
+ sed -i -e '/^addopts=/d' setup.cfg || die
+ distutils-r1_src_prepare
+}
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
new file mode 100644
index 0000000..e6480b5
--- /dev/null
+++ b/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-tests.patch
@@ -0,0 +1,66 @@
+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
+
diff --git a/dev-python/aiohttp-cors/metadata.xml b/dev-python/aiohttp-cors/metadata.xml
new file mode 100644
index 0000000..90e51cd
--- /dev/null
+++ b/dev-python/aiohttp-cors/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="github">aio-libs/aiohttp-cors</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/aiohttp-cors/files/, dev-python/aiohttp-cors/
2020-03-31 20:08 [gentoo-commits] repo/proj/guru:master commit in: dev-python/aiohttp-cors/, dev-python/aiohttp-cors/files/ Andrew Ammerlaan
@ 2020-03-31 20:07 ` Andrew Ammerlaan
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Ammerlaan @ 2020-03-31 20:07 UTC (permalink / raw
To: gentoo-commits
commit: 41f57b145a777f4f247b1ad541f663d50c081a0a
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Tue Mar 31 19:57:14 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue Mar 31 19:57:14 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=41f57b14
dev-python/aiohttp-cors: add patch for py3_7
https://github.com/aio-libs/aiohttp-cors/pull/278
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild | 7 ++++---
.../files/aiohttp-cors-0.7.0-py3_7.patch | 22 ++++++++++++++++++++++
2 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild
index bcc2930..4e87a24 100644
--- a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild
+++ b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild
@@ -3,14 +3,13 @@
EAPI=7
-PYTHON_COMPAT=( python3_6 )
+PYTHON_COMPAT=( python3_{6,7} )
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"
-EGIT_REPO_URI="https://github.com/aio-libs/aiohttp-cors"
LICENSE="Apache-2.0"
SLOT="0"
@@ -25,8 +24,10 @@ BDEPEND="
distutils_enable_tests pytest
+# https://github.com/aio-libs/aiohttp-cors/pull/278
PATCHES=(
- "${FILESDIR}"/aiohttp-cors-0.7.0-tests.patch
+ "${FILESDIR}/${P}-tests.patch"
+ "${FILESDIR}/${P}-py3_7.patch"
)
src_prepare() {
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
new file mode 100644
index 0000000..e09119c
--- /dev/null
+++ b/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-py3_7.patch
@@ -0,0 +1,22 @@
+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
+
+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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/aiohttp-cors/files/, dev-python/aiohttp-cors/
2020-05-14 12:39 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
@ 2020-05-14 12:39 ` Andrew Ammerlaan
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Ammerlaan @ 2020-05-14 12:39 UTC (permalink / raw
To: gentoo-commits
commit: f92b187003eadbd0f2f59e6a0f85e7c8e6f9122b
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Thu May 14 12:38:59 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Thu May 14 12:38:59 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f92b1870
dev-python: aiohttp-cors moved to ::gentoo
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
dev-python/aiohttp-cors/Manifest | 1 -
dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild | 36 ------------
.../files/aiohttp-cors-0.7.0-py3_7.patch | 22 --------
.../files/aiohttp-cors-0.7.0-tests.patch | 66 ----------------------
dev-python/aiohttp-cors/metadata.xml | 8 ---
5 files changed, 133 deletions(-)
diff --git a/dev-python/aiohttp-cors/Manifest b/dev-python/aiohttp-cors/Manifest
deleted file mode 100644
index 4912de9..0000000
--- a/dev-python/aiohttp-cors/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST aiohttp-cors-0.7.0.tar.gz 39728 BLAKE2B 747499856272f551cf8e2e0911ff7cbb2c7cb8a1f3159327dd8f0d40cabbbd9713a1a9e30ef9c99f3f9642567c99025e049db837c89f907d6698a27005ac2632 SHA512 72e0b365b952c08a02c1123d7672cfea01063e2ff01743a71e10f804d22178edc0f1c6b7f87b7ed484ca7c24e89a32de90d0d279f2f5c060427319182f9bdd3b
diff --git a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild b/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild
deleted file mode 100644
index 4e87a24..0000000
--- a/dev-python/aiohttp-cors/aiohttp-cors-0.7.0.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6,7} )
-
-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"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~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
-
-# https://github.com/aio-libs/aiohttp-cors/pull/278
-PATCHES=(
- "${FILESDIR}/${P}-tests.patch"
- "${FILESDIR}/${P}-py3_7.patch"
-)
-
-src_prepare() {
- sed -i -e '/^addopts=/d' setup.cfg || die
- distutils-r1_src_prepare
-}
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 e09119c..0000000
--- a/dev-python/aiohttp-cors/files/aiohttp-cors-0.7.0-py3_7.patch
+++ /dev/null
@@ -1,22 +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
-
-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 e6480b5..0000000
--- 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
-
diff --git a/dev-python/aiohttp-cors/metadata.xml b/dev-python/aiohttp-cors/metadata.xml
deleted file mode 100644
index 90e51cd..0000000
--- a/dev-python/aiohttp-cors/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <!-- maintainer-needed -->
- <upstream>
- <remote-id type="github">aio-libs/aiohttp-cors</remote-id>
- </upstream>
-</pkgmetadata>
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-14 12:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-31 18:30 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/aiohttp-cors/files/, dev-python/aiohttp-cors/ Alessandro Barbieri
-- strict thread matches above, loose matches on Subject: below --
2020-03-31 20:08 [gentoo-commits] repo/proj/guru:master commit in: dev-python/aiohttp-cors/, dev-python/aiohttp-cors/files/ Andrew Ammerlaan
2020-03-31 20:07 ` [gentoo-commits] repo/proj/guru:dev commit in: dev-python/aiohttp-cors/files/, dev-python/aiohttp-cors/ Andrew Ammerlaan
2020-05-14 12:39 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-05-14 12:39 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox