Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/astroscrappy/files/, dev-python/astroscrappy/
Date: Sat, 28 Dec 2019 17:05:34
Message-Id: 1577552724.113d4c047ea8638bdbbb99e44f8169be797b126e.zlogene@gentoo
1 commit: 113d4c047ea8638bdbbb99e44f8169be797b126e
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 28 17:05:24 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 28 17:05:24 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=113d4c04
7
8 dev-python/astroscrappy: remove last-rited pkg
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11
12 dev-python/astroscrappy/Manifest | 2 -
13 dev-python/astroscrappy/astroscrappy-1.0.3.ebuild | 58 ------------
14 dev-python/astroscrappy/astroscrappy-1.0.5.ebuild | 60 -------------
15 .../astroscrappy-1.0.3-dont-install-binary.patch | 14 ---
16 .../astroscrappy-1.0.3-endian-fix-tests.patch | 100 ---------------------
17 .../files/astroscrappy-1.0.3-numpy-fix-tests.patch | 21 -----
18 .../astroscrappy-1.0.3-respect-user-flag.patch | 35 --------
19 .../astroscrappy-1.0.5-respect-user-flag.patch | 36 --------
20 dev-python/astroscrappy/metadata.xml | 17 ----
21 9 files changed, 343 deletions(-)
22
23 diff --git a/dev-python/astroscrappy/Manifest b/dev-python/astroscrappy/Manifest
24 deleted file mode 100644
25 index a9053007dd6..00000000000
26 --- a/dev-python/astroscrappy/Manifest
27 +++ /dev/null
28 @@ -1,2 +0,0 @@
29 -DIST astroscrappy-1.0.3.tar.gz 422209 BLAKE2B f0d5a83c6b4718eb6d0a1d60068459da3d886c6ab389be5b65a6b31dfb2bcfff9238e8773d1cfeca8db15289999ccbdcf96ba966f85ca76779077ee6fd0923a6 SHA512 2e96e8e62f81c770802a3c7699ca4455c640bb000aa4bffc22149745eed4e7e33cc4b297649020a601ff7fb242c0545cf9391c19ee2687adab26ac494d37dbb2
30 -DIST astroscrappy-1.0.5.tar.gz 421910 BLAKE2B 7ca92277e3914b54cce09cb9a5d8e4657dbc2e3aead8904c967be906bdf78d4b73450adff7d7b970ec37e7b4ba5ab275f2c1cdd8b4573b1563daed6ecae14682 SHA512 bad648140abe3032aa76f43b4c61a15bc49b825bb8333d0e2dc6ba244542e5d6b283824336de82c73aefdfd62b952c9089c3237c913faf17874af13725345064
31
32 diff --git a/dev-python/astroscrappy/astroscrappy-1.0.3.ebuild b/dev-python/astroscrappy/astroscrappy-1.0.3.ebuild
33 deleted file mode 100644
34 index 65c8cd32f82..00000000000
35 --- a/dev-python/astroscrappy/astroscrappy-1.0.3.ebuild
36 +++ /dev/null
37 @@ -1,58 +0,0 @@
38 -# Copyright 1999-2019 Gentoo Authors
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=6
42 -
43 -PYTHON_COMPAT=( python{2_7,3_5} )
44 -
45 -inherit distutils-r1 toolchain-funcs flag-o-matic
46 -
47 -DESCRIPTION="Optimized cosmic ray annihilation astropy python module"
48 -HOMEPAGE="https://github.com/astropy/astroscrappy"
49 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
50 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
51 -
52 -LICENSE="BSD"
53 -SLOT="0"
54 -IUSE="doc openmp test"
55 -RESTRICT="!test? ( test )"
56 -
57 -RDEPEND="
58 - dev-python/astropy[${PYTHON_USEDEP}]
59 - dev-python/astropy-helpers[${PYTHON_USEDEP}]
60 - dev-python/numpy[${PYTHON_USEDEP}]
61 - sci-libs/scipy[${PYTHON_USEDEP}]"
62 -
63 -DEPEND="${RDEPEND}
64 - dev-python/cython[${PYTHON_USEDEP}]
65 - dev-python/setuptools[${PYTHON_USEDEP}]
66 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
67 - test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
68 -
69 -PATCHES=(
70 - "${FILESDIR}/${P}-dont-install-binary.patch"
71 - "${FILESDIR}/${P}-endian-fix-tests.patch"
72 - "${FILESDIR}/${P}-numpy-fix-tests.patch"
73 - "${FILESDIR}/${P}-respect-user-flag.patch"
74 -)
75 -
76 -DOCS=( CHANGES.rst )
77 -
78 -python_prepare_all() {
79 - sed -i -e '/auto_use/s/True/False/' setup.cfg || die
80 - use openmp && tc-has-openmp && append-flags -fopenmp
81 - distutils-r1_python_prepare_all
82 -}
83 -
84 -python_compile_all() {
85 - use doc && esetup.py build_sphinx
86 -}
87 -
88 -python_test() {
89 - esetup.py test
90 -}
91 -
92 -python_install_all() {
93 - use doc && local HTML_DOCS=( docs/_build/html/. )
94 - distutils-r1_python_install_all
95 -}
96
97 diff --git a/dev-python/astroscrappy/astroscrappy-1.0.5.ebuild b/dev-python/astroscrappy/astroscrappy-1.0.5.ebuild
98 deleted file mode 100644
99 index 3ffbc1766ae..00000000000
100 --- a/dev-python/astroscrappy/astroscrappy-1.0.5.ebuild
101 +++ /dev/null
102 @@ -1,60 +0,0 @@
103 -# Copyright 1999-2019 Gentoo Authors
104 -# Distributed under the terms of the GNU General Public License v2
105 -
106 -EAPI=6
107 -
108 -PYTHON_COMPAT=( python{2_7,3_5,3_6} )
109 -
110 -inherit distutils-r1
111 -
112 -DESCRIPTION="Optimized cosmic ray annihilation astropy python module"
113 -HOMEPAGE="https://github.com/astropy/astroscrappy"
114 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
115 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
116 -
117 -LICENSE="BSD"
118 -SLOT="0"
119 -IUSE="doc openmp test"
120 -RESTRICT="!test? ( test )"
121 -
122 -RDEPEND="
123 - dev-python/astropy[${PYTHON_USEDEP}]
124 - dev-python/astropy-helpers[${PYTHON_USEDEP}]
125 - dev-python/numpy[${PYTHON_USEDEP}]
126 - sci-libs/scipy[${PYTHON_USEDEP}]"
127 -
128 -DEPEND="${RDEPEND}
129 - dev-python/cython[${PYTHON_USEDEP}]
130 - dev-python/setuptools[${PYTHON_USEDEP}]
131 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
132 - test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
133 -
134 -DOCS=( CHANGES.rst )
135 -
136 -PATCHES=(
137 - "${FILESDIR}/${PN}-1.0.5-respect-user-flag.patch"
138 -)
139 -
140 -python_prepare_all() {
141 - # use astropy-helpers from system
142 - sed -i -e '/auto_use/s/True/False/' setup.cfg || die
143 - # if the user explicitely does not want openmp, do not forcefully use it
144 - if ! use openmp; then
145 - sed -e 's/if has_openmp/if False/' \
146 - -i astroscrappy/utils/setup_package.py || die
147 - fi
148 - distutils-r1_python_prepare_all
149 -}
150 -
151 -python_compile_all() {
152 - use doc && esetup.py build_sphinx
153 -}
154 -
155 -python_test() {
156 - esetup.py test
157 -}
158 -
159 -python_install_all() {
160 - use doc && local HTML_DOCS=( docs/_build/html/. )
161 - distutils-r1_python_install_all
162 -}
163
164 diff --git a/dev-python/astroscrappy/files/astroscrappy-1.0.3-dont-install-binary.patch b/dev-python/astroscrappy/files/astroscrappy-1.0.3-dont-install-binary.patch
165 deleted file mode 100644
166 index 4c69f00cc88..00000000000
167 --- a/dev-python/astroscrappy/files/astroscrappy-1.0.3-dont-install-binary.patch
168 +++ /dev/null
169 @@ -1,14 +0,0 @@
170 -Author: Ole Streicher <olebole@××××××.org>
171 -Description: Don't install example/template binary
172 ---- a/setup.py
173 -+++ b/setup.py
174 -@@ -80,9 +80,6 @@
175 -
176 - # Define entry points for command-line scripts
177 - entry_points = {}
178 --entry_points['console_scripts'] = [
179 -- 'astropy-package-template-example = packagename.example_mod:main',
180 --]
181 -
182 - # Include all .c files, recursively, including those generated by
183 - # Cython, since we can not do this in MANIFEST.in with a "dynamic"
184
185 diff --git a/dev-python/astroscrappy/files/astroscrappy-1.0.3-endian-fix-tests.patch b/dev-python/astroscrappy/files/astroscrappy-1.0.3-endian-fix-tests.patch
186 deleted file mode 100644
187 index 7a2bbb6299c..00000000000
188 --- a/dev-python/astroscrappy/files/astroscrappy-1.0.3-endian-fix-tests.patch
189 +++ /dev/null
190 @@ -1,100 +0,0 @@
191 -From 5b5ce99c63d03e60b6027f09f72231db11a87bf2 Mon Sep 17 00:00:00 2001
192 -From: Curtis McCully <cmccully@×××××.net>
193 -Date: Thu, 3 Dec 2015 12:02:38 -0800
194 -Subject: [PATCH] Made tests not endian specific.
195 ---- a/astroscrappy/tests/test_utils.py
196 -+++ b/astroscrappy/tests/test_utils.py
197 -@@ -56,7 +56,7 @@
198 -
199 -
200 - def test_medfilt5():
201 -- a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('<f4')
202 -+ a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('f4')
203 - npmed5 = ndimage.filters.median_filter(a, size=(5, 5), mode='nearest')
204 - npmed5[:2, :] = a[:2, :]
205 - npmed5[-2:, :] = a[-2:, :]
206 -@@ -68,7 +68,7 @@
207 -
208 -
209 - def test_medfilt7():
210 -- a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('<f4')
211 -+ a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('f4')
212 - npmed7 = ndimage.filters.median_filter(a, size=(7, 7), mode='nearest')
213 - npmed7[:3, :] = a[:3, :]
214 - npmed7[-3:, :] = a[-3:, :]
215 -@@ -80,7 +80,7 @@
216 -
217 -
218 - def test_sepmedfilt3():
219 -- a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('<f4')
220 -+ a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('f4')
221 - npmed3 = ndimage.filters.median_filter(a, size=(1, 3), mode='nearest')
222 - npmed3[:, :1] = a[:, :1]
223 - npmed3[:, -1:] = a[:, -1:]
224 -@@ -95,7 +95,7 @@
225 -
226 -
227 - def test_sepmedfilt5():
228 -- a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('<f4')
229 -+ a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('f4')
230 - npmed5 = ndimage.filters.median_filter(a, size=(1, 5), mode='nearest')
231 - npmed5[:, :2] = a[:, :2]
232 - npmed5[:, -2:] = a[:, -2:]
233 -@@ -110,7 +110,7 @@
234 -
235 -
236 - def test_sepmedfilt7():
237 -- a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('<f4')
238 -+ a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('f4')
239 - npmed7 = ndimage.filters.median_filter(a, size=(1, 7), mode='nearest')
240 - npmed7[:, :3] = a[:, :3]
241 - npmed7[:, -3:] = a[:, -3:]
242 -@@ -125,7 +125,7 @@
243 -
244 -
245 - def test_sepmedfilt9():
246 -- a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('<f4')
247 -+ a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('f4')
248 - npmed9 = ndimage.filters.median_filter(a, size=(1, 9), mode='nearest')
249 - npmed9[:, :4] = a[:, :4]
250 - npmed9[:, -4:] = a[:, -4:]
251 -@@ -174,7 +174,7 @@
252 -
253 -
254 - def test_subsample():
255 -- a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('<f4')
256 -+ a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('f4')
257 - npsubsamp = np.zeros((a.shape[0] * 2, a.shape[1] * 2), dtype=np.float32)
258 - for i in range(a.shape[0]):
259 - for j in range(a.shape[1]):
260 -@@ -189,8 +189,8 @@
261 -
262 - def test_rebin():
263 - a = np.ascontiguousarray(np.random.random((2002, 2002)), dtype=np.float32)
264 -- a = a.astype('<f4')
265 -- nprebin = np.zeros((1001, 1001), dtype=np.float32).astype('<f4')
266 -+ a = a.astype('f4')
267 -+ nprebin = np.zeros((1001, 1001), dtype=np.float32).astype('f4')
268 - for i in range(1001):
269 - for j in range(1001):
270 - nprebin[i, j] = (a[2 * i, 2 * j] + a[2 * i + 1, 2 * j] +
271 -@@ -202,7 +202,7 @@
272 -
273 -
274 - def test_laplaceconvolve():
275 -- a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('<f4')
276 -+ a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('f4')
277 - k = np.array([[0.0, -1.0, 0.0], [-1.0, 4.0, -1.0], [0.0, -1.0, 0.0]])
278 - k = k.astype('<f4')
279 - npconv = ndimage.filters.convolve(a, k, mode='constant', cval=0.0)
280 -@@ -211,8 +211,8 @@
281 -
282 -
283 - def test_convolve():
284 -- a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('<f4')
285 -- k = np.ascontiguousarray(np.random.random((5, 5))).astype('<f4')
286 -+ a = np.ascontiguousarray(np.random.random((1001, 1001))).astype('f4')
287 -+ k = np.ascontiguousarray(np.random.random((5, 5))).astype('f4')
288 - npconv = ndimage.filters.convolve(a, k, mode='constant', cval=0.0)
289 - cconv = convolve(a, k)
290 - assert_allclose(cconv, npconv, rtol=0, atol=1e-5)
291
292 diff --git a/dev-python/astroscrappy/files/astroscrappy-1.0.3-numpy-fix-tests.patch b/dev-python/astroscrappy/files/astroscrappy-1.0.3-numpy-fix-tests.patch
293 deleted file mode 100644
294 index d7a1c93a574..00000000000
295 --- a/dev-python/astroscrappy/files/astroscrappy-1.0.3-numpy-fix-tests.patch
296 +++ /dev/null
297 @@ -1,21 +0,0 @@
298 -Author: Ole Streicher <olebole@××××××.org>
299 -Description: Cast the numpy arrays in the test to the same data type
300 -Bug: https://ci.debian.net/data/packages/unstable/amd64/a/astroscrappy/20160112_151253.autopkgtest.log.gz
301 ---- a/astroscrappy/tests/test_astroscrappy.py
302 -+++ b/astroscrappy/tests/test_astroscrappy.py
303 -@@ -36,7 +36,7 @@
304 - imdata += gaussian(imdata.shape, x, y, brightness, 3.5)
305 -
306 - # Add the poisson noise
307 --imdata = np.random.poisson(imdata)
308 -+imdata = np.float32(np.random.poisson(imdata))
309 -
310 - # Add readnoise
311 - imdata += np.random.normal(0.0, 10.0, size=(1001, 1001))
312 -@@ -60,4 +60,4 @@
313 - # contrast that we can turn our detection threshold up.
314 - mask, _clean = detect_cosmics(imdata, readnoise=10., gain=1.0,
315 - sigclip=6, sigfrac=1.0)
316 -- assert (mask == expected_crmask).sum() == (1001 * 1001)
317 -\ No newline at end of file
318 -+ assert (mask == expected_crmask).sum() == (1001 * 1001)
319
320 diff --git a/dev-python/astroscrappy/files/astroscrappy-1.0.3-respect-user-flag.patch b/dev-python/astroscrappy/files/astroscrappy-1.0.3-respect-user-flag.patch
321 deleted file mode 100644
322 index fb7bca64ce7..00000000000
323 --- a/dev-python/astroscrappy/files/astroscrappy-1.0.3-respect-user-flag.patch
324 +++ /dev/null
325 @@ -1,35 +0,0 @@
326 ---- astroscrappy/astroscrappy/utils/setup_package.py.orig 2016-03-09 22:50:34.304043122 +0000
327 -+++ astroscrappy/astroscrappy/utils/setup_package.py 2016-03-09 22:54:53.560783823 +0000
328 -@@ -43,30 +43,11 @@
329 - sources=med_sources,
330 - include_dirs=include_dirs,
331 - libraries=libraries,
332 -- language="c",
333 -- extra_compile_args=['-g', '-O3', '-funroll-loops',
334 -- '-ffast-math'])
335 -+ language="c")
336 - ext_im = Extension(name=str("astroscrappy.utils.image_utils"),
337 - sources=im_sources,
338 - include_dirs=include_dirs,
339 - libraries=libraries,
340 -- language="c",
341 -- extra_compile_args=['-g', '-O3', '-funroll-loops',
342 -- '-ffast-math'])
343 --
344 -- has_openmp, outputs = check_openmp()
345 -- if has_openmp:
346 -- ext_med.extra_compile_args.append('-fopenmp')
347 -- ext_im.extra_compile_args.append('-fopenmp')
348 -- ext_med.extra_link_args = ['-g', '-fopenmp']
349 -- ext_im.extra_link_args = ['-g', '-fopenmp']
350 -- else:
351 -- log.warn('OpenMP was not found. '
352 -- 'astroscrappy will be compiled without OpenMP. '
353 -- '(Use the "-v" option of setup.py for more details.)')
354 -- log.debug(('(Start of OpenMP info)\n'
355 -- 'compiler stdout:\n{0}\n'
356 -- 'compiler stderr:\n{1}\n'
357 -- '(End of OpenMP info)').format(*outputs))
358 -+ language="c")
359 -
360 - return [ext_med, ext_im]
361
362 diff --git a/dev-python/astroscrappy/files/astroscrappy-1.0.5-respect-user-flag.patch b/dev-python/astroscrappy/files/astroscrappy-1.0.5-respect-user-flag.patch
363 deleted file mode 100644
364 index b3638e1bffc..00000000000
365 --- a/dev-python/astroscrappy/files/astroscrappy-1.0.5-respect-user-flag.patch
366 +++ /dev/null
367 @@ -1,36 +0,0 @@
368 -From f3acf99e65f58e2ee2f409d33f44a3abb1ba90c4 Mon Sep 17 00:00:00 2001
369 -From: Sébastien Fabbro <bicatali@g.o>
370 -Date: Wed, 31 Aug 2016 22:19:12 +0000
371 -Subject: [PATCH] respect user compiling flags Depending on compilers, -O3
372 - -funroll-loops is not the fastest.
373 -
374 ----
375 - astroscrappy/utils/setup_package.py | 8 ++------
376 - 1 file changed, 2 insertions(+), 6 deletions(-)
377 -
378 -diff --git a/astroscrappy/utils/setup_package.py b/astroscrappy/utils/setup_package.py
379 -index 3e1fba2..c271613 100644
380 ---- a/astroscrappy/utils/setup_package.py
381 -+++ b/astroscrappy/utils/setup_package.py
382 -@@ -73,16 +73,12 @@ def get_extensions():
383 - sources=med_sources,
384 - include_dirs=include_dirs,
385 - libraries=libraries,
386 -- language="c",
387 -- extra_compile_args=['-g', '-O3', '-funroll-loops',
388 -- '-ffast-math'])
389 -+ language="c")
390 - ext_im = Extension(name=str("astroscrappy.utils.image_utils"),
391 - sources=im_sources,
392 - include_dirs=include_dirs,
393 - libraries=libraries,
394 -- language="c",
395 -- extra_compile_args=['-g', '-O3', '-funroll-loops',
396 -- '-ffast-math'])
397 -+ language="c")
398 -
399 - has_openmp, outputs = check_openmp()
400 - if has_openmp:
401 ---
402 -2.9.3
403 -
404
405 diff --git a/dev-python/astroscrappy/metadata.xml b/dev-python/astroscrappy/metadata.xml
406 deleted file mode 100644
407 index 6a303f8428d..00000000000
408 --- a/dev-python/astroscrappy/metadata.xml
409 +++ /dev/null
410 @@ -1,17 +0,0 @@
411 -<?xml version='1.0' encoding='UTF-8'?>
412 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
413 -<pkgmetadata>
414 - <maintainer type="project">
415 - <email>sci-astronomy@g.o</email>
416 - <name>Gentoo Astronomy Project</name>
417 - </maintainer>
418 - <longdescription lang="en">
419 - Astro-SCRAPPY is designed to detect cosmic rays in images (numpy arrays),
420 - based on Pieter van Dokkum's L.A.Cosmic algorithm. Parallelization is
421 - achieved using OpenMP.
422 - </longdescription>
423 - <upstream>
424 - <remote-id type="pypi">astroscrappy</remote-id>
425 - <remote-id type="github">astropy/astroscrappy</remote-id>
426 - </upstream>
427 -</pkgmetadata>