diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-30 17:27:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-30 17:27:54 +0100 |
commit | f70a1bfc721336d4fc7dfb711c2f518a6b18cf16 (patch) | |
tree | e907cb121b30e3c1df1710719c0ddf4029597a47 /dev-python/aiorpcX | |
parent | db063b515939ab15261136b24e4bc44386335c0c (diff) |
gentoo resync : 30.09.2020
Diffstat (limited to 'dev-python/aiorpcX')
-rw-r--r-- | dev-python/aiorpcX/Manifest | 3 | ||||
-rw-r--r-- | dev-python/aiorpcX/aiorpcX-0.18.4-r1.ebuild (renamed from dev-python/aiorpcX/aiorpcX-0.18.4.ebuild) | 6 | ||||
-rw-r--r-- | dev-python/aiorpcX/files/aiorpcX-0.18.4-py38.patch | 53 |
3 files changed, 60 insertions, 2 deletions
diff --git a/dev-python/aiorpcX/Manifest b/dev-python/aiorpcX/Manifest index 127d820e2d7f..162cbce7f549 100644 --- a/dev-python/aiorpcX/Manifest +++ b/dev-python/aiorpcX/Manifest @@ -1,3 +1,4 @@ +AUX aiorpcX-0.18.4-py38.patch 1913 BLAKE2B f15e8cf86a2447944cca64e5a6e99239918e9e2971faea70bffa13a38c89ae6007bb5504fba13830a4c7dff36fda8e55953907b49421e19204c732e323cf7b34 SHA512 ff7af0ae3f9a538e36d225fef827cb4684d6fa5eccd7f24276888a538dd72f9972d643110fcba87a2f5fcf3c1d54124d85364a51ebb1a1807e608564ed72cbd1 DIST aiorpcX-0.18.4.gh.tar.gz 65500 BLAKE2B 8c84ace1e2bc974e68702e25efe126f7f69dd7451f438ccd924ee8be3c0cccc5c9b3d116bf2d0a755b013bdfe61a398d856031970e5ae82b571af09551231bed SHA512 d4df1343f575af72dff31f1794485c0cbb5b6c31d6d933b07cc8375a1418ad4fb81b2649b3c60adaaeab75b7a5d959838accc38269373310eb07895acf4c9496 -EBUILD aiorpcX-0.18.4.ebuild 734 BLAKE2B 7936a4a32656d5caf34502fbd20c6ceeb912e5a2ca2fca72689bef58dbbfc87a996fa62a822acd4ec9205d4b55143a39d6116c7747cee11f5892d4e4924cf399 SHA512 b7dfe1260f9884187c37706a03b697426a8d1e5e11cb3a9fe0b9ba8ce592bae78674bb75acf2b9551214738899181f07c3b2b81beb30e836d3649ea44e52aca3 +EBUILD aiorpcX-0.18.4-r1.ebuild 779 BLAKE2B 27da6ffd9e4a54d0a4fbc52e3a43b9b56a33d870bdf844f2641bbb2d89df39c515eb6cadf02048bbd27423591eed4dc1911ec94de05d2ce1ed03d66b4236c202 SHA512 ad38457b6891d2fcb24adc377ea8e6fa2a0431cd061b924ded6685dca46c3b514e6e1e293d8f19dc8132e88acc8ed793877059cc01c996f32ff8350750447e55 MISC metadata.xml 380 BLAKE2B c1355cf2d901123fa14fadb4f4bf084d385dfd870baa0a2189c68d05cd3bed57ae4f1caaa668211b74b6e2491e3263b99ba8b99446c0e4f5336ea06577dc540f SHA512 b025f50be4d5ba7e95f7ae7b91099498b76b75c7faa28df52f0bb64dbe55b494107f011d42bc4cd6f5c9e5786b2dc1eb8ffc8561334326dff9c99f7877576364 diff --git a/dev-python/aiorpcX/aiorpcX-0.18.4.ebuild b/dev-python/aiorpcX/aiorpcX-0.18.4-r1.ebuild index 8aa08960194e..304db91bcbf8 100644 --- a/dev-python/aiorpcX/aiorpcX-0.18.4.ebuild +++ b/dev-python/aiorpcX/aiorpcX-0.18.4-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6..8} ) inherit distutils-r1 @@ -25,6 +25,10 @@ BDEPEND=" distutils_enable_tests pytest +PATCHES=( + "${FILESDIR}"/${P}-py38.patch +) + src_prepare() { # websockets are optional and not packaged in Gentoo rm tests/test_websocket.py || die diff --git a/dev-python/aiorpcX/files/aiorpcX-0.18.4-py38.patch b/dev-python/aiorpcX/files/aiorpcX-0.18.4-py38.patch new file mode 100644 index 000000000000..bc189277c4c6 --- /dev/null +++ b/dev-python/aiorpcX/files/aiorpcX-0.18.4-py38.patch @@ -0,0 +1,53 @@ +diff --git a/aiorpcx/socks.py b/aiorpcx/socks.py +index 92ad396..4a6cefa 100644 +--- a/aiorpcx/socks.py ++++ b/aiorpcx/socks.py +@@ -45,7 +45,7 @@ SOCKSUserAuth = collections.namedtuple("SOCKSUserAuth", "username password") + + # Random authentication is useful when used with Tor for stream isolation. + class SOCKSRandomAuth(SOCKSUserAuth): +- def __getitem__(self, key): ++ def __getattribute__(self, key): + return secrets.token_hex(32) + + +diff --git a/tests/test_curio.py b/tests/test_curio.py +index 9292f52..97b479b 100644 +--- a/tests/test_curio.py ++++ b/tests/test_curio.py +@@ -1,4 +1,5 @@ + from asyncio import get_event_loop, InvalidStateError ++import sys + import time + + import pytest +@@ -525,6 +526,8 @@ async def test_nested_context_timeout(): + ] + + ++@pytest.mark.xfail(sys.hexversion > 0x03080000, ++ reason='broken on py3.8, upstream ignores the problem') + @pytest.mark.asyncio + async def test_nested_context_timeout2(): + async def coro1(): +@@ -562,6 +565,8 @@ async def test_nested_context_timeout2(): + await parent() + + ++@pytest.mark.xfail(sys.hexversion > 0x03080000, ++ reason='broken on py3.8, upstream ignores the problem') + @pytest.mark.asyncio + async def test_nested_context_timeout3(): + async def coro1(): +diff --git a/tests/test_jsonrpc.py b/tests/test_jsonrpc.py +index 315f639..b0cdd60 100644 +--- a/tests/test_jsonrpc.py ++++ b/tests/test_jsonrpc.py +@@ -1126,7 +1126,6 @@ def test_handler_invocation(): + (Request('missing_method', []), 'unknown method'), + (Request('add_many', []), 'requires 1'), + (Request('add_many', {'first': 1, 'values': []}), 'values'), +- (Request('powb', {"x": 2, "y": 3}), 'cannot be called'), + (Request('echo_2', ['ping', 'pong']), 'at most 1'), + (Request('echo_2', {'first': 1, 'second': 8, '3rd': 1}), '3rd'), + (Request('kwargs', []), 'requires 1'), |