Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/betagarden:master commit in: app-crypt/wile/, app-crypt/wile/files/
Date: Mon, 26 Feb 2018 21:01:10
Message-Id: 1519678645.c2f9d35351adc0d54d70b664a7136b0a03427d3f.sping@gentoo
1 commit: c2f9d35351adc0d54d70b664a7136b0a03427d3f
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 26 20:57:25 2018 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 26 20:57:25 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=c2f9d353
7
8 app-crypt/wile: 1.0.1, remove old
9
10 app-crypt/wile/files/wile-0.3.1-setup.patch | 46 -------------
11 app-crypt/wile/files/wile-1.0.0-fix-webroot.patch | 39 -----------
12 app-crypt/wile/files/wile-1.0.0-josepy.patch | 80 ----------------------
13 app-crypt/wile/wile-0.3.1.ebuild | 31 ---------
14 app-crypt/wile/wile-0.3.2.ebuild | 29 --------
15 .../{wile-1.0.0-r1.ebuild => wile-1.0.1.ebuild} | 4 --
16 6 files changed, 229 deletions(-)
17
18 diff --git a/app-crypt/wile/files/wile-0.3.1-setup.patch b/app-crypt/wile/files/wile-0.3.1-setup.patch
19 deleted file mode 100644
20 index 76072b4..0000000
21 --- a/app-crypt/wile/files/wile-0.3.1-setup.patch
22 +++ /dev/null
23 @@ -1,46 +0,0 @@
24 -From 120fbe77e695c39744e4e620e24aa57585f5ee57 Mon Sep 17 00:00:00 2001
25 -From: Sebastian Pipping <sebastian@×××××××.org>
26 -Date: Fri, 24 Feb 2017 19:56:34 +0100
27 -Subject: [PATCH] Fix "./setup.py build" for when there is no .git around
28 -
29 ----
30 - setup.py | 13 ++++++++++---
31 - 1 file changed, 10 insertions(+), 3 deletions(-)
32 -
33 -diff --git a/setup.py b/setup.py
34 -index 3ed03c2..cfce972 100755
35 ---- a/setup.py
36 -+++ b/setup.py
37 -@@ -1,15 +1,14 @@
38 - #!/usr/bin/python
39 - import os
40 -+import sys
41 - from setuptools import setup
42 -
43 -
44 - def read(filename):
45 - return open(os.path.join(os.path.dirname(__file__), filename)).read()
46 -
47 --setup(
48 -+config = dict(
49 - name="wile",
50 -- use_scm_version=True,
51 -- setup_requires=['setuptools_scm'],
52 - author="Leo Antunes",
53 - author_email="leo@×××××××.net",
54 - description=("A stripped down Let's Encrypt (ACME) client"),
55 -@@ -42,3 +41,11 @@ setup(
56 - 'Topic :: Utilities',
57 - ],
58 - )
59 -+
60 -+if 'sdist' in sys.argv:
61 -+ config.update(dict(
62 -+ use_scm_version=True,
63 -+ setup_requires=['setuptools_scm'],
64 -+ ))
65 -+
66 -+setup(**config)
67 ---
68 -2.11.1
69 -
70
71 diff --git a/app-crypt/wile/files/wile-1.0.0-fix-webroot.patch b/app-crypt/wile/files/wile-1.0.0-fix-webroot.patch
72 deleted file mode 100644
73 index 39c9d30..0000000
74 --- a/app-crypt/wile/files/wile-1.0.0-fix-webroot.patch
75 +++ /dev/null
76 @@ -1,39 +0,0 @@
77 -From f6d355f14363ed3ce6bf44d4d9ab3140bc0ec247 Mon Sep 17 00:00:00 2001
78 -From: Sebastian Pipping <sebastian@×××××××.org>
79 -Date: Mon, 19 Feb 2018 20:21:24 +0100
80 -Subject: [PATCH] Fix storing of webroot validation for local folders (issue
81 - #32)
82 -
83 -Function os.open was used with the signature of __builtin__.open.
84 -So string mode "wb" ended up as the flags parameter to os.open,
85 -resulting in "TypeError: an integer is required".
86 ----
87 - wile/cert.py | 4 +++-
88 - 1 file changed, 3 insertions(+), 1 deletion(-)
89 -
90 -diff --git a/wile/cert.py b/wile/cert.py
91 -index c9fc33b..f8b85aa 100644
92 ---- a/wile/cert.py
93 -+++ b/wile/cert.py
94 -@@ -262,6 +262,7 @@ def _store_webroot_validation(ctx, webroot, ssh_private_key, challb, val):
95 - raise
96 -
97 - chall_mod = os
98 -+ chall_open = open
99 - else:
100 - sftp = sftp_helper.cachedSFTPfactory(user=webroot.remote_user, host=webroot.remote_host,
101 - port=webroot.remote_port, private_key=ssh_private_key)
102 -@@ -269,8 +270,9 @@ def _store_webroot_validation(ctx, webroot, ssh_private_key, challb, val):
103 - sftp.makedirs(os.path.join(webroot.path, challb.URI_ROOT_PATH))
104 -
105 - chall_mod = sftp
106 -+ chall_open = chall_mod.open
107 -
108 -- with chall_mod.open(chall_path, 'wb') as outf:
109 -+ with chall_open(chall_path, 'wb') as outf:
110 - logger.info('storing validation to %s', os.path.basename(chall_path))
111 - outf.write(b(val))
112 - # TODO: this may cause a race-condition with paramiko teardown code.
113 ---
114 -2.16.1
115 -
116
117 diff --git a/app-crypt/wile/files/wile-1.0.0-josepy.patch b/app-crypt/wile/files/wile-1.0.0-josepy.patch
118 deleted file mode 100644
119 index 04382c8..0000000
120 --- a/app-crypt/wile/files/wile-1.0.0-josepy.patch
121 +++ /dev/null
122 @@ -1,80 +0,0 @@
123 -From 4a7df693b83dbf8d1d3c5245ad9725e98d24b027 Mon Sep 17 00:00:00 2001
124 -From: Luka Matijevic <lumatijev@×××××.com>
125 -Date: Tue, 13 Feb 2018 13:50:55 +0100
126 -Subject: [PATCH 1/2] Fix JOSE dependency
127 -
128 -Starting with ACME version 0.21.0 implementation for JOSE was split out
129 -of ACME library into a separate package named josepy.
130 -
131 -Added josepy as a dependency to setup.py and fixed code according to
132 -this changes.
133 -
134 -https://pypi.python.org/pypi/josepy
135 -https://github.com/certbot/josepy
136 ----
137 - setup.py | 1 +
138 - wile/__init__.py | 2 +-
139 - wile/cert.py | 2 +-
140 - 3 files changed, 3 insertions(+), 2 deletions(-)
141 -
142 -diff --git a/setup.py b/setup.py
143 -index 7a8dc8d..5ed1f03 100755
144 ---- a/setup.py
145 -+++ b/setup.py
146 -@@ -28,6 +28,7 @@ def read(filename):
147 - 'cryptography',
148 - 'setuptools_scm', # for run-time version-detect
149 - 'paramiko',
150 -+ 'josepy',
151 - ],
152 - tests_require=[
153 - 'backports.tempfile;python_version<"3.0"',
154 -diff --git a/wile/__init__.py b/wile/__init__.py
155 -index 944b320..1445d10 100644
156 ---- a/wile/__init__.py
157 -+++ b/wile/__init__.py
158 -@@ -4,7 +4,7 @@
159 -
160 - import setuptools_scm
161 - import click
162 --from acme import jose
163 -+import josepy as jose
164 - from cryptography.hazmat.primitives import serialization
165 - from cryptography.hazmat.backends import default_backend
166 - from cryptography.hazmat.primitives.asymmetric import rsa
167 -diff --git a/wile/cert.py b/wile/cert.py
168 -index 4aba7c1..c9fc33b 100644
169 ---- a/wile/cert.py
170 -+++ b/wile/cert.py
171 -@@ -13,7 +13,7 @@
172 - from acme import challenges
173 - from acme import messages
174 - from acme import errors
175 --from acme.jose.util import ComparableX509
176 -+from josepy.util import ComparableX509
177 -
178 - from . import reg
179 - from . import argtypes
180 -
181 -From 62e18a5ef30cd1d88dc90ac5df99f9d66bea5eb1 Mon Sep 17 00:00:00 2001
182 -From: Luka Matijevic <lumatijev@×××××.com>
183 -Date: Wed, 14 Feb 2018 14:25:56 +0100
184 -Subject: [PATCH 2/2] Increased minimal acme version.
185 -
186 ----
187 - setup.py | 2 +-
188 - 1 file changed, 1 insertion(+), 1 deletion(-)
189 -
190 -diff --git a/setup.py b/setup.py
191 -index 5ed1f03..3ad2397 100755
192 ---- a/setup.py
193 -+++ b/setup.py
194 -@@ -22,7 +22,7 @@ def read(filename):
195 - ],
196 - install_requires=[
197 - 'six',
198 -- 'acme >= 0.16.0',
199 -+ 'acme >= 0.21.0',
200 - 'click >= 6.0',
201 - 'pyOpenSSL',
202 - 'cryptography',
203
204 diff --git a/app-crypt/wile/wile-0.3.1.ebuild b/app-crypt/wile/wile-0.3.1.ebuild
205 deleted file mode 100644
206 index e70d9a3..0000000
207 --- a/app-crypt/wile/wile-0.3.1.ebuild
208 +++ /dev/null
209 @@ -1,31 +0,0 @@
210 -# Copyright 1999-2017 Gentoo Foundation
211 -# Distributed under the terms of the GNU General Public License v2
212 -
213 -EAPI=6
214 -
215 -PYTHON_COMPAT=( python2_7 )
216 -inherit distutils-r1
217 -
218 -DESCRIPTION="Stripped down letsencrypt (ACME) client"
219 -HOMEPAGE="https://github.com/costela/wile"
220 -SRC_URI="https://github.com/costela/wile/archive/${PV}.tar.gz -> ${P}.tar.gz"
221 -
222 -LICENSE="GPL-3"
223 -SLOT="0"
224 -KEYWORDS="~amd64 ~x86"
225 -IUSE=""
226 -
227 -DEPEND="
228 - dev-python/six[${PYTHON_USEDEP}]
229 - dev-python/click[${PYTHON_USEDEP}]
230 - dev-python/pyopenssl[${PYTHON_USEDEP}]
231 - dev-python/cryptography[${PYTHON_USEDEP}]
232 - "
233 -RDEPEND="${DEPEND}
234 - >=app-crypt/acme-0.6[${PYTHON_USEDEP}]
235 - dev-python/setuptools_scm[${PYTHON_USEDEP}]
236 - "
237 -
238 -DOCS=( README.md )
239 -
240 -PATCHES=( "${FILESDIR}"/${P}-setup.patch )
241
242 diff --git a/app-crypt/wile/wile-0.3.2.ebuild b/app-crypt/wile/wile-0.3.2.ebuild
243 deleted file mode 100644
244 index ac538f6..0000000
245 --- a/app-crypt/wile/wile-0.3.2.ebuild
246 +++ /dev/null
247 @@ -1,29 +0,0 @@
248 -# Copyright 1999-2017 Gentoo Foundation
249 -# Distributed under the terms of the GNU General Public License v2
250 -
251 -EAPI=6
252 -
253 -PYTHON_COMPAT=( python2_7 )
254 -inherit distutils-r1
255 -
256 -DESCRIPTION="Stripped down letsencrypt (ACME) client"
257 -HOMEPAGE="https://github.com/costela/wile"
258 -SRC_URI="https://github.com/costela/wile/archive/${PV}.tar.gz -> ${P}.tar.gz"
259 -
260 -LICENSE="GPL-3"
261 -SLOT="0"
262 -KEYWORDS="~amd64 ~x86"
263 -IUSE=""
264 -
265 -DEPEND="
266 - dev-python/six[${PYTHON_USEDEP}]
267 - dev-python/click[${PYTHON_USEDEP}]
268 - dev-python/pyopenssl[${PYTHON_USEDEP}]
269 - dev-python/cryptography[${PYTHON_USEDEP}]
270 - "
271 -RDEPEND="${DEPEND}
272 - >=app-crypt/acme-0.6[${PYTHON_USEDEP}]
273 - dev-python/setuptools_scm[${PYTHON_USEDEP}]
274 - "
275 -
276 -DOCS=( README.md )
277
278 diff --git a/app-crypt/wile/wile-1.0.0-r1.ebuild b/app-crypt/wile/wile-1.0.1.ebuild
279 similarity index 90%
280 rename from app-crypt/wile/wile-1.0.0-r1.ebuild
281 rename to app-crypt/wile/wile-1.0.1.ebuild
282 index aabfe2c..f0c0752 100644
283 --- a/app-crypt/wile/wile-1.0.0-r1.ebuild
284 +++ b/app-crypt/wile/wile-1.0.1.ebuild
285 @@ -30,7 +30,3 @@ RDEPEND="
286
287 DOCS=( README.md )
288
289 -PATCHES=(
290 - "${FILESDIR}"/${P}-josepy.patch
291 - "${FILESDIR}"/${P}-fix-webroot.patch
292 -)