1 |
commit: f82d9d8f774dd4f7d2ad924ca1abd81ce9812e7e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 3 07:49:27 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 3 09:26:01 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f82d9d8f |
7 |
|
8 |
dev-python/twisted: Clean old versions up |
9 |
|
10 |
dev-python/twisted/Manifest | 3 - |
11 |
...t_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch | 11 -- |
12 |
dev-python/twisted/twisted-16.2.0.ebuild | 129 ---------------- |
13 |
dev-python/twisted/twisted-16.3.2.ebuild | 133 ---------------- |
14 |
dev-python/twisted/twisted-16.4.1.ebuild | 170 --------------------- |
15 |
5 files changed, 446 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/twisted/Manifest b/dev-python/twisted/Manifest |
18 |
index 19a472c33ce..3f7728f2a58 100644 |
19 |
--- a/dev-python/twisted/Manifest |
20 |
+++ b/dev-python/twisted/Manifest |
21 |
@@ -1,5 +1,2 @@ |
22 |
-DIST Twisted-16.2.0.tar.bz2 2942537 SHA256 a090e8dc675e97fb20c3bb5f8114ae94169f4e29fd3b3cbede35705fd3cdbd79 SHA512 a1942c15a84946e8bd4833801fffe7be01443560209972e10043262fd17a73c5d0c50592bd037130b6a1de08d7223cbdc1e2398c8c67f559d42e3e8ec81df840 WHIRLPOOL f847d57b833f7fbd9135c4a07af163afaa1e7a821d3aa657b34b2b465540bdce6472682ec20d7f8244117e99a4301e485afe6a765c07b7b64ac9bc90a9592af4 |
23 |
-DIST Twisted-16.3.2.tar.bz2 2916410 SHA256 22c32e68feb6be7ea68bcbc8f89184f06b5693a9f1b59d052927d19597645967 SHA512 6ddca880a06087717487d8a5cc128da81f1acbc97e5c372b1ba51eaeb87390ae7f91925e8e4cc90f29df21692bc11b6e0fe3772341b8488940895e57942e5149 WHIRLPOOL ad381b36f94351c15713e35d6312bae35c78ff90eb485892131f7db8c89168ccf5ddbc9d486bfeb47db695e75280bc73401194c6b36815c5859cc945d0191a7b |
24 |
-DIST Twisted-16.4.1.tar.bz2 2975697 SHA256 1d8d73f006c990744effb35588359fd44d43608649ac0b6b7edc71176e88e816 SHA512 7d841f5ef7fbcc5c215e5fb0d56934c6b37ecb0835a9e602a2b788a76960c669eb910a58c1f40f3e15121a7852a1055d377891c7ce3f2e360292a41341ab6bfe WHIRLPOOL 1c79ea538cddd2026d2aa02367e37f22dec23746f720ce3a25c8065d9db616c622faa89b0011966a27a47f3336fcca066ad85645d3316bbaa318f6143ac8f8cf |
25 |
DIST Twisted-16.6.0.tar.bz2 2979747 SHA256 d0fe115ea7ef8cf632d05103de60356c6e992b2153d6830bdc4476f8accb1fca SHA512 0b8de0ec7f64457f76c396fced64b366b8e63c6e000a5edc6c6388cd917fb2f95711918cd8edda39e0aa77e2cd32b5d775d23630a5ad10fc013c18f8316300cf WHIRLPOOL a09a8747312580e3b27d222bf0942b714ad041044a817876e1731c5fa2ae3d11e4d5a45221d2e7d126ebb664730d15c886d5ae164841c7a8f0acd6e12c4691a9 |
26 |
DIST Twisted-17.1.0.tar.bz2 2997334 SHA256 dbf211d70afe5b4442e3933ff01859533eba9f13d8b3e2e1b97dc2125e2d44dc SHA512 e5eedc9a70b7e4d0ec18dddaa82aa9a784e96fd517db65c278d822d15e8bdc65a35307a5a0474eb68dcb73fcd5508086bec605580a9f2f767bcbe27d714b4966 WHIRLPOOL 828a939134df47950a285c732867b3d4172e5e86a75fbdc1cc4365b5a24699a0b3fcb573b7e3d389eea591fc9fc79456c09f2d2c8f08d7e1215dc5761e88ed8e |
27 |
|
28 |
diff --git a/dev-python/twisted/files/twisted-core-9.0.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch b/dev-python/twisted/files/twisted-core-9.0.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch |
29 |
deleted file mode 100644 |
30 |
index 2fe22f1640b..00000000000 |
31 |
--- a/dev-python/twisted/files/twisted-core-9.0.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch |
32 |
+++ /dev/null |
33 |
@@ -1,11 +0,0 @@ |
34 |
---- twisted/plugin.py |
35 |
-+++ twisted/plugin.py |
36 |
-@@ -174,7 +174,7 @@ |
37 |
- if pluginKey not in existingKeys: |
38 |
- del dropinDotCache[pluginKey] |
39 |
- needsWrite = True |
40 |
-- if needsWrite: |
41 |
-+ if needsWrite and os.environ.get("TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE") is None: |
42 |
- try: |
43 |
- dropinPath.setContent(pickle.dumps(dropinDotCache)) |
44 |
- except: |
45 |
|
46 |
diff --git a/dev-python/twisted/twisted-16.2.0.ebuild b/dev-python/twisted/twisted-16.2.0.ebuild |
47 |
deleted file mode 100644 |
48 |
index f4e6bdcf992..00000000000 |
49 |
--- a/dev-python/twisted/twisted-16.2.0.ebuild |
50 |
+++ /dev/null |
51 |
@@ -1,129 +0,0 @@ |
52 |
-# Copyright 1999-2017 Gentoo Foundation |
53 |
-# Distributed under the terms of the GNU General Public License v2 |
54 |
- |
55 |
-EAPI=5 |
56 |
-PYTHON_COMPAT=( python2_7 python3_{4,5}) |
57 |
-PYTHON_REQ_USE="threads(+)" |
58 |
-TWISTED_PN="Twisted" |
59 |
- |
60 |
-inherit eutils flag-o-matic twisted-r1 |
61 |
- |
62 |
-DESCRIPTION="An asynchronous networking framework written in Python" |
63 |
-SRC_URI="http://twistedmatrix.com/Releases/${TWISTED_PN}" |
64 |
-SRC_URI="${SRC_URI}/${TWISTED_RELEASE}/${TWISTED_P}.tar.bz2" |
65 |
- |
66 |
-#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
67 |
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
68 |
-IUSE="conch crypt serial +soap test" |
69 |
- |
70 |
-RDEPEND=">=dev-python/zope-interface-3.6.0[${PYTHON_USEDEP}] |
71 |
- conch? ( |
72 |
- dev-python/gmpy[${PYTHON_USEDEP}] |
73 |
- dev-python/pyasn1[${PYTHON_USEDEP}] |
74 |
- >=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}] |
75 |
- >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] |
76 |
- ) |
77 |
- crypt? ( |
78 |
- >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] |
79 |
- dev-python/service_identity[${PYTHON_USEDEP}] |
80 |
- dev-python/idna[${PYTHON_USEDEP}] |
81 |
- ) |
82 |
- serial? ( dev-python/pyserial[${PYTHON_USEDEP}] ) |
83 |
- soap? ( $(python_gen_cond_dep 'dev-python/soappy[${PYTHON_USEDEP}]' python2_7) ) |
84 |
- !dev-python/twisted-conch |
85 |
- !dev-python/twisted-core |
86 |
- !dev-python/twisted-lore |
87 |
- !dev-python/twisted-mail |
88 |
- !dev-python/twisted-names |
89 |
- !dev-python/twisted-news |
90 |
- !dev-python/twisted-pair |
91 |
- !dev-python/twisted-runner |
92 |
- !dev-python/twisted-web |
93 |
- !dev-python/twisted-words |
94 |
-" |
95 |
-DEPEND=" |
96 |
- test? ( |
97 |
- dev-python/gmpy[${PYTHON_USEDEP}] |
98 |
- dev-python/pyasn1[${PYTHON_USEDEP}] |
99 |
- >=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}] |
100 |
- >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] |
101 |
- >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] |
102 |
- dev-python/service_identity[${PYTHON_USEDEP}] |
103 |
- dev-python/idna[${PYTHON_USEDEP}] |
104 |
- dev-python/pyserial[${PYTHON_USEDEP}] |
105 |
- $(python_gen_cond_dep 'dev-python/soappy[${PYTHON_USEDEP}]' python2_7) |
106 |
- ) |
107 |
-" |
108 |
- |
109 |
-PATCHES=( |
110 |
- # Respect TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE variable. |
111 |
- "${FILESDIR}/${PN}-core-9.0.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch" |
112 |
-) |
113 |
- |
114 |
-python_prepare_all() { |
115 |
- # Remove some tests known to fail due to the network sandbox |
116 |
- rm -R twisted/pair/test/test_*.py || die "rm twisted/pair/test/test_*.py FAILED" |
117 |
- # Possibly due to over taxing of the distutils_install_for_testing function |
118 |
- rm twisted/python/test/test_release.py || die "rm twisted/python/test/test_release.py FAILED" |
119 |
- if [[ "${EUID}" -eq 0 ]]; then |
120 |
- # Disable tests failing with root permissions. |
121 |
- sed \ |
122 |
- -e "s/test_newPluginsOnReadOnlyPath/_&/" \ |
123 |
- -e "s/test_deployedMode/_&/" \ |
124 |
- -i twisted/test/test_plugin.py |
125 |
- fi |
126 |
- |
127 |
- distutils-r1_python_prepare_all |
128 |
-} |
129 |
- |
130 |
-python_compile() { |
131 |
- if ! python_is_python3; then |
132 |
- # Needed to make the sendmsg extension work |
133 |
- # (see http://twistedmatrix.com/trac/ticket/5701 ) |
134 |
- local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" |
135 |
- local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" |
136 |
- fi |
137 |
- |
138 |
- distutils-r1_python_compile |
139 |
-} |
140 |
- |
141 |
-python_test() { |
142 |
- distutils_install_for_testing |
143 |
- |
144 |
- pushd "${TEST_DIR}"/lib > /dev/null || die |
145 |
- |
146 |
- if ! "${TEST_DIR}"/scripts/trial twisted; then |
147 |
- die "Tests failed with ${EPYTHON}" |
148 |
- fi |
149 |
- |
150 |
- popd > /dev/null || die |
151 |
-} |
152 |
- |
153 |
-python_install() { |
154 |
- distutils-r1_python_install |
155 |
- |
156 |
- cd "${D%/}$(python_get_sitedir)" || die |
157 |
- |
158 |
- # create 'Twisted' egg wrt bug #299736 |
159 |
- #local egg=( Twisted_Core*.egg-info ) |
160 |
- #[[ -f ${egg[0]} ]] || die "Twisted_Core*.egg-info not found" |
161 |
- #ln -s "${egg[0]}" "${egg[0]/_Core/}" || die |
162 |
- |
163 |
- # own the dropin.cache so we don't leave orphans |
164 |
- touch twisted/plugins/dropin.cache || die |
165 |
-} |
166 |
- |
167 |
-python_install_all() { |
168 |
- distutils-r1_python_install_all |
169 |
- |
170 |
- newconfd "${FILESDIR}/twistd.conf" twistd |
171 |
- newinitd "${FILESDIR}/twistd.init" twistd |
172 |
-} |
173 |
- |
174 |
-pkg_postinst(){ |
175 |
- einfo "Install complete" |
176 |
-} |
177 |
- |
178 |
-pkg_postrm(){ |
179 |
- einfo "" |
180 |
-} |
181 |
|
182 |
diff --git a/dev-python/twisted/twisted-16.3.2.ebuild b/dev-python/twisted/twisted-16.3.2.ebuild |
183 |
deleted file mode 100644 |
184 |
index 26b3776bb69..00000000000 |
185 |
--- a/dev-python/twisted/twisted-16.3.2.ebuild |
186 |
+++ /dev/null |
187 |
@@ -1,133 +0,0 @@ |
188 |
-# Copyright 1999-2017 Gentoo Foundation |
189 |
-# Distributed under the terms of the GNU General Public License v2 |
190 |
- |
191 |
-EAPI=5 |
192 |
-PYTHON_COMPAT=( python2_7 python3_{4,5}) |
193 |
-PYTHON_REQ_USE="threads(+)" |
194 |
-TWISTED_PN="Twisted" |
195 |
- |
196 |
-inherit eutils flag-o-matic twisted-r1 |
197 |
- |
198 |
-DESCRIPTION="An asynchronous networking framework written in Python" |
199 |
-SRC_URI="http://twistedmatrix.com/Releases/${TWISTED_PN}" |
200 |
-SRC_URI="${SRC_URI}/${TWISTED_RELEASE}/${TWISTED_P}.tar.bz2" |
201 |
- |
202 |
-# Dropped keywords due to new deps not keyworded |
203 |
-#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
204 |
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
205 |
-IUSE="conch crypt http2 serial +soap test" |
206 |
- |
207 |
-RDEPEND=">=dev-python/zope-interface-3.6.0[${PYTHON_USEDEP}] |
208 |
- conch? ( |
209 |
- dev-python/gmpy[${PYTHON_USEDEP}] |
210 |
- dev-python/pyasn1[${PYTHON_USEDEP}] |
211 |
- >=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}] |
212 |
- >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] |
213 |
- ) |
214 |
- crypt? ( |
215 |
- >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] |
216 |
- dev-python/service_identity[${PYTHON_USEDEP}] |
217 |
- dev-python/idna[${PYTHON_USEDEP}] |
218 |
- ) |
219 |
- serial? ( dev-python/pyserial[${PYTHON_USEDEP}] ) |
220 |
- soap? ( $(python_gen_cond_dep 'dev-python/soappy[${PYTHON_USEDEP}]' python2_7) ) |
221 |
- http2? ( |
222 |
- >=dev-python/hyper-h2-2.3.0[${PYTHON_USEDEP}] |
223 |
- <dev-python/hyper-h2-3.0[${PYTHON_USEDEP}] |
224 |
- >=dev-python/priority-1.1.0[${PYTHON_USEDEP}] |
225 |
- <dev-python/priority-2.0[${PYTHON_USEDEP}] |
226 |
- ) |
227 |
- !dev-python/twisted-core |
228 |
- !dev-python/twisted-conch |
229 |
- !dev-python/twisted-lore |
230 |
- !dev-python/twisted-mail |
231 |
- !dev-python/twisted-names |
232 |
- !dev-python/twisted-news |
233 |
- !dev-python/twisted-pair |
234 |
- !dev-python/twisted-runner |
235 |
- !dev-python/twisted-words |
236 |
- !dev-python/twisted-web |
237 |
-" |
238 |
-DEPEND=" |
239 |
- test? ( |
240 |
- dev-python/gmpy[${PYTHON_USEDEP}] |
241 |
- dev-python/pyasn1[${PYTHON_USEDEP}] |
242 |
- >=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}] |
243 |
- >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] |
244 |
- >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] |
245 |
- dev-python/service_identity[${PYTHON_USEDEP}] |
246 |
- dev-python/idna[${PYTHON_USEDEP}] |
247 |
- dev-python/pyserial[${PYTHON_USEDEP}] |
248 |
- ) |
249 |
-" |
250 |
- |
251 |
-PATCHES=( |
252 |
- # Respect TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE variable. |
253 |
- "${FILESDIR}/${PN}-core-9.0.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch" |
254 |
-) |
255 |
- |
256 |
-python_prepare_all() { |
257 |
- # Remove some tests known to fail due to the network sandbox |
258 |
- rm -R twisted/pair/test/test_*.py || die "rm twisted/pair/test/test_*.py FAILED" |
259 |
- # Possibly due to over taxing of the distutils_install_for_testing function |
260 |
- rm twisted/python/test/test_release.py || die "rm twisted/python/test/test_release.py FAILED" |
261 |
- if [[ "${EUID}" -eq 0 ]]; then |
262 |
- # Disable tests failing with root permissions. |
263 |
- sed \ |
264 |
- -e "s/test_newPluginsOnReadOnlyPath/_&/" \ |
265 |
- -e "s/test_deployedMode/_&/" \ |
266 |
- -i twisted/test/test_plugin.py |
267 |
- fi |
268 |
- |
269 |
- distutils-r1_python_prepare_all |
270 |
-} |
271 |
- |
272 |
-python_compile() { |
273 |
- if ! python_is_python3; then |
274 |
- # Needed to make the sendmsg extension work |
275 |
- # (see http://twistedmatrix.com/trac/ticket/5701 ) |
276 |
- local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" |
277 |
- local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" |
278 |
- fi |
279 |
- |
280 |
- distutils-r1_python_compile |
281 |
-} |
282 |
- |
283 |
-python_test() { |
284 |
- distutils_install_for_testing |
285 |
- |
286 |
- pushd "${TEST_DIR}"/lib > /dev/null || die |
287 |
- |
288 |
- if ! "${TEST_DIR}"/scripts/trial twisted; then |
289 |
- die "Tests failed with ${EPYTHON}" |
290 |
- fi |
291 |
- |
292 |
- popd > /dev/null || die |
293 |
-} |
294 |
- |
295 |
-python_install() { |
296 |
- distutils-r1_python_install |
297 |
- |
298 |
- cd "${D%/}$(python_get_sitedir)" || die |
299 |
- |
300 |
- # create 'Twisted' egg wrt bug #299736 |
301 |
- #local egg=( Twisted_Core*.egg-info ) |
302 |
- #[[ -f ${egg[0]} ]] || die "Twisted_Core*.egg-info not found" |
303 |
- #ln -s "${egg[0]}" "${egg[0]/_Core/}" || die |
304 |
- |
305 |
- # own the dropin.cache so we don't leave orphans |
306 |
- touch twisted/plugins/dropin.cache || die |
307 |
-} |
308 |
- |
309 |
-python_install_all() { |
310 |
- distutils-r1_python_install_all |
311 |
- |
312 |
- newconfd "${FILESDIR}/twistd.conf" twistd |
313 |
- newinitd "${FILESDIR}/twistd.init" twistd |
314 |
-} |
315 |
- |
316 |
-pkg_postrm(){ |
317 |
- # pre portage-2.3.2 release workaround for bug 595028 |
318 |
- cd "${HOME}" |
319 |
- _distutils-r1_run_foreach_impl twisted-r1_update_plugin_cache |
320 |
-} |
321 |
|
322 |
diff --git a/dev-python/twisted/twisted-16.4.1.ebuild b/dev-python/twisted/twisted-16.4.1.ebuild |
323 |
deleted file mode 100644 |
324 |
index 457429d4e73..00000000000 |
325 |
--- a/dev-python/twisted/twisted-16.4.1.ebuild |
326 |
+++ /dev/null |
327 |
@@ -1,170 +0,0 @@ |
328 |
-# Copyright 1999-2017 Gentoo Foundation |
329 |
-# Distributed under the terms of the GNU General Public License v2 |
330 |
- |
331 |
-EAPI=5 |
332 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6}) |
333 |
-PYTHON_REQ_USE="threads(+)" |
334 |
-TWISTED_PN="Twisted" |
335 |
- |
336 |
-inherit eutils flag-o-matic twisted-r1 |
337 |
- |
338 |
-DESCRIPTION="An asynchronous networking framework written in Python" |
339 |
-SRC_URI="http://twistedmatrix.com/Releases/${TWISTED_PN}" |
340 |
-SRC_URI="${SRC_URI}/${TWISTED_RELEASE}/${TWISTED_P}.tar.bz2" |
341 |
- |
342 |
-# Dropped keywords due to new deps not keyworded |
343 |
-#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
344 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86" |
345 |
-IUSE="conch crypt http2 serial +soap test" |
346 |
- |
347 |
-RDEPEND=">=dev-python/zope-interface-4.0.2[${PYTHON_USEDEP}] |
348 |
- conch? ( |
349 |
- dev-python/gmpy[${PYTHON_USEDEP}] |
350 |
- dev-python/pyasn1[${PYTHON_USEDEP}] |
351 |
- >=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}] |
352 |
- >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] |
353 |
- ) |
354 |
- crypt? ( |
355 |
- >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}] |
356 |
- dev-python/service_identity[${PYTHON_USEDEP}] |
357 |
- >=dev-python/idna-0.6[${PYTHON_USEDEP}] |
358 |
- ) |
359 |
- serial? ( dev-python/pyserial[${PYTHON_USEDEP}] ) |
360 |
- soap? ( $(python_gen_cond_dep 'dev-python/soappy[${PYTHON_USEDEP}]' python2_7) ) |
361 |
- http2? ( |
362 |
- >=dev-python/hyper-h2-2.3.0[${PYTHON_USEDEP}] |
363 |
- <dev-python/hyper-h2-3.0[${PYTHON_USEDEP}] |
364 |
- >=dev-python/priority-1.1.0[${PYTHON_USEDEP}] |
365 |
- <dev-python/priority-2.0[${PYTHON_USEDEP}] |
366 |
- ) |
367 |
- !dev-python/twisted-conch |
368 |
- !dev-python/twisted-core |
369 |
- !dev-python/twisted-lore |
370 |
- !dev-python/twisted-mail |
371 |
- !dev-python/twisted-names |
372 |
- !dev-python/twisted-news |
373 |
- !dev-python/twisted-pair |
374 |
- !dev-python/twisted-runner |
375 |
- !dev-python/twisted-web |
376 |
- !dev-python/twisted-words |
377 |
-" |
378 |
-DEPEND=" |
379 |
- test? ( |
380 |
- dev-python/gmpy[${PYTHON_USEDEP}] |
381 |
- dev-python/pyasn1[${PYTHON_USEDEP}] |
382 |
- >=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}] |
383 |
- >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] |
384 |
- >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] |
385 |
- dev-python/service_identity[${PYTHON_USEDEP}] |
386 |
- dev-python/idna[${PYTHON_USEDEP}] |
387 |
- dev-python/pyserial[${PYTHON_USEDEP}] |
388 |
- ) |
389 |
-" |
390 |
- |
391 |
-PATCHES=( |
392 |
- # Respect TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE variable. |
393 |
- "${FILESDIR}/${PN}-core-9.0.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch" |
394 |
-) |
395 |
- |
396 |
-_twisted_prepare_test() { |
397 |
- # Remove since this is an upstream distribution test for making releases |
398 |
- rm twisted/python/test/test_release.py || die "rm twisted/python/test/test_release.py FAILED" |
399 |
- |
400 |
- if [[ "${EUID}" -eq 0 ]]; then |
401 |
- # Disable tests failing with root permissions. |
402 |
- sed \ |
403 |
- -e "s/test_newPluginsOnReadOnlyPath/_&/" \ |
404 |
- -e "s/test_deployedMode/_&/" \ |
405 |
- -i twisted/test/test_plugin.py |
406 |
- fi |
407 |
- |
408 |
- # Remove tests known to fail due to the network sandbox |
409 |
- rm -R twisted/pair/test/test_*.py || die "rm twisted/pair/test/test_*.py FAILED" |
410 |
- sed \ |
411 |
- -e "s/test_loggingFactoryOpensLogfileAutomatically/_&/" \ |
412 |
- -i twisted/test/test_policies.py |
413 |
- sed \ |
414 |
- -e "s/testLookupProcNetTcp/_&/" \ |
415 |
- -i twisted/test/test_ident.py |
416 |
- |
417 |
- # py2.7 only failures... appears to get the wrong form of the correct data |
418 |
- # upstream bug: https://twistedmatrix.com/trac/ticket/8872 |
419 |
- sed \ |
420 |
- -e "s/test_unicodeErrorMessageTruncated(self)/_&/" \ |
421 |
- -e "s/test_unicodeError/_&/" \ |
422 |
- -i twisted/test/test_twistd.py |
423 |
- |
424 |
- # disable due to removing some tests from installation |
425 |
- sed \ |
426 |
- -e "s/test_exist/_&/" \ |
427 |
- -i twisted/python/test/test_dist3.py |
428 |
-} |
429 |
- |
430 |
-python_prepare_all() { |
431 |
- # disable tests that don't work in our sandbox |
432 |
- # and other test failures due to our conditions |
433 |
- if use test ; then |
434 |
- _twisted_prepare_test |
435 |
- fi |
436 |
- |
437 |
- distutils-r1_python_prepare_all |
438 |
-} |
439 |
- |
440 |
-python_compile() { |
441 |
- if ! python_is_python3; then |
442 |
- # Needed to make the sendmsg extension work |
443 |
- # (see http://twistedmatrix.com/trac/ticket/5701 ) |
444 |
- local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" |
445 |
- local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" |
446 |
- fi |
447 |
- |
448 |
- distutils-r1_python_compile |
449 |
-} |
450 |
- |
451 |
-python_test() { |
452 |
- distutils_install_for_testing |
453 |
- |
454 |
- # workaround for the eclass not installing the entry points |
455 |
- # in the test environment. copy the old 16.3.2 start script |
456 |
- # to run the tests with |
457 |
- cp "${FILESDIR}"/trial "${TEST_DIR}"/lib/ |
458 |
- |
459 |
- pushd "${TEST_DIR}"/lib > /dev/null || die |
460 |
- |
461 |
- if ! "${TEST_DIR}"/lib/trial twisted; then |
462 |
- die "Tests failed with ${EPYTHON}" |
463 |
- fi |
464 |
- |
465 |
- popd > /dev/null || die |
466 |
-} |
467 |
- |
468 |
-python_install() { |
469 |
- distutils-r1_python_install |
470 |
- |
471 |
- cd "${D%/}$(python_get_sitedir)" || die |
472 |
- |
473 |
- # create 'Twisted' egg wrt bug #299736 |
474 |
- #local egg=( Twisted_Core*.egg-info ) |
475 |
- #[[ -f ${egg[0]} ]] || die "Twisted_Core*.egg-info not found" |
476 |
- #ln -s "${egg[0]}" "${egg[0]/_Core/}" || die |
477 |
- |
478 |
- # own the dropin.cache so we don't leave orphans |
479 |
- touch twisted/plugins/dropin.cache || die |
480 |
-} |
481 |
- |
482 |
-python_install_all() { |
483 |
- distutils-r1_python_install_all |
484 |
- |
485 |
- newconfd "${FILESDIR}/twistd.conf" twistd |
486 |
- newinitd "${FILESDIR}/twistd.init" twistd |
487 |
-} |
488 |
- |
489 |
-pkg_postinst() { |
490 |
- einfo "Install complete" |
491 |
-} |
492 |
- |
493 |
-pkg_postrm(){ |
494 |
- # pre portage-2.3.2 release workaround for bug 595028 |
495 |
- cd "${HOME}" |
496 |
- _distutils-r1_run_foreach_impl twisted-r1_update_plugin_cache |
497 |
-} |