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/astropy/, dev-python/astropy/files/
Date: Sat, 28 Dec 2019 17:08:55
Message-Id: 1577552931.5511595e336f25098e0ab5f89de3eb73f9f582c8.zlogene@gentoo
1 commit: 5511595e336f25098e0ab5f89de3eb73f9f582c8
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 28 17:08:44 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 28 17:08:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5511595e
7
8 dev-python/astropy: remove last-rited pkg
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11
12 dev-python/astropy/Manifest | 3 -
13 dev-python/astropy/astropy-1.2.1.ebuild | 98 -----------------
14 dev-python/astropy/astropy-1.3.3.ebuild | 97 -----------------
15 dev-python/astropy/astropy-2.0.1.ebuild | 95 ----------------
16 .../files/astropy-1.0.4-system-configobj.patch | 14 ---
17 .../astropy/files/astropy-1.0.4-system-six.patch | 12 ---
18 .../files/astropy-1.1.1-mark-kown-failures.patch | 99 -----------------
19 .../astropy/files/astropy-1.2.1-cfitsio-338.patch | 16 ---
20 .../files/astropy-1.3.3-external-python-pkgs.patch | 119 ---------------------
21 .../files/astropy-1.3.3-mark-known-failures.patch | 84 ---------------
22 dev-python/astropy/files/astropy-ply.py | 58 ----------
23 dev-python/astropy/metadata.xml | 16 ---
24 12 files changed, 711 deletions(-)
25
26 diff --git a/dev-python/astropy/Manifest b/dev-python/astropy/Manifest
27 deleted file mode 100644
28 index f8286fd16f0..00000000000
29 --- a/dev-python/astropy/Manifest
30 +++ /dev/null
31 @@ -1,3 +0,0 @@
32 -DIST astropy-1.2.1.tar.gz 8179665 BLAKE2B d61dbb7a4e56d9a0273dd87fde5b6ed8b2fc8cd206eb51f57621d0ed48adffb76653e1ee5954a7b33ba6e0e2e9d3edb9a5a5afd269d674a899196280fea379fa SHA512 2ef37537a4c6b2ec50a1d898f600978475c9c5d2cb66ba19d06782656e9ddcb4aa6a8e53217e318448cedac45dac0dce0d8cc2fe94cddc15ebb306b3b0794595
33 -DIST astropy-1.3.3.tar.gz 8427036 BLAKE2B 60a9f78f01fe3607314d69bc66180f2afb0ca9a53f7916079f18bf982cff2cda8986823ec03ea8ecd439df6d213547067d04425f43536f37baadc1caa56e9db0 SHA512 15956d488a390ab3b4091146bffe6f192f22e7598d00e302c2bcf0ec9728911f48bef3ee4c71d331f58e57aec86292421d27f915ea16027a7f62c5d43f6a12e5
34 -DIST astropy-2.0.1.tar.gz 8220097 BLAKE2B f9332b828d2204f60a0e032e79fb841235a08ce3be974563fa0818f98d02c95743dc42ec6c8bae5f239c0917b030b073f5a9ee5cbf848682b7d2ca01ef9b5009 SHA512 0677b4f22a9eb7d3334109a639ec14ce904935dc58925d303dc98c27cbac2be7d0e95bd873cc21d3cd92e8e553481d203382c281f91cb7a4e41c27d1ff83aac7
35
36 diff --git a/dev-python/astropy/astropy-1.2.1.ebuild b/dev-python/astropy/astropy-1.2.1.ebuild
37 deleted file mode 100644
38 index e7786c0fe17..00000000000
39 --- a/dev-python/astropy/astropy-1.2.1.ebuild
40 +++ /dev/null
41 @@ -1,98 +0,0 @@
42 -# Copyright 1999-2019 Gentoo Authors
43 -# Distributed under the terms of the GNU General Public License v2
44 -
45 -EAPI=6
46 -
47 -PYTHON_COMPAT=( python2_7 python3_5 )
48 -
49 -inherit distutils-r1 xdg-utils
50 -
51 -DESCRIPTION="Core functionality for performing astrophysics with Python"
52 -HOMEPAGE="https://www.astropy.org/"
53 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
54 -
55 -LICENSE="BSD"
56 -SLOT="0"
57 -KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
58 -IUSE="doc test"
59 -RESTRICT="!test? ( test )"
60 -
61 -RDEPEND="
62 - dev-libs/expat:0=
63 - dev-python/configobj[${PYTHON_USEDEP}]
64 - >=dev-python/numpy-1.10[${PYTHON_USEDEP}]
65 - dev-python/ply[${PYTHON_USEDEP}]
66 - dev-python/six[${PYTHON_USEDEP}]
67 - >=sci-astronomy/erfa-1.2:0=
68 - >=sci-astronomy/wcslib-5:0=
69 - sci-libs/cfitsio:0=
70 - sys-libs/zlib:0="
71 -DEPEND="${RDEPEND}
72 - >=dev-python/astropy-helpers-1.1[${PYTHON_USEDEP}]
73 - dev-python/cython[${PYTHON_USEDEP}]
74 - dev-python/setuptools[${PYTHON_USEDEP}]
75 - virtual/pkgconfig
76 - doc? (
77 - media-gfx/graphviz
78 - $(python_gen_cond_dep 'dev-libs/libxml2[${PYTHON_USEDEP}]' python2_7)
79 - $(python_gen_cond_dep 'dev-python/h5py[${PYTHON_USEDEP}]' python2_7)
80 - $(python_gen_cond_dep 'dev-python/matplotlib[${PYTHON_USEDEP}]' python2_7)
81 - $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]' python2_7)
82 - $(python_gen_cond_dep 'dev-python/sphinx[${PYTHON_USEDEP}]' python2_7)
83 - $(python_gen_cond_dep 'dev-python/wcsaxes[${PYTHON_USEDEP}]' python2_7)
84 - $(python_gen_cond_dep 'sci-libs/scipy[${PYTHON_USEDEP}]' python2_7)
85 - )
86 - test? (
87 - dev-libs/libxml2[${PYTHON_USEDEP}]
88 - dev-python/pytest[${PYTHON_USEDEP}]
89 - dev-python/h5py[${PYTHON_USEDEP}]
90 - dev-python/matplotlib[${PYTHON_USEDEP}]
91 - sci-libs/scipy[${PYTHON_USEDEP}]
92 - )"
93 -
94 -REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
95 -
96 -PATCHES=(
97 - "${FILESDIR}/${PN}-1.0.4-system-six.patch"
98 - "${FILESDIR}/${PN}-1.0.4-system-configobj.patch"
99 - "${FILESDIR}/${PN}-1.1.1-mark-kown-failures.patch"
100 - "${FILESDIR}/${PN}-1.2.1-cfitsio-338.patch"
101 -)
102 -
103 -pkg_setup() {
104 - use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
105 -}
106 -
107 -python_prepare_all() {
108 - export mydistutilsargs="--offline"
109 - export ASTROPY_USE_SYSTEM_PYTEST=True
110 - rm -r ${PN}_helpers || die
111 - cp "${FILESDIR}"/astropy-ply.py astropy/extern/ply.py || die
112 - rm -r cextern/{expat,erfa,cfitsio,wcslib} || die
113 - sed -i -e '/auto_use/s/True/False/' setup.cfg || die
114 - cat >> setup.cfg <<-EOF
115 - [build]
116 - use_system_libraries=1
117 - EOF
118 - xdg_environment_reset
119 - distutils-r1_python_prepare_all
120 -}
121 -
122 -python_compile_all() {
123 - if use doc; then
124 - python_setup "python2*"
125 - VARTEXFONTS="${T}"/fonts \
126 - MPLCONFIGDIR="${BUILD_DIR}" \
127 - PYTHONPATH="${BUILD_DIR}"/lib \
128 - esetup.py build_sphinx
129 - fi
130 -}
131 -
132 -python_test() {
133 - esetup.py test
134 -}
135 -
136 -python_install_all() {
137 - use doc && local HTML_DOCS=( docs/_build/html/. )
138 - distutils-r1_python_install_all
139 -}
140
141 diff --git a/dev-python/astropy/astropy-1.3.3.ebuild b/dev-python/astropy/astropy-1.3.3.ebuild
142 deleted file mode 100644
143 index 924aeef85f4..00000000000
144 --- a/dev-python/astropy/astropy-1.3.3.ebuild
145 +++ /dev/null
146 @@ -1,97 +0,0 @@
147 -# Copyright 1999-2019 Gentoo Authors
148 -# Distributed under the terms of the GNU General Public License v2
149 -
150 -EAPI=6
151 -
152 -PYTHON_COMPAT=( python2_7 python3_{5,6} )
153 -
154 -inherit distutils-r1 xdg-utils
155 -
156 -DESCRIPTION="Core functionality for performing astrophysics with Python"
157 -HOMEPAGE="https://www.astropy.org/"
158 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
159 -
160 -LICENSE="BSD"
161 -SLOT="0"
162 -KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
163 -IUSE="doc test"
164 -RESTRICT="!test? ( test )"
165 -
166 -# ply-3.10 incompatible, keep bundled (bug #622802)
167 -#rdep: dev-python/ply[${PYTHON_USEDEP}]
168 -#prep: cp "${FILESDIR}"/astropy-ply.py astropy/extern/ply.py || die
169 -
170 -RDEPEND="
171 - dev-libs/expat:0=
172 - dev-python/configobj[${PYTHON_USEDEP}]
173 - >=dev-python/numpy-1.10[${PYTHON_USEDEP}]
174 - dev-python/six[${PYTHON_USEDEP}]
175 - >=sci-astronomy/erfa-1.3:0=
176 - >=sci-astronomy/wcslib-5:0=
177 - >=sci-libs/cfitsio-3.410:0=
178 - sys-libs/zlib:0="
179 -DEPEND="${RDEPEND}
180 - dev-python/astropy-helpers[${PYTHON_USEDEP}]
181 - dev-python/cython[${PYTHON_USEDEP}]
182 - dev-python/setuptools[${PYTHON_USEDEP}]
183 - virtual/pkgconfig
184 - doc? (
185 - media-gfx/graphviz
186 - dev-libs/libxml2[${PYTHON_USEDEP}]
187 - dev-python/h5py[${PYTHON_USEDEP}]
188 - dev-python/jplephem[${PYTHON_USEDEP}]
189 - dev-python/matplotlib[${PYTHON_USEDEP}]
190 - dev-python/pillow[${PYTHON_USEDEP},jpeg(+)]
191 - dev-python/pytest[${PYTHON_USEDEP}]
192 - dev-python/pyyaml[${PYTHON_USEDEP}]
193 - dev-python/sphinx-gallery[${PYTHON_USEDEP}]
194 - sci-libs/scipy[${PYTHON_USEDEP}]
195 - )
196 - test? (
197 - dev-libs/libxml2[${PYTHON_USEDEP}]
198 - dev-python/pillow[${PYTHON_USEDEP},jpeg]
199 - dev-python/pytest[${PYTHON_USEDEP}]
200 - dev-python/pytest-mpl[${PYTHON_USEDEP}]
201 - dev-python/h5py[${PYTHON_USEDEP}]
202 - sci-libs/scipy[${PYTHON_USEDEP}]
203 - )"
204 -
205 -PATCHES=(
206 - "${FILESDIR}"/${PN}-1.3.3-mark-known-failures.patch
207 - "${FILESDIR}"/${PN}-1.3.3-external-python-pkgs.patch
208 -)
209 -
210 -python_prepare_all() {
211 - export mydistutilsargs="--offline"
212 - export ASTROPY_USE_SYSTEM_PYTEST=True
213 - #rm -r ${PN}_helpers || die
214 - rm -r cextern/{expat,erfa,cfitsio,wcslib} || die
215 - sed -i -e '/auto_use/s/True/False/' setup.cfg || die
216 - cat >> setup.cfg <<-EOF
217 - [build]
218 - use_system_libraries=1
219 - EOF
220 - xdg_environment_reset
221 - distutils-r1_python_prepare_all
222 -}
223 -
224 -python_compile_all() {
225 - if use doc; then
226 - mkdir -p examples
227 - touch examples/README.txt || die
228 - python_setup
229 - VARTEXFONTS="${T}"/fonts \
230 - MPLCONFIGDIR="${BUILD_DIR}" \
231 - PYTHONPATH="${BUILD_DIR}"/lib \
232 - esetup.py build_docs --no-intersphinx
233 - fi
234 -}
235 -
236 -python_test() {
237 - esetup.py test
238 -}
239 -
240 -python_install_all() {
241 - use doc && local HTML_DOCS=( docs/_build/html/. )
242 - distutils-r1_python_install_all
243 -}
244
245 diff --git a/dev-python/astropy/astropy-2.0.1.ebuild b/dev-python/astropy/astropy-2.0.1.ebuild
246 deleted file mode 100644
247 index 4cc6a45fc86..00000000000
248 --- a/dev-python/astropy/astropy-2.0.1.ebuild
249 +++ /dev/null
250 @@ -1,95 +0,0 @@
251 -# Copyright 1999-2019 Gentoo Authors
252 -# Distributed under the terms of the GNU General Public License v2
253 -
254 -EAPI=6
255 -
256 -PYTHON_COMPAT=( python2_7 python3_{5,6} )
257 -
258 -inherit distutils-r1 xdg-utils
259 -
260 -MYPV=${PV/_/}
261 -S=${WORKDIR}/${PN}-${MYPV}
262 -
263 -DESCRIPTION="Core functionality for performing astrophysics with Python"
264 -HOMEPAGE="https://www.astropy.org/"
265 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MYPV}.tar.gz"
266 -
267 -LICENSE="BSD"
268 -SLOT="0"
269 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
270 -IUSE="doc test"
271 -RESTRICT="!test? ( test )"
272 -
273 -RDEPEND="
274 - dev-libs/expat:0=
275 - dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
276 - dev-python/configobj[${PYTHON_USEDEP}]
277 - dev-python/h5py[${PYTHON_USEDEP}]
278 - dev-python/ipython[${PYTHON_USEDEP}]
279 - >=dev-python/jinja-2.7[${PYTHON_USEDEP}]
280 - dev-python/jplephem[${PYTHON_USEDEP}]
281 - dev-libs/libxml2[${PYTHON_USEDEP}]
282 - dev-python/matplotlib[${PYTHON_USEDEP}]
283 - dev-python/mpmath[${PYTHON_USEDEP}]
284 - >=dev-python/numpy-1.10[${PYTHON_USEDEP}]
285 - dev-python/objgraph[${PYTHON_USEDEP}]
286 - dev-python/pandas[${PYTHON_USEDEP}]
287 - dev-python/pillow[${PYTHON_USEDEP},jpeg(+)]
288 - dev-python/pytz[${PYTHON_USEDEP}]
289 - dev-python/pyyaml[${PYTHON_USEDEP}]
290 - dev-python/six[${PYTHON_USEDEP}]
291 - >=sci-astronomy/erfa-1.3:0=
292 - >=sci-astronomy/wcslib-5:0=
293 - >=sci-libs/cfitsio-3.410:0=
294 - sci-libs/scipy[${PYTHON_USEDEP}]
295 - sci-libs/scikits_image[${PYTHON_USEDEP}]
296 - sys-libs/zlib:0=
297 -"
298 -DEPEND="
299 - >=dev-python/astropy-helpers-2[${PYTHON_USEDEP}]
300 - >=dev-python/cython-0.21[${PYTHON_USEDEP}]
301 - >=dev-python/jinja-2.7[${PYTHON_USEDEP}]
302 - >=dev-python/numpy-1.10[${PYTHON_USEDEP}]
303 - dev-python/setuptools[${PYTHON_USEDEP}]
304 - virtual/pkgconfig
305 - doc? (
306 - ${RDEPEND}
307 - media-gfx/graphviz
308 - dev-python/pytest[${PYTHON_USEDEP}]
309 - >=dev-python/sphinx-1.6[${PYTHON_USEDEP}]
310 - >=dev-python/sphinx-gallery-0.1.9[${PYTHON_USEDEP}]
311 - )
312 - test? (
313 - ${RDEPEND}
314 - dev-python/mock[${PYTHON_USEDEP}]
315 - dev-python/pytest[${PYTHON_USEDEP}]
316 - dev-python/pytest-mpl[${PYTHON_USEDEP}]
317 - )
318 -"
319 -
320 -python_prepare_all() {
321 - export mydistutilsargs="--offline"
322 - export ASTROPY_USE_SYSTEM_PYTEST=True
323 - rm -r ${PN}_helpers || die
324 - rm -r cextern/{expat,erfa,cfitsio,wcslib} || die
325 - sed -i -e '/auto_use/s/True/False/' setup.cfg || die
326 - cat >> setup.cfg <<-EOF
327 -
328 - [build]
329 - use_system_libraries=1
330 - EOF
331 - xdg_environment_reset
332 - distutils-r1_python_prepare_all
333 -}
334 -
335 -python_compile_all() {
336 - if use doc; then
337 - VARTEXFONTS="${T}"/fonts MPLCONFIGDIR="${T}" PYTHONPATH="${BUILD_DIR}"/lib \
338 - esetup.py build_docs --no-intersphinx
339 - HTML_DOCS=( docs/_build/html/. )
340 - fi
341 -}
342 -
343 -python_test() {
344 - esetup.py test
345 -}
346
347 diff --git a/dev-python/astropy/files/astropy-1.0.4-system-configobj.patch b/dev-python/astropy/files/astropy-1.0.4-system-configobj.patch
348 deleted file mode 100644
349 index 9578c0d4357..00000000000
350 --- a/dev-python/astropy/files/astropy-1.0.4-system-configobj.patch
351 +++ /dev/null
352 @@ -1,14 +0,0 @@
353 -diff -ur astropy-0.4.1/astropy/config/configuration.py astropy-0.4.1.configobj/astropy/config/configuration.py
354 ---- astropy-0.4.1/astropy/config/configuration.py 2014-09-01 22:41:30.066853605 +0200
355 -+++ astropy-0.4.1.configobj/astropy/config/configuration.py 2014-09-01 22:40:50.793528942 +0200
356 -@@ -23,7 +23,8 @@
357 - import types
358 - from warnings import warn
359 -
360 --from ..extern.configobj import configobj, validate
361 -+import configobj
362 -+import validate
363 - from ..utils.exceptions import AstropyWarning, AstropyDeprecationWarning
364 - from ..utils import find_current_module
365 - from ..utils.misc import InheritDocstrings
366 -
367
368 diff --git a/dev-python/astropy/files/astropy-1.0.4-system-six.patch b/dev-python/astropy/files/astropy-1.0.4-system-six.patch
369 deleted file mode 100644
370 index 8bfab98124b..00000000000
371 --- a/dev-python/astropy/files/astropy-1.0.4-system-six.patch
372 +++ /dev/null
373 @@ -1,12 +0,0 @@
374 -diff -ur astropy-0.4.1/astropy/extern/six.py astropy-0.4.1.six/astropy/extern/six.py
375 ---- astropy-0.4.1/astropy/extern/six.py 2014-09-01 21:57:56.663393218 +0200
376 -+++ astropy-0.4.1.six/astropy/extern/six.py 2014-09-01 21:59:02.940933294 +0200
377 -@@ -13,7 +13,7 @@
378 - # Update this to prevent Astropy from using its bundled copy of six
379 - # (but only if some other version of at least _SIX_MIN_VERSION can
380 - # be provided)
381 --_SIX_SEARCH_PATH = ['astropy.extern.bundled.six', 'six']
382 -+_SIX_SEARCH_PATH = ['six', 'astropy.extern.bundled.six']
383 -
384 -
385 - def _find_module(name, path=None):
386
387 diff --git a/dev-python/astropy/files/astropy-1.1.1-mark-kown-failures.patch b/dev-python/astropy/files/astropy-1.1.1-mark-kown-failures.patch
388 deleted file mode 100644
389 index 2e2c82af541..00000000000
390 --- a/dev-python/astropy/files/astropy-1.1.1-mark-kown-failures.patch
391 +++ /dev/null
392 @@ -1,99 +0,0 @@
393 -Author: Ole Streicher <olebole@××××××.org>
394 -Description: Mark all known test failures as xfail.
395 - These failures have been discussed with upstream.
396 ---- a/astropy/io/fits/tests/test_connect.py
397 -+++ b/astropy/io/fits/tests/test_connect.py
398 -@@ -136,6 +136,8 @@
399 - # while reading is to check whether col.null is present. For float columns, col.null
400 - # is not initialized
401 -
402 -+# see https://github.com/astropy/astropy/issues/3415
403 -+ @pytest.mark.xfail()
404 - def test_read_from_fileobj(self, tmpdir):
405 - filename = str(tmpdir.join('test_read_from_fileobj.fits'))
406 - hdu = BinTableHDU(self.data)
407 -@@ -172,6 +174,8 @@
408 - def setup_method(self, method):
409 - warnings.filterwarnings('always')
410 -
411 -+# see https://github.com/astropy/astropy/issues/3415
412 -+ @pytest.mark.xfail()
413 - def test_read(self, tmpdir):
414 - filename = str(tmpdir.join('test_read.fits'))
415 - self.hdus.writeto(filename)
416 -@@ -189,6 +193,8 @@
417 - Table.read(filename, hdu=0)
418 - assert exc.value.args[0] == 'No table found in hdu=0'
419 -
420 -+# see https://github.com/astropy/astropy/issues/3415
421 -+ @pytest.mark.xfail()
422 - @pytest.mark.parametrize('hdu', [1, 'first'])
423 - def test_read_with_hdu_1(self, tmpdir, hdu):
424 - filename = str(tmpdir.join('test_read_with_hdu_1.fits'))
425 ---- a/astropy/wcs/wcs.py
426 -+++ b/astropy/wcs/wcs.py
427 -@@ -84,6 +84,8 @@
428 - if six.PY3 or platform.system() == 'Windows':
429 - __doctest_skip__ = ['WCS.all_world2pix']
430 -
431 -+# see https://github.com/astropy/astropy/issues/3380
432 -+__doctest_skip__ = ['WCS.all_world2pix']
433 -
434 - if _wcs is not None:
435 - WCSBase = _wcs._Wcs
436 ---- a/astropy/tests/tests/test_socketblocker.py
437 -+++ b/astropy/tests/tests/test_socketblocker.py
438 -@@ -66,8 +66,8 @@
439 - def _square(x):
440 - return x ** 2
441 -
442 --
443 --@×××××××××××.skipif('not PY3_4 or sys.platform == "win32" or sys.platform.startswith("gnu0")')
444 -+# see https://github.com/astropy/astropy/issues/4193
445 -+@×××××××××××.skipif(True, reason="Blocks on Debian CI test")
446 - def test_multiprocessing_forkserver():
447 - """
448 - Test that using multiprocessing with forkserver works. Perhaps
449 ---- a/astropy/coordinates/tests/test_api_ape5.py
450 -+++ b/astropy/coordinates/tests/test_api_ape5.py
451 -@@ -319,7 +319,8 @@
452 - # coordinate object, and one that returns a cartesian matrix but does *not*
453 - # require `newobj` or `fk5frame` - this allows optimization of the transform.
454 -
455 --
456 -+# Temporary mark until scipy/numpy is fully on 3.5
457 -+@×××××××××××.xfail()
458 - def test_highlevel_api():
459 - J2001 = time.Time('J2001', scale='utc')
460 -
461 ---- a/astropy/visualization/tests/test_histogram.py
462 -+++ b/astropy/visualization/tests/test_histogram.py
463 -@@ -50,6 +50,8 @@
464 - assert patches2[0].axes is ax[1]
465 -
466 -
467 -+# see https://github.com/astropy/astropy/issues/4329
468 -+@×××××××××××.xfail()
469 - @pytest.mark.skipif('not HAS_PLT')
470 - def test_hist_autobin(rseed=0):
471 - rng = np.random.RandomState(rseed)
472 ---- a/astropy/table/tests/test_info.py
473 -+++ b/astropy/table/tests/test_info.py
474 -@@ -6,6 +6,7 @@
475 - import warnings
476 - import numpy as np
477 -
478 -+from ...tests.helper import pytest
479 - from ...extern import six
480 - from ... import units as u
481 - from ... import time
482 -@@ -225,7 +226,8 @@
483 - t.info(out=out)
484 - assert out.getvalue().splitlines() == exp
485 -
486 --
487 -+# see https://github.com/astropy/astropy/issues/4336
488 -+@×××××××××××.xfail()
489 - def test_ignore_warnings():
490 - t = table.Table([[np.nan, np.nan]])
491 - with warnings.catch_warnings(record=True) as warns:
492
493 diff --git a/dev-python/astropy/files/astropy-1.2.1-cfitsio-338.patch b/dev-python/astropy/files/astropy-1.2.1-cfitsio-338.patch
494 deleted file mode 100644
495 index 9a688d95985..00000000000
496 --- a/dev-python/astropy/files/astropy-1.2.1-cfitsio-338.patch
497 +++ /dev/null
498 @@ -1,16 +0,0 @@
499 -Author: Ole Streicher <olebole@××××××.org>
500 -Description: Make TFORMx check more flexible
501 - The maximal column length in cfitsio changed between version 3370 and 3380.
502 - This patch checks their syntax, without a specific length.
503 -Bug: https://github.com/astropy/astropy/issues/4646
504 ---- a/astropy/io/fits/tests/test_image.py
505 -+++ b/astropy/io/fits/tests/test_image.py
506 -@@ -1070,7 +1070,7 @@
507 - hdu.writeto(self.temp('test.fits'))
508 -
509 - with fits.open(self.temp('test.fits')) as hdul:
510 -- assert (hdul['SCI'].data == cube).all()
511 -+ assert np.abs(hdul['SCI'].data - cube).max() < 1./15.
512 -
513 - def test_subtractive_dither_seed(self):
514 - """
515
516 diff --git a/dev-python/astropy/files/astropy-1.3.3-external-python-pkgs.patch b/dev-python/astropy/files/astropy-1.3.3-external-python-pkgs.patch
517 deleted file mode 100644
518 index 5c69704df9b..00000000000
519 --- a/dev-python/astropy/files/astropy-1.3.3-external-python-pkgs.patch
520 +++ /dev/null
521 @@ -1,119 +0,0 @@
522 -Edit: bicatali@g.o, ply-3.10 incompatible, so keep bundled.
523 -
524 -From: Ole Streicher <olebole@××××××.org>
525 -Date: Thu, 12 Jan 2017 11:37:47 +0100
526 -Subject: Use external python modules instead of convenience copies
527 -
528 ----
529 - astropy/coordinates/angle_utilities.py | 2 +-
530 - astropy/extern/configobj.py | 5 ++++-
531 - astropy/extern/six.py | 2 +-
532 - astropy/table/jsviewer.py | 14 ++++++++------
533 - astropy/table/tests/test_jsviewer.py | 6 +++---
534 - astropy/tests/helper.py | 2 +-
535 - astropy/units/format/cds.py | 4 ++--
536 - astropy/units/format/generic.py | 4 ++--
537 - astropy/units/format/ogip.py | 4 ++--
538 - 9 files changed, 24 insertions(+), 19 deletions(-)
539 -
540 -diff --git a/astropy/extern/configobj.py b/astropy/extern/configobj.py
541 -index 8d1bd8c..e3bb0e0 100644
542 ---- a/astropy/extern/configobj.py
543 -+++ b/astropy/extern/configobj.py
544 -@@ -7,5 +7,8 @@ currently installed version of python.
545 - Also, this should actually never actually show up as a docstring, because
546 - it should get overwritten by the appropriate configobj docstring.
547 - """
548 -+from __future__ import absolute_import
549 -+import validate
550 -+import configobj
551 -+
552 -
553 --from .configobj import configobj, validate, __doc__
554 -diff --git a/astropy/extern/six.py b/astropy/extern/six.py
555 -index 5398fc0..fb3a30c 100644
556 ---- a/astropy/extern/six.py
557 -+++ b/astropy/extern/six.py
558 -@@ -13,7 +13,7 @@ _SIX_MIN_VERSION = StrictVersion('1.10.0')
559 - # Update this to prevent Astropy from using its bundled copy of six
560 - # (but only if some other version of at least _SIX_MIN_VERSION can
561 - # be provided)
562 --_SIX_SEARCH_PATH = ['astropy.extern.bundled.six', 'six']
563 -+_SIX_SEARCH_PATH = ['six']
564 -
565 -
566 - def _find_module(name, path=None):
567 -diff --git a/astropy/table/jsviewer.py b/astropy/table/jsviewer.py
568 -index d0cc380..9f686ea 100644
569 ---- a/astropy/table/jsviewer.py
570 -+++ b/astropy/table/jsviewer.py
571 -@@ -30,8 +30,8 @@ class Conf(_config.ConfigNamespace):
572 - conf = Conf()
573 -
574 -
575 --EXTERN_JS_DIR = abspath(join(dirname(extern.__file__), 'js'))
576 --EXTERN_CSS_DIR = abspath(join(dirname(extern.__file__), 'css'))
577 -+EXTERN_JS_DIR = '/usr/share/javascript'
578 -+EXTERN_CSS_DIR = EXTERN_JS_DIR
579 -
580 - _SORTING_SCRIPT_PART_1 = """
581 - var astropy_sort_num = function(a, b) {{
582 -@@ -134,22 +134,24 @@ class JSViewer(object):
583 - @property
584 - def jquery_urls(self):
585 - if self._use_local_files:
586 -- return ['file://' + join(EXTERN_JS_DIR, 'jquery-3.1.1.min.js'),
587 -- 'file://' + join(EXTERN_JS_DIR, 'jquery.dataTables.min.js')]
588 -+ return ['file://' + join(EXTERN_JS_DIR, 'jquery', 'jquery.min.js'),
589 -+ 'file://' + join(EXTERN_JS_DIR, 'jquery-datatables',
590 -+ 'jquery.dataTables.min.js')]
591 - else:
592 - return [conf.jquery_url, conf.datatables_url]
593 -
594 - @property
595 - def css_urls(self):
596 - if self._use_local_files:
597 -- return ['file://' + join(EXTERN_CSS_DIR,
598 -+ return ['file://' + join(EXTERN_CSS_DIR, 'jquery-datatables', 'css',
599 - 'jquery.dataTables.css')]
600 - else:
601 - return conf.css_urls
602 -
603 - def _jstable_file(self):
604 - if self._use_local_files:
605 -- return 'file://' + join(EXTERN_JS_DIR, 'jquery.dataTables.min')
606 -+ return 'file://' + join(EXTERN_JS_DIR, 'jquery-datatables',
607 -+ 'jquery.dataTables.min')
608 - else:
609 - return conf.datatables_url[:-3]
610 -
611 -diff --git a/astropy/table/tests/test_jsviewer.py b/astropy/table/tests/test_jsviewer.py
612 -index 6a8b033..5018bd4 100644
613 ---- a/astropy/table/tests/test_jsviewer.py
614 -+++ b/astropy/table/tests/test_jsviewer.py
615 -@@ -145,9 +145,9 @@ def test_write_jsviewer_local(tmpdir):
616 - table_id='test',
617 - length='50',
618 - display_length='10, 25, 50, 100, 500, 1000',
619 -- datatables_css_url='file://' + join(EXTERN_DIR, 'css', 'jquery.dataTables.css'),
620 -- datatables_js_url='file://' + join(EXTERN_DIR, 'js', 'jquery.dataTables.min.js'),
621 -- jquery_url='file://' + join(EXTERN_DIR, 'js', 'jquery-3.1.1.min.js')
622 -+ datatables_css_url='file:///usr/share/javascript/jquery-datatables/css/jquery.dataTables.css',
623 -+ datatables_js_url='file:///usr/share/javascript/jquery-datatables/jquery.dataTables.min.js',
624 -+ jquery_url='file:///usr/share/javascript/jquery/jquery.min.js'
625 - )
626 - with open(tmpfile) as f:
627 - assert f.read().strip() == ref.strip()
628 -diff --git a/astropy/tests/helper.py b/astropy/tests/helper.py
629 -index 9e88d1f..94bd40a 100644
630 ---- a/astropy/tests/helper.py
631 -+++ b/astropy/tests/helper.py
632 -@@ -40,7 +40,7 @@ __all__ = ['raises', 'enable_deprecations_as_exceptions', 'remote_data',
633 - 'pickle_protocol', 'generic_recursive_equality_test']
634 -
635 -
636 --if os.environ.get('ASTROPY_USE_SYSTEM_PYTEST') or '_pytest' in sys.modules:
637 -+if True:
638 - import pytest
639 -
640 - else:
641
642 diff --git a/dev-python/astropy/files/astropy-1.3.3-mark-known-failures.patch b/dev-python/astropy/files/astropy-1.3.3-mark-known-failures.patch
643 deleted file mode 100644
644 index 1a30bc1d10a..00000000000
645 --- a/dev-python/astropy/files/astropy-1.3.3-mark-known-failures.patch
646 +++ /dev/null
647 @@ -1,84 +0,0 @@
648 -From: Ole Streicher <olebole@××××××.org>
649 -Date: Tue, 13 Dec 2016 09:41:39 +0100
650 -Subject: Mark all known test failures as xfail. These failures have been
651 - discussed with upstream.
652 -
653 ----
654 - astropy/table/tests/test_info.py | 4 +++-
655 - astropy/tests/tests/test_socketblocker.py | 4 ++--
656 - astropy/visualization/wcsaxes/tests/test_display_world_coordinates.py | 4 ++++
657 - astropy/vo/samp/tests/test_standard_profile.py | 2 ++
658 - 4 files changed, 11 insertions(+), 3 deletions(-)
659 -
660 -diff --git a/astropy/table/tests/test_info.py b/astropy/table/tests/test_info.py
661 -index 2bbcc7a..50fbdb4 100644
662 ---- a/astropy/table/tests/test_info.py
663 -+++ b/astropy/table/tests/test_info.py
664 -@@ -8,6 +8,7 @@ from collections import OrderedDict
665 -
666 - import numpy as np
667 -
668 -+from ...tests.helper import pytest
669 - from ...extern import six
670 - from ...extern.six.moves import cStringIO as StringIO
671 - from ... import units as u
672 -@@ -229,7 +230,8 @@ def test_class_attribute():
673 - t.info(out=out)
674 - assert out.getvalue().splitlines() == exp
675 -
676 --
677 -+# see https://github.com/astropy/astropy/issues/4336
678 -+@×××××××××××.xfail()
679 - def test_ignore_warnings():
680 - t = table.Table([[np.nan, np.nan]])
681 - with warnings.catch_warnings(record=True) as warns:
682 -diff --git a/astropy/tests/tests/test_socketblocker.py b/astropy/tests/tests/test_socketblocker.py
683 -index c362fa5..783defe 100644
684 ---- a/astropy/tests/tests/test_socketblocker.py
685 -+++ b/astropy/tests/tests/test_socketblocker.py
686 -@@ -66,8 +66,8 @@ PY3_4 = sys.version_info[:2] >= (3, 4)
687 - def _square(x):
688 - return x ** 2
689 -
690 --
691 --@×××××××××××.skipif('not PY3_4 or sys.platform == "win32" or sys.platform.startswith("gnu0")')
692 -+# see https://github.com/astropy/astropy/issues/4193
693 -+@×××××××××××.skipif(True, reason="Blocks on Debian CI test")
694 - def test_multiprocessing_forkserver():
695 - """
696 - Test that using multiprocessing with forkserver works. Perhaps
697 -diff --git a/astropy/visualization/wcsaxes/tests/test_display_world_coordinates.py b/astropy/visualization/wcsaxes/tests/test_display_world_coordinates.py
698 -index 53436dd..4c710e7 100644
699 ---- a/astropy/visualization/wcsaxes/tests/test_display_world_coordinates.py
700 -+++ b/astropy/visualization/wcsaxes/tests/test_display_world_coordinates.py
701 -@@ -3,6 +3,8 @@ from ..core import WCSAxes
702 - import matplotlib.pyplot as plt
703 - from matplotlib.backend_bases import KeyEvent
704 -
705 -+import pytest
706 -+
707 - from ....wcs import WCS
708 - from ....extern import six
709 - from ....coordinates import FK5
710 -@@ -93,6 +95,8 @@ class TestDisplayWorldCoordinate(BaseImageTests):
711 -
712 - assert string_world5 == six.u('267.652 -28\xb046\'23" (world, overlay 3)')
713 -
714 -+ # See https://github.com/astropy/astropy/issues/5601
715 -+ @pytest.mark.xfail()
716 - def test_cube_coords(self, tmpdir):
717 - wcs = WCS(self.cube_header)
718 -
719 -diff --git a/astropy/vo/samp/tests/test_standard_profile.py b/astropy/vo/samp/tests/test_standard_profile.py
720 -index 325ac96..ac25e55 100644
721 ---- a/astropy/vo/samp/tests/test_standard_profile.py
722 -+++ b/astropy/vo/samp/tests/test_standard_profile.py
723 -@@ -62,6 +62,8 @@ class TestStandardProfile(object):
724 -
725 - self.hub.stop()
726 -
727 -+ # see https://github.com/astropy/astropy/issues/5460
728 -+ @pytest.mark.skipif(True, reason="Setup fails due to SSL problems")
729 - def test_main(self):
730 -
731 - self.client1_id = self.client1.get_public_id()
732
733 diff --git a/dev-python/astropy/files/astropy-ply.py b/dev-python/astropy/files/astropy-ply.py
734 deleted file mode 100644
735 index 19eb104c4ca..00000000000
736 --- a/dev-python/astropy/files/astropy-ply.py
737 +++ /dev/null
738 @@ -1,58 +0,0 @@
739 -# Licensed under a 3-clause BSD style license - see LICENSE.rst
740 -
741 -"""
742 -Handle loading ply package from system or from the bundled copy
743 -"""
744 -
745 -import imp
746 -from distutils.version import StrictVersion
747 -
748 -
749 -def _find_module(name, path=None):
750 - """
751 - Alternative to `imp.find_module` that can also search in subpackages.
752 - """
753 -
754 - parts = name.split('.')
755 -
756 - for part in parts:
757 - if path is not None:
758 - path = [path]
759 -
760 - fh, path, descr = imp.find_module(part, path)
761 -
762 - return fh, path, descr
763 -
764 -_PLY_MIN_VERSION = StrictVersion('3.4')
765 -
766 -# Update this to prevent Astropy from using its bundled copy of ply
767 -# (but only if some other version of at least _PLY_MIN_VERSION can
768 -# be provided)
769 -_PLY_SEARCH_PATH = ['ply']
770 -
771 -
772 -for mod_name in _PLY_SEARCH_PATH:
773 - try:
774 - mod_info = _find_module(mod_name)
775 - #mod_lex_info = _find_module(mod_name + '.lex')
776 - except ImportError:
777 - continue
778 -
779 - mod = imp.load_module(__name__, *mod_info)
780 - #mod_lex = imp.load_module(__name__ + '.lex', *mod_lex_info)
781 -
782 - try:
783 - # if StrictVersion(mod_lex.__version__) >= _PLY_MIN_VERSION:
784 - # break
785 - break
786 - except (AttributeError, ValueError):
787 - # Attribute error if the ply module isn't what it should be and doesn't
788 - # have a .__version__; ValueError if the version string exists but is
789 - # somehow bogus/unparseable
790 - continue
791 -else:
792 - raise ImportError(
793 - "Astropy requires the 'ply' module of minimum version {0}; "
794 - "normally this is bundled with the astropy package so if you get "
795 - "this warning consult the packager of your Astropy "
796 - "distribution.".format(_PLY_MIN_VERSION))
797
798 diff --git a/dev-python/astropy/metadata.xml b/dev-python/astropy/metadata.xml
799 deleted file mode 100644
800 index 85615ff002c..00000000000
801 --- a/dev-python/astropy/metadata.xml
802 +++ /dev/null
803 @@ -1,16 +0,0 @@
804 -<?xml version="1.0" encoding="UTF-8"?>
805 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
806 -<pkgmetadata>
807 - <maintainer type="project">
808 - <email>sci-astronomy@g.o</email>
809 - <name>Gentoo Astronomy Project</name>
810 - </maintainer>
811 - <longdescription lang="en">
812 - Astropy is a community-driven package intended to contain much of
813 - the core functionality and some common tools needed for performing
814 - astronomy and astrophysics with Python.
815 -</longdescription>
816 - <upstream>
817 - <remote-id type="pypi">astropy</remote-id>
818 - </upstream>
819 -</pkgmetadata>