Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/websockets/files/, dev-python/websockets/
Date: Fri, 08 Apr 2022 14:37:06
Message-Id: 1649428594.002272f4effdc83eb7bdc3bd5b64f7770a83c0e3.mgorny@gentoo
1 commit: 002272f4effdc83eb7bdc3bd5b64f7770a83c0e3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 8 14:36:34 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 8 14:36:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=002272f4
7
8 dev-python/websockets: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/websockets/Manifest | 2 --
13 .../websockets-10.0-py3.9-fix-deprecation.patch | 35 ----------------------
14 dev-python/websockets/websockets-10.0.ebuild | 33 --------------------
15 dev-python/websockets/websockets-10.1.ebuild | 27 -----------------
16 4 files changed, 97 deletions(-)
17
18 diff --git a/dev-python/websockets/Manifest b/dev-python/websockets/Manifest
19 index 71abe54223dd..8b086337648b 100644
20 --- a/dev-python/websockets/Manifest
21 +++ b/dev-python/websockets/Manifest
22 @@ -1,3 +1 @@
23 -DIST websockets-10.0-src.tar.gz 276231 BLAKE2B 6170f0540bc33be3d9a71f596ffee58e6e43c2173239a8fffe4f0c2a7555f8ce26849d85ed7865a5df6a4401f01bb0c928a341598916487cc79152a5031e9bbc SHA512 532289dc411d11cffc6e5aa07013cdad9655f124fbbd5dbdfe92985caf554644976a521466b1d3cbe124de11809e395b5e83195eac87495585779591b189c4d7
24 -DIST websockets-10.1-src.tar.gz 299315 BLAKE2B 425e7c8597f081874127ac75003aed11ebb2cf647ce9fed9e17c955e485a7a59c95d1112524d3f0d747b796b0cc41972258661c9fc9c7972f68aaebe3223b596 SHA512 c284ec92bc133c7083a72d4f364d9ace13d3eb6d7355ae46084d8097c137cdec3933cae9d5ab72d8a517af38328cea6c39877f747f5386df54a7362271cc7e7b
25 DIST websockets-10.2-src.tar.gz 302766 BLAKE2B 2313bab904de3671f973191f1c43d275ede44c87811d82f22c6bd76145610ba5d4ba4d7a1b3a564bfc8c4a9b7921b2edc640af9304733e85deac1e728f0050f3 SHA512 b8c7fbe627e1c411112b0d66e561aa9bcf15d6de07a9cccd203211e0e6af49762774e09f8c5f4523fe214731ae7a96ed4b63639c7ed66fee062cdda3e5fba350
26
27 diff --git a/dev-python/websockets/files/websockets-10.0-py3.9-fix-deprecation.patch b/dev-python/websockets/files/websockets-10.0-py3.9-fix-deprecation.patch
28 deleted file mode 100644
29 index bbfb500b9094..000000000000
30 --- a/dev-python/websockets/files/websockets-10.0-py3.9-fix-deprecation.patch
31 +++ /dev/null
32 @@ -1,35 +0,0 @@
33 ---- a/tests/legacy/test_client_server.py
34 -+++ b/tests/legacy/test_client_server.py
35 -@@ -229,7 +229,6 @@ class ClientServerTestsMixin:
36 - and "remove loop argument" not in expected_warnings
37 - ): # pragma: no cover
38 - expected_warnings += ["There is no current event loop"]
39 -- self.assertDeprecationWarnings(recorded_warnings, expected_warnings)
40 -
41 - def start_client(
42 - self, resource_name="/", user_info=None, deprecation_warnings=None, **kwargs
43 -@@ -255,7 +254,6 @@ class ClientServerTestsMixin:
44 - and "remove loop argument" not in expected_warnings
45 - ): # pragma: no cover
46 - expected_warnings += ["There is no current event loop"]
47 -- self.assertDeprecationWarnings(recorded_warnings, expected_warnings)
48 -
49 - def stop_client(self):
50 - try:
51 -@@ -457,16 +455,12 @@ class CommonClientServerTests:
52 - with warnings.catch_warnings(record=True) as recorded_warnings:
53 - unix_server = unix_serve(default_handler, path, loop=self.loop)
54 - self.server = self.loop.run_until_complete(unix_server)
55 -- self.assertDeprecationWarnings(recorded_warnings, ["remove loop argument"])
56 -
57 - try:
58 - # Like self.start_client() but with unix_connect()
59 - with warnings.catch_warnings(record=True) as recorded_warnings:
60 - unix_client = unix_connect(path, loop=self.loop)
61 - self.client = self.loop.run_until_complete(unix_client)
62 -- self.assertDeprecationWarnings(
63 -- recorded_warnings, ["remove loop argument"]
64 -- )
65 - try:
66 - self.loop.run_until_complete(self.client.send("Hello!"))
67 - reply = self.loop.run_until_complete(self.client.recv())
68
69 diff --git a/dev-python/websockets/websockets-10.0.ebuild b/dev-python/websockets/websockets-10.0.ebuild
70 deleted file mode 100644
71 index 18adcbacd68c..000000000000
72 --- a/dev-python/websockets/websockets-10.0.ebuild
73 +++ /dev/null
74 @@ -1,33 +0,0 @@
75 -# Copyright 1999-2021 Gentoo Authors
76 -# Distributed under the terms of the GNU General Public License v2
77 -
78 -EAPI=8
79 -
80 -PYTHON_COMPAT=( python3_{8..10} )
81 -
82 -inherit distutils-r1
83 -
84 -DESCRIPTION="Library for building WebSocket servers and clients in Python"
85 -HOMEPAGE="https://websockets.readthedocs.io/"
86 -SRC_URI="
87 - https://github.com/aaugustin/${PN}/archive/${PV}.tar.gz -> ${P}-src.tar.gz
88 -"
89 -
90 -LICENSE="BSD"
91 -SLOT="0"
92 -KEYWORDS="amd64 arm arm64 hppa ppc ppc64 ~riscv sparc x86"
93 -
94 -distutils_enable_tests unittest
95 -
96 -PATCHES=(
97 - # Fails checks for deprecations warnings on py3.9 for the loop argument
98 - "${FILESDIR}/${P}-py3.9-fix-deprecation.patch"
99 -)
100 -
101 -src_prepare() {
102 - # these fail due to timeouts on slower hardware
103 - sed -e 's:test_keepalive_ping_with_no_ping_timeout:_&:' \
104 - -e 's:test_keepalive_ping(:_&:' \
105 - -i tests/legacy/test_protocol.py || die
106 - distutils-r1_src_prepare
107 -}
108
109 diff --git a/dev-python/websockets/websockets-10.1.ebuild b/dev-python/websockets/websockets-10.1.ebuild
110 deleted file mode 100644
111 index 56fdcc373e66..000000000000
112 --- a/dev-python/websockets/websockets-10.1.ebuild
113 +++ /dev/null
114 @@ -1,27 +0,0 @@
115 -# Copyright 1999-2021 Gentoo Authors
116 -# Distributed under the terms of the GNU General Public License v2
117 -
118 -EAPI=8
119 -
120 -PYTHON_COMPAT=( python3_{8..10} )
121 -inherit distutils-r1
122 -
123 -DESCRIPTION="Library for building WebSocket servers and clients in Python"
124 -HOMEPAGE="https://websockets.readthedocs.io/"
125 -SRC_URI="
126 - https://github.com/aaugustin/${PN}/archive/${PV}.tar.gz -> ${P}-src.tar.gz
127 -"
128 -
129 -LICENSE="BSD"
130 -SLOT="0"
131 -KEYWORDS="amd64 ~arm arm64 hppa ppc ppc64 ~riscv sparc x86"
132 -
133 -distutils_enable_tests unittest
134 -
135 -src_prepare() {
136 - # these fail due to timeouts on slower hardware
137 - sed -e 's:test_keepalive_ping_with_no_ping_timeout:_&:' \
138 - -e 's:test_keepalive_ping(:_&:' \
139 - -i tests/legacy/test_protocol.py || die
140 - distutils-r1_src_prepare
141 -}