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/paramiko/, dev-python/paramiko/files/
Date: Sun, 10 Oct 2021 06:45:29
Message-Id: 1633848316.9bd8a54206df1dc6fd844fd0f1678f835748dc09.mgorny@gentoo
1 commit: 9bd8a54206df1dc6fd844fd0f1678f835748dc09
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 10 06:30:01 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 10 06:45:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bd8a542
7
8 dev-python/paramiko: Bump to 2.8.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/paramiko/Manifest | 1 +
13 .../paramiko/files/paramiko-2.7.1-tests.patch | 14 ------
14 dev-python/paramiko/paramiko-2.8.0.ebuild | 54 ++++++++++++++++++++++
15 3 files changed, 55 insertions(+), 14 deletions(-)
16
17 diff --git a/dev-python/paramiko/Manifest b/dev-python/paramiko/Manifest
18 index a9a727eeb4c..5f64b23a04d 100644
19 --- a/dev-python/paramiko/Manifest
20 +++ b/dev-python/paramiko/Manifest
21 @@ -1 +1,2 @@
22 DIST paramiko-2.7.2.tar.gz 331678 BLAKE2B ff96dfd7b114255c15282f4f73e1f9425ccf77106426ccf3ad3f833b56bd5abfde867cf2d322448dc7b3777af6ab080b4e37ff8871ce17f0db17634b7f101747 SHA512 c9bc569428a0a61814cb73941356de5bae7fea7891ba4fd3f5c00ff1ee5083454bfde7e969fb4aaf5254b909f7f0132f590d67803eda8a67503e5c02ec2bf01a
23 +DIST paramiko-2.8.0.tar.gz 332217 BLAKE2B fcd691159b0306204064806881f8a42e7310fe23daf22c5de5ce8124d1496d48606247ab03c7657ff01560f801121a35011e0e615c5e142c41d191568f5b2300 SHA512 15f6e1cab9afdf3285804ce09b3af6c20ffc1f8e50d2549272f0ea545d1fdc858e72c7cba085db85c69aad2033655ae2f025e8ed2bd0dff574bcc03156bdb6ed
24
25 diff --git a/dev-python/paramiko/files/paramiko-2.7.1-tests.patch b/dev-python/paramiko/files/paramiko-2.7.1-tests.patch
26 index 5791afd044a..a25b7c24ef2 100644
27 --- a/dev-python/paramiko/files/paramiko-2.7.1-tests.patch
28 +++ b/dev-python/paramiko/files/paramiko-2.7.1-tests.patch
29 @@ -27,20 +27,6 @@ index f4f84748..b1b0cdf5 100644
30 # pytest-xdist for test dir watching and the inv guard task
31 pytest-xdist==1.28.0
32 mock==2.0.0
33 -diff --git a/setup.cfg b/setup.cfg
34 -index 44d029c4..99159096 100644
35 ---- a/setup.cfg
36 -+++ b/setup.cfg
37 -@@ -17,9 +17,6 @@ ignore = E124,E125,E128,E261,E301,E302,E303,E402,E721,W503,E203,E722
38 - max-line-length = 79
39 -
40 - [tool:pytest]
41 --# We use pytest-relaxed just for its utils at the moment, so disable it at the
42 --# plugin level until we adapt test organization to really use it.
43 --addopts = -p no:relaxed
44 - # Loop on failure
45 - looponfailroots = tests paramiko
46 - # Ignore some warnings we cannot easily handle.
47 diff --git a/tests/test_client.py b/tests/test_client.py
48 index 60ad310c..88fd1d53 100644
49 --- a/tests/test_client.py
50
51 diff --git a/dev-python/paramiko/paramiko-2.8.0.ebuild b/dev-python/paramiko/paramiko-2.8.0.ebuild
52 new file mode 100644
53 index 00000000000..85abef97830
54 --- /dev/null
55 +++ b/dev-python/paramiko/paramiko-2.8.0.ebuild
56 @@ -0,0 +1,54 @@
57 +# Copyright 1999-2021 Gentoo Authors
58 +# Distributed under the terms of the GNU General Public License v2
59 +
60 +EAPI=8
61 +
62 +PYTHON_COMPAT=( python3_{8..10} )
63 +PYTHON_REQ_USE="threads(+)"
64 +
65 +inherit distutils-r1
66 +
67 +DESCRIPTION="SSH2 protocol library"
68 +HOMEPAGE="https://www.paramiko.org/ https://github.com/paramiko/paramiko/ https://pypi.org/project/paramiko/"
69 +# pypi tarballs are missing test data
70 +#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
71 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
72 +
73 +LICENSE="LGPL-2.1"
74 +SLOT="0"
75 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris"
76 +IUSE="examples server"
77 +
78 +RDEPEND="
79 + >=dev-python/bcrypt-3.1.3[${PYTHON_USEDEP}]
80 + >=dev-python/cryptography-2.5[${PYTHON_USEDEP}]
81 + >=dev-python/pynacl-1.0.1[${PYTHON_USEDEP}]
82 + >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}]
83 +"
84 +BDEPEND="
85 + test? (
86 + dev-python/mock[${PYTHON_USEDEP}]
87 + )
88 +"
89 +
90 +distutils_enable_sphinx sites/docs
91 +distutils_enable_tests pytest
92 +
93 +src_prepare() {
94 + eapply "${FILESDIR}/${PN}-2.7.1-tests.patch"
95 +
96 + if ! use server; then
97 + eapply "${FILESDIR}/${PN}-2.4.2-disable-server.patch"
98 + fi
99 +
100 + eapply_user
101 +}
102 +
103 +python_install_all() {
104 + distutils-r1_python_install_all
105 +
106 + if use examples; then
107 + docinto examples
108 + dodoc -r demos/*
109 + fi
110 +}