1 |
commit: cf4b38cf4c8d122af96d0991937a08cbb8fa57fb |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 1 10:00:21 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 1 10:00:21 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf4b38cf |
7 |
|
8 |
dev-python/paramiko: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/paramiko/Manifest | 3 - |
13 |
.../paramiko/files/paramiko-2.7.1-tests.patch | 120 --------------------- |
14 |
dev-python/paramiko/paramiko-2.10.3.ebuild | 55 ---------- |
15 |
dev-python/paramiko/paramiko-2.10.4.ebuild | 55 ---------- |
16 |
dev-python/paramiko/paramiko-2.10.5.ebuild | 62 ----------- |
17 |
5 files changed, 295 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/paramiko/Manifest b/dev-python/paramiko/Manifest |
20 |
index 569c9ed592a5..aa0b682d200c 100644 |
21 |
--- a/dev-python/paramiko/Manifest |
22 |
+++ b/dev-python/paramiko/Manifest |
23 |
@@ -1,4 +1 @@ |
24 |
-DIST paramiko-2.10.3.tar.gz 347738 BLAKE2B ccc66a7e0fe3f777e74b94374ed59435eda440fe0aeab3871e68a132610193d2fadca1fd200db3d194566b8a2a8d6ff889d71594fed69a01fb97ca43b967e957 SHA512 e1fce2ad33ee2942b519458d53497671e66d4777c23877954b135cf9bb8ec43357156147c7e012956ccf6198de800835a617b541a4b0faf54df00f936128514b |
25 |
-DIST paramiko-2.10.4.tar.gz 348637 BLAKE2B 8ce0d34418b6a1dc1d98fc180d2b2f0fb4333b7e1c52fcf7edabc3b0fc096f1b644dbc21a5b37f9001f046969c3d513ad5f6d7261339a71fa3ec922161cd7be7 SHA512 df39958e647dd6519929f68c4870228a61f54e763751e6b1d07b5e802786c85dfc34af39588009e729c4d189ca17d3aa09a58d4242403a1a1a53d36f6cd313b1 |
26 |
-DIST paramiko-2.10.5.tar.gz 349619 BLAKE2B 12ea66afa9a2e8181363dec08d6b1bfe74d2750a45ae98ed00e53d28aa7b88eb380a0d4df4ad34a4fd08f7223eb262d45f04db522bed30e586cd0cc489389c66 SHA512 319e0e765c8fa7c7c86717d081b2431e9b42540adace693088dd2a541922704dc5a02fcb89666f6eca9a08abd79de1c994949d83a910af67326df7e389f266cd |
27 |
DIST paramiko-2.11.0.tar.gz 350793 BLAKE2B 86358e08407f8a820a9b33a60e771ac3adb8f3e003ccbc4704ba69a52bd427f38a9c49a20e6a07220d07c25dbcc35a472b2091fa9f7bc1447bab0d7a1ce16b35 SHA512 59e439bd54d83938f91d6c9888f2278bafa4ca48582939580bdabc6207dbe6dc856f6006ad26b7ec91b9d39e92ca70dc6270c6b5d4f77a5e1fa0ec8bd084d4b5 |
28 |
|
29 |
diff --git a/dev-python/paramiko/files/paramiko-2.7.1-tests.patch b/dev-python/paramiko/files/paramiko-2.7.1-tests.patch |
30 |
deleted file mode 100644 |
31 |
index a25b7c24ef27..000000000000 |
32 |
--- a/dev-python/paramiko/files/paramiko-2.7.1-tests.patch |
33 |
+++ /dev/null |
34 |
@@ -1,120 +0,0 @@ |
35 |
-From e91cac80d679dfe16897988b0c14c1293a93c805 Mon Sep 17 00:00:00 2001 |
36 |
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
37 |
-Date: Thu, 16 Apr 2020 09:22:59 +0200 |
38 |
-Subject: [PATCH 1/2] Replace pytest-relaxed with plain pytest.raises |
39 |
- |
40 |
-There is really no technical reason to bring pytest-relaxed to call |
41 |
-@raises as a decorator while plain pytest works just fine. Plus, |
42 |
-pytest.raises() is used in test_sftp already. |
43 |
- |
44 |
-pytest-relaxed causes humongous breakage to other packages |
45 |
-on the system. It has been banned from Gentoo for this reason. |
46 |
---- |
47 |
- dev-requirements.txt | 1 - |
48 |
- setup.cfg | 3 --- |
49 |
- tests/test_client.py | 20 ++++++++++---------- |
50 |
- 3 files changed, 10 insertions(+), 14 deletions(-) |
51 |
- |
52 |
-diff --git a/dev-requirements.txt b/dev-requirements.txt |
53 |
-index f4f84748..b1b0cdf5 100644 |
54 |
---- a/dev-requirements.txt |
55 |
-+++ b/dev-requirements.txt |
56 |
-@@ -2,7 +2,6 @@ |
57 |
- invoke>=1.0,<2.0 |
58 |
- invocations>=1.2.0,<2.0 |
59 |
- pytest==4.4.2 |
60 |
--pytest-relaxed==1.1.5 |
61 |
- # pytest-xdist for test dir watching and the inv guard task |
62 |
- pytest-xdist==1.28.0 |
63 |
- mock==2.0.0 |
64 |
-diff --git a/tests/test_client.py b/tests/test_client.py |
65 |
-index 60ad310c..88fd1d53 100644 |
66 |
---- a/tests/test_client.py |
67 |
-+++ b/tests/test_client.py |
68 |
-@@ -33,7 +33,7 @@ import warnings |
69 |
- import weakref |
70 |
- from tempfile import mkstemp |
71 |
- |
72 |
--from pytest_relaxed import raises |
73 |
-+import pytest |
74 |
- from mock import patch, Mock |
75 |
- |
76 |
- import paramiko |
77 |
-@@ -684,10 +684,10 @@ class PasswordPassphraseTests(ClientTest): |
78 |
- |
79 |
- # TODO: more granular exception pending #387; should be signaling "no auth |
80 |
- # methods available" because no key and no password |
81 |
-- @raises(SSHException) |
82 |
- def test_passphrase_kwarg_not_used_for_password_auth(self): |
83 |
-- # Using the "right" password in the "wrong" field shouldn't work. |
84 |
-- self._test_connection(passphrase="pygmalion") |
85 |
-+ with pytest.raises(SSHException): |
86 |
-+ # Using the "right" password in the "wrong" field shouldn't work. |
87 |
-+ self._test_connection(passphrase="pygmalion") |
88 |
- |
89 |
- def test_passphrase_kwarg_used_for_key_passphrase(self): |
90 |
- # Straightforward again, with new passphrase kwarg. |
91 |
-@@ -705,14 +705,14 @@ class PasswordPassphraseTests(ClientTest): |
92 |
- password="television", |
93 |
- ) |
94 |
- |
95 |
-- @raises(AuthenticationException) # TODO: more granular |
96 |
- def test_password_kwarg_not_used_for_passphrase_when_passphrase_kwarg_given( # noqa |
97 |
- self |
98 |
- ): |
99 |
- # Sanity: if we're given both fields, the password field is NOT used as |
100 |
- # a passphrase. |
101 |
-- self._test_connection( |
102 |
-- key_filename=_support("test_rsa_password.key"), |
103 |
-- password="television", |
104 |
-- passphrase="wat? lol no", |
105 |
-- ) |
106 |
-+ with pytest.raises(AuthenticationException): |
107 |
-+ self._test_connection( |
108 |
-+ key_filename=_support("test_rsa_password.key"), |
109 |
-+ password="television", |
110 |
-+ passphrase="wat? lol no", |
111 |
-+ ) |
112 |
--- |
113 |
-2.26.1 |
114 |
- |
115 |
-From af228a2d950654ccdd4a5d665da0018bd976c108 Mon Sep 17 00:00:00 2001 |
116 |
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
117 |
-Date: Thu, 16 Apr 2020 09:46:39 +0200 |
118 |
-Subject: [PATCH 2/2] Skip tests requiring invoke if it's not installed |
119 |
- |
120 |
-Since invoke is an optional dependency and only one group of tests |
121 |
-require it, skip them gracefully rather than failing if it's not |
122 |
-present. |
123 |
---- |
124 |
- tests/test_config.py | 7 ++++++- |
125 |
- 1 file changed, 6 insertions(+), 1 deletion(-) |
126 |
- |
127 |
-diff --git a/tests/test_config.py b/tests/test_config.py |
128 |
-index 5e9aa059..5eeaeac3 100644 |
129 |
---- a/tests/test_config.py |
130 |
-+++ b/tests/test_config.py |
131 |
-@@ -6,7 +6,11 @@ from socket import gaierror |
132 |
- |
133 |
- from paramiko.py3compat import string_types |
134 |
- |
135 |
--from invoke import Result |
136 |
-+try: |
137 |
-+ from invoke import Result |
138 |
-+except ImportError: |
139 |
-+ Result = None |
140 |
-+ |
141 |
- from mock import patch |
142 |
- from pytest import raises, mark, fixture |
143 |
- |
144 |
-@@ -705,6 +709,7 @@ def _expect(success_on): |
145 |
- return inner |
146 |
- |
147 |
- |
148 |
-+@××××.skipif(Result is None, reason='requires invoke package') |
149 |
- class TestMatchExec(object): |
150 |
- @patch("paramiko.config.invoke", new=None) |
151 |
- @patch("paramiko.config.invoke_import_error", new=ImportError("meh")) |
152 |
--- |
153 |
-2.26.1 |
154 |
- |
155 |
|
156 |
diff --git a/dev-python/paramiko/paramiko-2.10.3.ebuild b/dev-python/paramiko/paramiko-2.10.3.ebuild |
157 |
deleted file mode 100644 |
158 |
index 01fc4e263788..000000000000 |
159 |
--- a/dev-python/paramiko/paramiko-2.10.3.ebuild |
160 |
+++ /dev/null |
161 |
@@ -1,55 +0,0 @@ |
162 |
-# Copyright 1999-2022 Gentoo Authors |
163 |
-# Distributed under the terms of the GNU General Public License v2 |
164 |
- |
165 |
-EAPI=8 |
166 |
- |
167 |
-DISTUTILS_USE_PEP517=setuptools |
168 |
-PYTHON_COMPAT=( python3_{8..10} ) |
169 |
-PYTHON_REQ_USE="threads(+)" |
170 |
- |
171 |
-inherit distutils-r1 |
172 |
- |
173 |
-DESCRIPTION="SSH2 protocol library" |
174 |
-HOMEPAGE="https://www.paramiko.org/ https://github.com/paramiko/paramiko/ https://pypi.org/project/paramiko/" |
175 |
-SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
176 |
- |
177 |
-LICENSE="LGPL-2.1" |
178 |
-SLOT="0" |
179 |
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris" |
180 |
-IUSE="examples server" |
181 |
- |
182 |
-RDEPEND=" |
183 |
- >=dev-python/bcrypt-3.1.3[${PYTHON_USEDEP}] |
184 |
- >=dev-python/cryptography-2.5[${PYTHON_USEDEP}] |
185 |
- >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] |
186 |
- >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}] |
187 |
- dev-python/six[${PYTHON_USEDEP}] |
188 |
-" |
189 |
-BDEPEND=" |
190 |
- test? ( |
191 |
- dev-python/mock[${PYTHON_USEDEP}] |
192 |
- ) |
193 |
-" |
194 |
- |
195 |
-distutils_enable_sphinx sites/docs |
196 |
-distutils_enable_tests pytest |
197 |
- |
198 |
-src_prepare() { |
199 |
- local PATCHES=( |
200 |
- "${FILESDIR}/${PN}-2.7.1-tests.patch" |
201 |
- ) |
202 |
- |
203 |
- if ! use server; then |
204 |
- PATCHES+=( "${FILESDIR}/${PN}-2.4.2-disable-server.patch" ) |
205 |
- fi |
206 |
- distutils-r1_src_prepare |
207 |
-} |
208 |
- |
209 |
-python_install_all() { |
210 |
- distutils-r1_python_install_all |
211 |
- |
212 |
- if use examples; then |
213 |
- docinto examples |
214 |
- dodoc -r demos/* |
215 |
- fi |
216 |
-} |
217 |
|
218 |
diff --git a/dev-python/paramiko/paramiko-2.10.4.ebuild b/dev-python/paramiko/paramiko-2.10.4.ebuild |
219 |
deleted file mode 100644 |
220 |
index 4e5f232e9ed3..000000000000 |
221 |
--- a/dev-python/paramiko/paramiko-2.10.4.ebuild |
222 |
+++ /dev/null |
223 |
@@ -1,55 +0,0 @@ |
224 |
-# Copyright 1999-2022 Gentoo Authors |
225 |
-# Distributed under the terms of the GNU General Public License v2 |
226 |
- |
227 |
-EAPI=8 |
228 |
- |
229 |
-DISTUTILS_USE_PEP517=setuptools |
230 |
-PYTHON_COMPAT=( python3_{8..11} ) |
231 |
-PYTHON_REQ_USE="threads(+)" |
232 |
- |
233 |
-inherit distutils-r1 |
234 |
- |
235 |
-DESCRIPTION="SSH2 protocol library" |
236 |
-HOMEPAGE="https://www.paramiko.org/ https://github.com/paramiko/paramiko/ https://pypi.org/project/paramiko/" |
237 |
-SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
238 |
- |
239 |
-LICENSE="LGPL-2.1" |
240 |
-SLOT="0" |
241 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris" |
242 |
-IUSE="examples server" |
243 |
- |
244 |
-RDEPEND=" |
245 |
- >=dev-python/bcrypt-3.1.3[${PYTHON_USEDEP}] |
246 |
- >=dev-python/cryptography-2.5[${PYTHON_USEDEP}] |
247 |
- >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] |
248 |
- >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}] |
249 |
- dev-python/six[${PYTHON_USEDEP}] |
250 |
-" |
251 |
-BDEPEND=" |
252 |
- test? ( |
253 |
- dev-python/mock[${PYTHON_USEDEP}] |
254 |
- ) |
255 |
-" |
256 |
- |
257 |
-distutils_enable_sphinx sites/docs |
258 |
-distutils_enable_tests pytest |
259 |
- |
260 |
-src_prepare() { |
261 |
- local PATCHES=( |
262 |
- "${FILESDIR}/${PN}-2.7.1-tests.patch" |
263 |
- ) |
264 |
- |
265 |
- if ! use server; then |
266 |
- PATCHES+=( "${FILESDIR}/${PN}-2.4.2-disable-server.patch" ) |
267 |
- fi |
268 |
- distutils-r1_src_prepare |
269 |
-} |
270 |
- |
271 |
-python_install_all() { |
272 |
- distutils-r1_python_install_all |
273 |
- |
274 |
- if use examples; then |
275 |
- docinto examples |
276 |
- dodoc -r demos/* |
277 |
- fi |
278 |
-} |
279 |
|
280 |
diff --git a/dev-python/paramiko/paramiko-2.10.5.ebuild b/dev-python/paramiko/paramiko-2.10.5.ebuild |
281 |
deleted file mode 100644 |
282 |
index 8d2074df8b7d..000000000000 |
283 |
--- a/dev-python/paramiko/paramiko-2.10.5.ebuild |
284 |
+++ /dev/null |
285 |
@@ -1,62 +0,0 @@ |
286 |
-# Copyright 1999-2022 Gentoo Authors |
287 |
-# Distributed under the terms of the GNU General Public License v2 |
288 |
- |
289 |
-EAPI=8 |
290 |
- |
291 |
-DISTUTILS_USE_PEP517=setuptools |
292 |
-PYTHON_COMPAT=( python3_{8..11} ) |
293 |
-PYTHON_REQ_USE="threads(+)" |
294 |
- |
295 |
-inherit distutils-r1 |
296 |
- |
297 |
-DESCRIPTION="SSH2 protocol library" |
298 |
-HOMEPAGE=" |
299 |
- https://www.paramiko.org/ |
300 |
- https://github.com/paramiko/paramiko/ |
301 |
- https://pypi.org/project/paramiko/ |
302 |
-" |
303 |
-SRC_URI=" |
304 |
- https://github.com/paramiko/paramiko/archive/${PV}.tar.gz |
305 |
- -> ${P}.tar.gz |
306 |
-" |
307 |
- |
308 |
-LICENSE="LGPL-2.1" |
309 |
-SLOT="0" |
310 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris" |
311 |
-IUSE="examples server" |
312 |
- |
313 |
-RDEPEND=" |
314 |
- >=dev-python/bcrypt-3.1.3[${PYTHON_USEDEP}] |
315 |
- >=dev-python/cryptography-2.5[${PYTHON_USEDEP}] |
316 |
- >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}] |
317 |
- >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}] |
318 |
- dev-python/six[${PYTHON_USEDEP}] |
319 |
-" |
320 |
-BDEPEND=" |
321 |
- test? ( |
322 |
- dev-python/mock[${PYTHON_USEDEP}] |
323 |
- ) |
324 |
-" |
325 |
- |
326 |
-distutils_enable_sphinx sites/docs |
327 |
-distutils_enable_tests pytest |
328 |
- |
329 |
-src_prepare() { |
330 |
- local PATCHES=( |
331 |
- "${FILESDIR}/${PN}-2.7.1-tests.patch" |
332 |
- ) |
333 |
- |
334 |
- if ! use server; then |
335 |
- PATCHES+=( "${FILESDIR}/${PN}-2.4.2-disable-server.patch" ) |
336 |
- fi |
337 |
- distutils-r1_src_prepare |
338 |
-} |
339 |
- |
340 |
-python_install_all() { |
341 |
- distutils-r1_python_install_all |
342 |
- |
343 |
- if use examples; then |
344 |
- docinto examples |
345 |
- dodoc -r demos/* |
346 |
- fi |
347 |
-} |