diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-10 00:03:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-10 00:03:27 +0000 |
commit | 71e206c31e948709a88fafc342bd2d8695942aa5 (patch) | |
tree | 5a725c301c38681ee78bf527d6b813cfed0ba45d /dev-python | |
parent | b99d094da26977938043a92f89ef882a70250cf8 (diff) |
gentoo auto-resync : 10:03:2023 - 00:03:27
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/Manifest.gz | bin | 260527 -> 260693 bytes | |||
-rw-r--r-- | dev-python/boltons/Manifest | 2 | ||||
-rw-r--r-- | dev-python/boltons/boltons-23.0.0.ebuild | 2 | ||||
-rw-r--r-- | dev-python/selenium/Manifest | 3 | ||||
-rw-r--r-- | dev-python/selenium/selenium-4.8.2.ebuild | 58 | ||||
-rw-r--r-- | dev-python/trio-websocket/Manifest | 4 | ||||
-rw-r--r-- | dev-python/trio-websocket/files/trio-websocket-0.9.2-async-gen.patch | 79 | ||||
-rw-r--r-- | dev-python/trio-websocket/metadata.xml | 13 | ||||
-rw-r--r-- | dev-python/trio-websocket/trio-websocket-0.9.2.ebuild | 47 |
9 files changed, 206 insertions, 2 deletions
diff --git a/dev-python/Manifest.gz b/dev-python/Manifest.gz Binary files differindex 886d42084079..d3a3793d0219 100644 --- a/dev-python/Manifest.gz +++ b/dev-python/Manifest.gz diff --git a/dev-python/boltons/Manifest b/dev-python/boltons/Manifest index a9ab295f53c5..f9fbffd62e72 100644 --- a/dev-python/boltons/Manifest +++ b/dev-python/boltons/Manifest @@ -3,5 +3,5 @@ AUX boltons-21.0.0-python3.11-tests.patch 267 BLAKE2B 03af16f7f058094369f97aa475 DIST boltons-21.0.0.gh.tar.gz 241010 BLAKE2B e8c7cba3aadc40fbf40b784c8060d7b4f9d89457a4416c8fe9c733c3a35cf292609b2cc4e43e20a1308add6b854c3e00cb55274328a14699b3c704b73c189318 SHA512 5f5d642ab8ce0bc26133f4bd5059071bc86ca8e6619ebac796d522a0e4c39b958176ccc9de9a56e0448b24bdcf569e73f51011d5a9fc875bdef12a363f106018 DIST boltons-23.0.0.gh.tar.gz 243426 BLAKE2B 94913e31611d844404df9514e3449ec8142c142c3e3fc223d912a5e6ab22e5a502ebf1594e3ea9143eb57d80745e34d5e19080bb24e1ad9b42b52cc544c608d4 SHA512 f8e2ed488dbdf0dfa4090aac8c6ee97c382fdf8a2728567e2a5542f46bb00932f3b9498865d45a718216d5f9355e419a228c624844c25f89df458e00bc9e2e83 EBUILD boltons-21.0.0-r1.ebuild 966 BLAKE2B 8e3cb26a592ad00ae977d2cdb39d3f28746e8548dd75428cba47819c91a143823181df106c1b05083c9dcadcf812af66a33668c18820a6f6acba943869500a8f SHA512 33f60024fbbcbfa228e47d7cbdb6960f55ce1a679ec3b52bc95e46648e701a1a1f0d865e85a842bdcfd16fde928b36257f274ee6cf79db732cc31cfd03819b92 -EBUILD boltons-23.0.0.ebuild 821 BLAKE2B 3ba2469c348dc67a28fd560b4da0e412217d13bf3425946761ad5cb4f6ffc89761e77b964efc9df913b38c4fb483dfe1fb050ec6f6e6bb4a909c6806e769da61 SHA512 d10e0eabc27e67b424221d2102c8fb3c4f65455360ef6fc2b158d44162d40fc6880d9db45fe4ef0beb98659134667e5a6862e220f39e16520873ad6043ecd924 +EBUILD boltons-23.0.0.ebuild 820 BLAKE2B 5850d1dee9fe56b856ad668d12d21839e703c8c2ee32dc1cb08094034ae77fd18af845e7101498b189f552d8d5503a38e32be40c8f08ecd3ef19e1861c3a2059 SHA512 049b49826a74d57d8c2dfb78c06af2c93d2652f22818ec9e287fccbebfab387099f76bd6ed233d78f6a7efd2f48b421f68d55d9c43c04fdf42634d978d544bfb MISC metadata.xml 395 BLAKE2B 6ed304f1dced75dfd795b9fe582ec669bf1c8ba5fefeb9e753b11aa20de8fc0966fc9a8a0ed40e460dd23a67ef0e5721a8dae27b3d799a4be629537bb18f54c9 SHA512 fb73041a95df230153dc686e21a88d91bb06367ae8c22a20777c4a0f13202cbaf59396f4ed2630265d331d6461a6da85f57ba62cc432c4d9105b8404753b383b diff --git a/dev-python/boltons/boltons-23.0.0.ebuild b/dev-python/boltons/boltons-23.0.0.ebuild index 4370b49cd258..1a5d4cd450be 100644 --- a/dev-python/boltons/boltons-23.0.0.ebuild +++ b/dev-python/boltons/boltons-23.0.0.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/mahmoud/boltons/archive/${PV}.tar.gz -> ${P}.gh.tar. LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" distutils_enable_tests pytest distutils_enable_sphinx docs \ diff --git a/dev-python/selenium/Manifest b/dev-python/selenium/Manifest index e2fc3807864e..53b0fc58a2e5 100644 --- a/dev-python/selenium/Manifest +++ b/dev-python/selenium/Manifest @@ -1,3 +1,6 @@ DIST selenium-4.5.0-py3-none-any.whl 995204 BLAKE2B 214050a4e410a4689255ec8472a1cb35a37596e73d46c48769aa8e184b6f84e281a20e7e5f812b8185edacfcbca6eed77507aa59ffcaeae384f962b4214928a0 SHA512 b22d80d750c85337a2b793799b5a63b11bed45d11b874c1a64c02f53b4adb57263e69bebc79203de3bdfa5b8708203959971723cf0aef7fb68bd1b2a9028e9d9 +DIST selenium-4.8.2.tar.gz 6729347 BLAKE2B b3c4632287a4544bc159122c8a2522463ac9c422f305d9dafb05984bf561f237299a11fd21d508e2b33696f5e24cb6e5bc910866c42aa4700d2a32635c4b6394 SHA512 247dce400860f81cbb4b948a5d0065680f3aeb9b570a15c5c94ba9c3bcbc0e3cfe0b84eafaa83a03b77bfad433df508f3dcd0094b0149b4d3f19d60a60587dcd +DIST selenium-selenium-4.8.2-python.gh.tar.gz 90628267 BLAKE2B e5d6dd0615cd7410e7328f1551b3ecbf421fb12ae20a602f8d23a6260520eefdc888b4ac210e00366da047ff3f755794e366e4cbaed1e7822b1f0254bf58af53 SHA512 f28b4da43cf95df67b75a44dd1b95a09360e70ad06506b5f617bf94fcc15e086688a282d8c3e4d4e3ddf7dad13aa7e842b36472d916ed5233af0e9dd61fbcd07 EBUILD selenium-4.5.0.ebuild 806 BLAKE2B 9f0094a94cdc6868b2f696fb66dfe6993cea0a500b483cf320068a449a525e10afe60838e522cfe6c232a6e46446ed5e81663540f4a3e14d1a91a805a28b1984 SHA512 67ee4598918d5b2f9664c22318197363ab4e8dbc6efc02cd861c0a4090a9a8c0f2c81ec256bf40d6fae0c70170d573889589ca146045b745e065497624046ccb +EBUILD selenium-4.8.2.ebuild 1533 BLAKE2B 23b02d48ef60f324c9e9f9fd864c40abdc5728273e354a3d07f0cfd0dfd0d9ef18194113439a36f97bb821919e310939f187cac98092684f4c2ed9c2d37dde2d SHA512 547dabeee7c9184699f5b583c68a4d3ea2ec157d79d5bfb4903775b8d707aade4a63cb86d521b2de84a55ca0db1a76a0356e0042faf5511fd669beff066f363e MISC metadata.xml 383 BLAKE2B d437d1631cefdba12fe2c3ce38ddff34bf9dd2bbc777d5d3425556bda76865711c991c9e3a735130a1d55cb7c6578b083ecb473c28706a2d45563b31bdbe6d1b SHA512 c087323da996b9ad4d0bf8f00306cf044d5daab194b60af029cb1ce06bf60c660fd5959b7914e6f1103143c3e4533d293a6d3bd0ec1c95163eba09d8a19c13a1 diff --git a/dev-python/selenium/selenium-4.8.2.ebuild b/dev-python/selenium/selenium-4.8.2.ebuild new file mode 100644 index 000000000000..4fbb2e8bc92b --- /dev/null +++ b/dev-python/selenium/selenium-4.8.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 pypi + +# upstream sometimes tags it as ${P}, sometimes as ${P}-python, sigh +TEST_TAG=${P}-python +TEST_P=selenium-${TEST_TAG} + +DESCRIPTION="Python language binding for Selenium Remote Control" +HOMEPAGE=" + https://www.seleniumhq.org/ + https://github.com/SeleniumHQ/selenium/tree/trunk/py/ + https://pypi.org/project/selenium/ +" +SRC_URI+=" + test? ( + https://github.com/SeleniumHQ/selenium/archive/${TEST_TAG}.tar.gz + -> ${TEST_P}.gh.tar.gz + ) +" + +KEYWORDS="~amd64" +LICENSE="Apache-2.0" +SLOT="0" + +RDEPEND=" + >=dev-python/certifi-2021.10.8[${PYTHON_USEDEP}] + <dev-python/trio-1[${PYTHON_USEDEP}] + >=dev-python/trio-0.17[${PYTHON_USEDEP}] + <dev-python/trio-websocket-1[${PYTHON_USEDEP}] + >=dev-python/trio-websocket-0.9[${PYTHON_USEDEP}] + <dev-python/urllib3-2[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.26[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # TODO: we may need extra setup or deps + test/selenium + + # expects vanilla certifi + test/unit/selenium/webdriver/remote/remote_connection_tests.py::test_get_connection_manager_for_certs_and_timeout + ) + + cd "${WORKDIR}/${TEST_P}/py" || die + rm -rf selenium || die + # https://github.com/SeleniumHQ/selenium/blob/selenium-4.8.2-python/py/test/runner/run_pytest.py#L20-L24 + # seriously? + epytest -o "python_files=*_tests.py test_*.py" +} diff --git a/dev-python/trio-websocket/Manifest b/dev-python/trio-websocket/Manifest new file mode 100644 index 000000000000..d6ca7ce7b105 --- /dev/null +++ b/dev-python/trio-websocket/Manifest @@ -0,0 +1,4 @@ +AUX trio-websocket-0.9.2-async-gen.patch 2466 BLAKE2B f86007cd76395954fb7691a94814509d2871ef7a637b93b40f5b8b275f42ddf496d8012f35756693ed88de38ab29d06690e2a9a8e6f99e00acf2c156734c7a53 SHA512 b3d20d131b4c036b12b725ad732bf87d3aafade16cefe6e55083267afc916a026d15f3976bb7da56124d6995541c27a0d87283d1154aee029ce32914aee5fc20 +DIST trio-websocket-0.9.2.gh.tar.gz 43146 BLAKE2B f5463d20253c3686a0d0fe4cb38ffec235c4378c14ed2952b3518486602b06bb961291d098542a52dee7e25506713df382e303cd2dc7fa579041124d66c8ecb8 SHA512 0f25a7d234a6d9f7c0c0bdbbd2836e6baee02b4ff2daab8354f8fd483a10de65fe357a273675a172227b1b0e9f7cf6cf27ddfdf9426d1b330122a8b2ef957435 +EBUILD trio-websocket-0.9.2.ebuild 1023 BLAKE2B e9cf3ca15aeaf47e58fb6695f1c664f4b9728c9757a56181fef414834b3475425ff75c3453479f5b8b630cbda17d63b028c3bfe4933d63a4e9396e498dd7e20c SHA512 45bcb3438b2931dd9cad3f9bffe55b844375caab27cad577e6afda619e5e25dda4b81f33a2013cc05737cc39914a97575bc45c694f23d23d242be5f04638dfa6 +MISC metadata.xml 409 BLAKE2B 68c9d1ab2984909315d2ec3f91f2703cc0941911fb049c35614c2cdc935e55f0f2440f6624aab4838f0d7d07e3e5717d19c7138660e82f8a3cb237e610a974e1 SHA512 c9d5e6f956b40d03d0a062ded846c507e783c55404a76b75141004df7d43e6a8bf5810480b4286a6bdf2d48c30aad51261e48581abb8799c107b924cd8131170 diff --git a/dev-python/trio-websocket/files/trio-websocket-0.9.2-async-gen.patch b/dev-python/trio-websocket/files/trio-websocket-0.9.2-async-gen.patch new file mode 100644 index 000000000000..7631e2118678 --- /dev/null +++ b/dev-python/trio-websocket/files/trio-websocket-0.9.2-async-gen.patch @@ -0,0 +1,79 @@ +From 37388d8122960f6aec707a9aa30a310bdc67610a Mon Sep 17 00:00:00 2001 +From: John Belmonte <john@neggie.net> +Date: Sat, 21 Nov 2020 15:38:54 +0900 +Subject: [PATCH] use native async generator support + +--- + tests/test_connection.py | 7 ++----- + trio_websocket/_impl.py | 5 ++--- + 2 files changed, 4 insertions(+), 8 deletions(-) + +diff --git a/tests/test_connection.py b/tests/test_connection.py +index 8af07a9..7832355 100644 +--- a/tests/test_connection.py ++++ b/tests/test_connection.py +@@ -37,7 +37,6 @@ + import pytest + import trio + import trustme +-from async_generator import async_generator, yield_ + from trio.testing import memory_stream_pair + from wsproto.events import CloseConnection + +@@ -78,24 +77,22 @@ + + + @pytest.fixture +-@async_generator + async def echo_server(nursery): + ''' A server that reads one message, sends back the same message, + then closes the connection. ''' + serve_fn = partial(serve_websocket, echo_request_handler, HOST, 0, + ssl_context=None) + server = await nursery.start(serve_fn) +- await yield_(server) ++ yield server + + + @pytest.fixture +-@async_generator + async def echo_conn(echo_server): + ''' Return a client connection instance that is connected to an echo + server. ''' + async with open_websocket(HOST, echo_server.port, RESOURCE, + use_ssl=False) as conn: +- await yield_(conn) ++ yield conn + + + async def echo_request_handler(request): +diff --git a/trio_websocket/_impl.py b/trio_websocket/_impl.py +index 693c379..440d0e2 100644 +--- a/trio_websocket/_impl.py ++++ b/trio_websocket/_impl.py +@@ -9,7 +9,7 @@ + import struct + import urllib.parse + +-from async_generator import async_generator, yield_, asynccontextmanager ++from async_generator import asynccontextmanager + import trio + import trio.abc + from wsproto import ConnectionType, WSConnection +@@ -65,7 +65,6 @@ def remove_cancels(exc): + + + @asynccontextmanager +-@async_generator + async def open_websocket(host, port, resource, *, use_ssl, subprotocols=None, + extra_headers=None, + message_queue_size=MESSAGE_QUEUE_SIZE, max_message_size=MAX_MESSAGE_SIZE, +@@ -115,7 +114,7 @@ async def open_websocket(host, port, resource, *, use_ssl, subprotocols=None, + except OSError as e: + raise HandshakeError from e + try: +- await yield_(connection) ++ yield connection + finally: + try: + with trio.fail_after(disconnect_timeout): diff --git a/dev-python/trio-websocket/metadata.xml b/dev-python/trio-websocket/metadata.xml new file mode 100644 index 000000000000..f92b85725b72 --- /dev/null +++ b/dev-python/trio-websocket/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="github">HyperionGray/trio-websocket</remote-id> + <remote-id type="pypi">trio-websocket</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/trio-websocket/trio-websocket-0.9.2.ebuild b/dev-python/trio-websocket/trio-websocket-0.9.2.ebuild new file mode 100644 index 000000000000..c0129ead5201 --- /dev/null +++ b/dev-python/trio-websocket/trio-websocket-0.9.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{9..11} ) + +inherit distutils-r1 + +DESCRIPTION="WebSocket client and server implementation for Python Trio" +HOMEPAGE=" + https://github.com/HyperionGray/trio-websocket/ + https://pypi.org/project/trio-websocket/ +" +SRC_URI=" + https://github.com/HyperionGray/trio-websocket/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/async_generator-1.10[${PYTHON_USEDEP}] + >=dev-python/trio-0.11[${PYTHON_USEDEP}] + >=dev-python/wsproto-0.14[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/pytest-trio-0.5.0[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + # backport from https://github.com/HyperionGray/trio-websocket/pull/138/ + "${FILESDIR}"/${P}-async-gen.patch +) + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p trio +} |