Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/astropy/, dev-python/astropy/files/
Date: Thu, 18 Feb 2016 19:14:35
Message-Id: 1455826243.3764c9756bec480696e0ebbb7e9d6421d81da933.bicatali@gentoo
1 commit: 3764c9756bec480696e0ebbb7e9d6421d81da933
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 18 20:10:14 2016 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 18 20:10:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3764c975
7
8 dev-python/astropy: version bump
9
10 Package-Manager: portage-2.2.27
11
12 dev-python/astropy/Manifest | 2 +-
13 dev-python/astropy/astropy-1.1.1.ebuild | 88 +++++++++++++++++++
14 .../astropy/files/astropy-1.1.1-fix-wcs.patch | 15 ++++
15 .../files/astropy-1.1.1-mark-kown-failures.patch | 99 ++++++++++++++++++++++
16 4 files changed, 203 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-python/astropy/Manifest b/dev-python/astropy/Manifest
19 index 461d0b2..f32eecc 100644
20 --- a/dev-python/astropy/Manifest
21 +++ b/dev-python/astropy/Manifest
22 @@ -1,2 +1,2 @@
23 -DIST astropy-1.0.4.tar.gz 7693852 SHA256 c64be72f3246ef699d2e0627a757afc0d59701fc9533088a8be0de23e16595a9 SHA512 5f66f61c93ad88afd2f24fedf96d553688de3c9f2a926dca9b1037ff24b4fd83bd486b870a0abf3c9810ad4e3e902c64f8dfb7f023363d0677e233a21667dfcc WHIRLPOOL ab10edec3650cc39d82e0f023ab107e5b23e75a03cbf8e24b0e902f3700c78921f86983f89ff533c56d9f4bc3b9d0109d8ee57cd6450ab239845b8a403bc5c26
24 DIST astropy-1.0.6.tar.gz 7632331 SHA256 1a0190ad420323b9bd8f7b29995a39580d7d59c5329c825bb5abb52e2f7b936d SHA512 84e02204bc55d3bd6e0e891dc56ab218d1deb65882d5d771b3f80c2a11790f77c103b0c0d5537f1842d98f0d3ded19039c82482c15147edadac89e9707537b40 WHIRLPOOL b20e5c2e3677485eaf22c71c7e3461443d4a92bf7b0e649f5e0153e0b1d46741958e983b743aa30bf07ad971a0c865e53211963653ddf814a5d4362f36f07b02
25 +DIST astropy-1.1.1.tar.gz 8157305 SHA256 4d2e7a8bd5191a66d7e1a52beefb4a0b6f496a1e9e8212422613219cb514769f SHA512 bc3c370da32d5f0098dbfc2808dba9d4d4424d3dcfba4d7ffd84b39569387b79ad93086e10678c259237f9cfe1229725501d0dc4eba51c9d01a4cd8a72024fb4 WHIRLPOOL 5b40955f56e6f080ad93b224eabd345565ef9f5e7f5ccb00e2737bd714117bc9b35922a044fe4ccaddb9d30fa72e13dd560577392120bfbd0a9d10c8aaa5aa01
26
27 diff --git a/dev-python/astropy/astropy-1.1.1.ebuild b/dev-python/astropy/astropy-1.1.1.ebuild
28 new file mode 100644
29 index 0000000..cbe1283
30 --- /dev/null
31 +++ b/dev-python/astropy/astropy-1.1.1.ebuild
32 @@ -0,0 +1,88 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +PYTHON_COMPAT=( python2_7 python3_{4,5} )
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="Core functionality for performing astrophysics with Python"
44 +HOMEPAGE="http://astropy.org/"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
50 +IUSE="doc test"
51 +
52 +RDEPEND="
53 + >=dev-libs/expat-2.1.0:0=
54 + dev-python/configobj[${PYTHON_USEDEP}]
55 + dev-python/numpy[${PYTHON_USEDEP}]
56 + dev-python/ply[${PYTHON_USEDEP}]
57 + dev-python/six[${PYTHON_USEDEP}]
58 + >=sci-astronomy/erfa-1.2:0=
59 + >=sci-astronomy/wcslib-5:0=
60 + >=sci-libs/cfitsio-3.360:0=
61 + sys-libs/zlib:0="
62 +DEPEND="${RDEPEND}
63 + >=dev-python/astropy-helpers-1.1[${PYTHON_USEDEP}]
64 + dev-python/cython[${PYTHON_USEDEP}]
65 + dev-python/setuptools[${PYTHON_USEDEP}]
66 + virtual/pkgconfig
67 + doc? (
68 + dev-python/matplotlib[${PYTHON_USEDEP}]
69 + dev-python/sphinx[${PYTHON_USEDEP}]
70 + media-gfx/graphviz
71 + )
72 + test? (
73 + dev-libs/libxml2[${PYTHON_USEDEP}]
74 + dev-python/pytest[${PYTHON_USEDEP}]
75 + dev-python/h5py[${PYTHON_USEDEP}]
76 + dev-python/matplotlib[${PYTHON_USEDEP}]
77 + sci-libs/scipy[${PYTHON_USEDEP}]
78 + )"
79 +
80 +PATCHES=(
81 + "${FILESDIR}/${PN}-1.0.4-system-six.patch"
82 + "${FILESDIR}/${PN}-1.0.4-system-configobj.patch"
83 + "${FILESDIR}/${PN}-1.1.1-fix-wcs.patch"
84 + "${FILESDIR}/${PN}-1.1.1-mark-kown-failures.patch"
85 +)
86 +
87 +python_prepare_all() {
88 + export mydistutilsargs="--offline"
89 + export ASTROPY_USE_SYSTEM_PYTEST=True
90 + rm -r ${PN}_helpers || die
91 + cp "${FILESDIR}"/astropy-ply.py astropy/extern/ply.py || die
92 + rm -r cextern/{expat,erfa,cfitsio,wcslib} || die
93 + sed -i -e '/auto_use/s/True/False/' setup.cfg || die
94 + cat >> setup.cfg <<-EOF
95 +
96 + [build]
97 + use_system_libraries=1
98 + EOF
99 +
100 + distutils-r1_python_prepare_all
101 +}
102 +
103 +python_compile_all() {
104 + if use doc; then
105 + python_export_best
106 + VARTEXFONTS="${T}"/fonts \
107 + MPLCONFIGDIR="${BUILD_DIR}" \
108 + PYTHONPATH="${BUILD_DIR}"/lib \
109 + esetup.py build_sphinx
110 + fi
111 +}
112 +
113 +python_test() {
114 + esetup.py test
115 +}
116 +
117 +python_install_all() {
118 + use doc && local HTML_DOCS=( docs/_build/html/. )
119 + distutils-r1_python_install_all
120 +}
121
122 diff --git a/dev-python/astropy/files/astropy-1.1.1-fix-wcs.patch b/dev-python/astropy/files/astropy-1.1.1-fix-wcs.patch
123 new file mode 100644
124 index 0000000..efb1273
125 --- /dev/null
126 +++ b/dev-python/astropy/files/astropy-1.1.1-fix-wcs.patch
127 @@ -0,0 +1,15 @@
128 +Author: Kacper Kowalik <xarthisius.kk@×××××.com>
129 +Description: Copy keys to a list, since orignal map is modified
130 +Url: https://github.com/astropy/astropy/issues/4477
131 +Bug: https://github.com/astropy/astropy/issues/4460
132 +--- a/astropy/wcs/wcs.py
133 ++++ b/astropy/wcs/wcs.py
134 +@@ -988,7 +988,7 @@
135 + """
136 + # Never pass SIP coefficients to wcslib
137 + # CTYPE must be passed with -SIP to wcslib
138 +- for key in (m.group() for m in map(SIP_KW.match, header.keys())
139 ++ for key in (m.group() for m in map(SIP_KW.match, list(header))
140 + if m is not None):
141 + del header[key]
142 +
143
144 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
145 new file mode 100644
146 index 0000000..2e2c82a
147 --- /dev/null
148 +++ b/dev-python/astropy/files/astropy-1.1.1-mark-kown-failures.patch
149 @@ -0,0 +1,99 @@
150 +Author: Ole Streicher <olebole@××××××.org>
151 +Description: Mark all known test failures as xfail.
152 + These failures have been discussed with upstream.
153 +--- a/astropy/io/fits/tests/test_connect.py
154 ++++ b/astropy/io/fits/tests/test_connect.py
155 +@@ -136,6 +136,8 @@
156 + # while reading is to check whether col.null is present. For float columns, col.null
157 + # is not initialized
158 +
159 ++# see https://github.com/astropy/astropy/issues/3415
160 ++ @pytest.mark.xfail()
161 + def test_read_from_fileobj(self, tmpdir):
162 + filename = str(tmpdir.join('test_read_from_fileobj.fits'))
163 + hdu = BinTableHDU(self.data)
164 +@@ -172,6 +174,8 @@
165 + def setup_method(self, method):
166 + warnings.filterwarnings('always')
167 +
168 ++# see https://github.com/astropy/astropy/issues/3415
169 ++ @pytest.mark.xfail()
170 + def test_read(self, tmpdir):
171 + filename = str(tmpdir.join('test_read.fits'))
172 + self.hdus.writeto(filename)
173 +@@ -189,6 +193,8 @@
174 + Table.read(filename, hdu=0)
175 + assert exc.value.args[0] == 'No table found in hdu=0'
176 +
177 ++# see https://github.com/astropy/astropy/issues/3415
178 ++ @pytest.mark.xfail()
179 + @pytest.mark.parametrize('hdu', [1, 'first'])
180 + def test_read_with_hdu_1(self, tmpdir, hdu):
181 + filename = str(tmpdir.join('test_read_with_hdu_1.fits'))
182 +--- a/astropy/wcs/wcs.py
183 ++++ b/astropy/wcs/wcs.py
184 +@@ -84,6 +84,8 @@
185 + if six.PY3 or platform.system() == 'Windows':
186 + __doctest_skip__ = ['WCS.all_world2pix']
187 +
188 ++# see https://github.com/astropy/astropy/issues/3380
189 ++__doctest_skip__ = ['WCS.all_world2pix']
190 +
191 + if _wcs is not None:
192 + WCSBase = _wcs._Wcs
193 +--- a/astropy/tests/tests/test_socketblocker.py
194 ++++ b/astropy/tests/tests/test_socketblocker.py
195 +@@ -66,8 +66,8 @@
196 + def _square(x):
197 + return x ** 2
198 +
199 +-
200 +-@×××××××××××.skipif('not PY3_4 or sys.platform == "win32" or sys.platform.startswith("gnu0")')
201 ++# see https://github.com/astropy/astropy/issues/4193
202 ++@×××××××××××.skipif(True, reason="Blocks on Debian CI test")
203 + def test_multiprocessing_forkserver():
204 + """
205 + Test that using multiprocessing with forkserver works. Perhaps
206 +--- a/astropy/coordinates/tests/test_api_ape5.py
207 ++++ b/astropy/coordinates/tests/test_api_ape5.py
208 +@@ -319,7 +319,8 @@
209 + # coordinate object, and one that returns a cartesian matrix but does *not*
210 + # require `newobj` or `fk5frame` - this allows optimization of the transform.
211 +
212 +-
213 ++# Temporary mark until scipy/numpy is fully on 3.5
214 ++@×××××××××××.xfail()
215 + def test_highlevel_api():
216 + J2001 = time.Time('J2001', scale='utc')
217 +
218 +--- a/astropy/visualization/tests/test_histogram.py
219 ++++ b/astropy/visualization/tests/test_histogram.py
220 +@@ -50,6 +50,8 @@
221 + assert patches2[0].axes is ax[1]
222 +
223 +
224 ++# see https://github.com/astropy/astropy/issues/4329
225 ++@×××××××××××.xfail()
226 + @pytest.mark.skipif('not HAS_PLT')
227 + def test_hist_autobin(rseed=0):
228 + rng = np.random.RandomState(rseed)
229 +--- a/astropy/table/tests/test_info.py
230 ++++ b/astropy/table/tests/test_info.py
231 +@@ -6,6 +6,7 @@
232 + import warnings
233 + import numpy as np
234 +
235 ++from ...tests.helper import pytest
236 + from ...extern import six
237 + from ... import units as u
238 + from ... import time
239 +@@ -225,7 +226,8 @@
240 + t.info(out=out)
241 + assert out.getvalue().splitlines() == exp
242 +
243 +-
244 ++# see https://github.com/astropy/astropy/issues/4336
245 ++@×××××××××××.xfail()
246 + def test_ignore_warnings():
247 + t = table.Table([[np.nan, np.nan]])
248 + with warnings.catch_warnings(record=True) as warns: