1 |
commit: e8986dda6a53603f0902258e1c0873123c164da0 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 18 23:17:47 2016 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 18 23:17:47 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8986dda |
7 |
|
8 |
dev-python/aplpy: version bump |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
dev-python/aplpy/Manifest | 1 + |
13 |
dev-python/aplpy/aplpy-1.0.ebuild | 53 +++++++++ |
14 |
.../aplpy/files/aplpy-1.0-fix-dependencies.patch | 14 +++ |
15 |
.../files/aplpy-1.0-mark-known-failures.patch | 121 +++++++++++++++++++++ |
16 |
4 files changed, 189 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/aplpy/Manifest b/dev-python/aplpy/Manifest |
19 |
index f6a8ac7..75d52df 100644 |
20 |
--- a/dev-python/aplpy/Manifest |
21 |
+++ b/dev-python/aplpy/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST APLpy-0.9.14.tar.gz 1095547 SHA256 0313a91523b6a32a40e5b97da55243d5e59722cd8fa2e6642915edd26d464d69 SHA512 9cf12aa30d3c4540c2cc33907be3a12e78247a8880720e4de7e513842ef437f616b2c63a345a63e7a7081676aff56032840dc1528ed10438f7729cf2acb9da9f WHIRLPOOL 55c25aa11065b741e89b1538d96e57974bcb6b80f5708e5ee5f975742f7e04cbfe6df3da7b030c67a54bbcc929eaec46e2d2e34551d8f9e7365e2f2c4d5b3a0d |
24 |
+DIST APLpy-1.0.tar.gz 1169280 SHA256 09a8a24b46b93a1eacdbc0e6fd480fa38e4dd890a24963136d76185924602ff0 SHA512 658b626c2a94c73cc8ba45fde86409659555ed3ec065d07313f08b67c0bcdc596c8dc94562c924de2f3f32d6884051e6756e22384d9594c4538578b482fa7590 WHIRLPOOL 0c884cecbbc9a7cd4ca4ba48cee4e03f039fa2edf4aa5aa4ac945b58c889084acb762f9cff2014911b383b0b14ebd2e51d2ce28b01b87eb0053ba06c3cc6c5c3 |
25 |
|
26 |
diff --git a/dev-python/aplpy/aplpy-1.0.ebuild b/dev-python/aplpy/aplpy-1.0.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..5d0cd8a |
29 |
--- /dev/null |
30 |
+++ b/dev-python/aplpy/aplpy-1.0.ebuild |
31 |
@@ -0,0 +1,53 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
39 |
+ |
40 |
+inherit distutils-r1 virtualx |
41 |
+ |
42 |
+MYPN=APLpy |
43 |
+MYP=${MYPN}-${PV} |
44 |
+ |
45 |
+DESCRIPTION="Astronomical Plotting Library in Python" |
46 |
+HOMEPAGE="https://aplpy.github.com/" |
47 |
+SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
52 |
+IUSE="" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ dev-python/astropy[${PYTHON_USEDEP}] |
56 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
57 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
58 |
+ dev-python/pyavm[${PYTHON_USEDEP}] |
59 |
+ dev-python/pillow[${PYTHON_USEDEP}]" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ dev-python/astropy-helpers[${PYTHON_USEDEP}]" |
62 |
+ |
63 |
+S="${WORKDIR}/${MYP}" |
64 |
+ |
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}/${PN}-1.0-mark-known-failures.patch" |
67 |
+ "${FILESDIR}/${PN}-1.0-fix-dependencies.patch" |
68 |
+) |
69 |
+ |
70 |
+python_prepare_all() { |
71 |
+ sed -i -e '/auto_use/s/True/False/' setup.cfg || die |
72 |
+ distutils-r1_python_prepare_all |
73 |
+} |
74 |
+ |
75 |
+python_compile() { |
76 |
+ distutils-r1_python_compile --use-system-libraries |
77 |
+} |
78 |
+ |
79 |
+python_test() { |
80 |
+ distutils_install_for_testing |
81 |
+ cd "${TEST_DIR}" || die |
82 |
+ virtx "${EPYTHON}" -c "import aplpy, sys;r = aplpy.test();sys.exit(r)" \ |
83 |
+ || die "tests fail with ${EPYTHON}" |
84 |
+} |
85 |
|
86 |
diff --git a/dev-python/aplpy/files/aplpy-1.0-fix-dependencies.patch b/dev-python/aplpy/files/aplpy-1.0-fix-dependencies.patch |
87 |
new file mode 100644 |
88 |
index 0000000..b5708c8 |
89 |
--- /dev/null |
90 |
+++ b/dev-python/aplpy/files/aplpy-1.0-fix-dependencies.patch |
91 |
@@ -0,0 +1,14 @@ |
92 |
+Author: Ole Streicher <olebole@××××××.org> |
93 |
+Description: Change requires to install_requires |
94 |
+--- a/setup.py |
95 |
++++ b/setup.py |
96 |
+@@ -94,8 +94,7 @@ |
97 |
+ version=VERSION, |
98 |
+ description=DESCRIPTION, |
99 |
+ scripts=scripts, |
100 |
+- requires=['astropy', 'numpy', 'matplotlib'], |
101 |
+- install_requires=['astropy'], |
102 |
++ install_requires=['astropy', 'numpy', 'matplotlib'], |
103 |
+ provides=[PACKAGENAME], |
104 |
+ author=AUTHOR, |
105 |
+ author_email=AUTHOR_EMAIL, |
106 |
|
107 |
diff --git a/dev-python/aplpy/files/aplpy-1.0-mark-known-failures.patch b/dev-python/aplpy/files/aplpy-1.0-mark-known-failures.patch |
108 |
new file mode 100644 |
109 |
index 0000000..cf1aa92 |
110 |
--- /dev/null |
111 |
+++ b/dev-python/aplpy/files/aplpy-1.0-mark-known-failures.patch |
112 |
@@ -0,0 +1,121 @@ |
113 |
+Author: Ole Streicher <olebole@××××××.org> |
114 |
+Description: Mark tests that are known to fail with matplotlib-1.5 |
115 |
+--- a/aplpy/tests/test_images.py |
116 |
++++ b/aplpy/tests/test_images.py |
117 |
+@@ -61,6 +61,8 @@ |
118 |
+ |
119 |
+ class TestBasic(BaseImageTests): |
120 |
+ |
121 |
++# see https://github.com/aplpy/aplpy/issues/278 |
122 |
++ @pytest.mark.xfail() |
123 |
+ # Test for showing grayscale |
124 |
+ def test_basic_image(self, generate): |
125 |
+ f = FITSFigure(self.filename_2) |
126 |
+@@ -68,6 +70,8 @@ |
127 |
+ self.generate_or_test(generate, f, 'basic_image.png') |
128 |
+ f.close() |
129 |
+ |
130 |
++# see https://github.com/aplpy/aplpy/issues/278 |
131 |
++ @pytest.mark.xfail() |
132 |
+ def test_ticks_labels_options(self, generate): |
133 |
+ f = FITSFigure(self.filename_2) |
134 |
+ f.ticks.set_color('black') |
135 |
+@@ -84,6 +88,8 @@ |
136 |
+ self.generate_or_test(generate, f, 'tick_labels_options.png') |
137 |
+ f.close() |
138 |
+ |
139 |
++# see https://github.com/aplpy/aplpy/issues/278 |
140 |
++ @pytest.mark.xfail() |
141 |
+ # Test for showing colorscale |
142 |
+ def test_show_colorbar_scalebar_beam(self, generate): |
143 |
+ f = FITSFigure(self.filename_1) |
144 |
+@@ -96,6 +102,8 @@ |
145 |
+ self.generate_or_test(generate, f, 'colorbar_scalebar_beam.png') |
146 |
+ f.close() |
147 |
+ |
148 |
++# see https://github.com/aplpy/aplpy/issues/278 |
149 |
++ @pytest.mark.xfail() |
150 |
+ # Test for overlaying shapes |
151 |
+ def test_overlay_shapes(self, generate): |
152 |
+ f = FITSFigure(self.filename_1) |
153 |
+@@ -112,6 +120,8 @@ |
154 |
+ self.generate_or_test(generate, f, 'overlay_shapes.png') |
155 |
+ f.close() |
156 |
+ |
157 |
++# see https://github.com/aplpy/aplpy/issues/278 |
158 |
++ @pytest.mark.xfail() |
159 |
+ # Test for grid |
160 |
+ def test_grid(self, generate): |
161 |
+ f = FITSFigure(self.filename_1) |
162 |
+@@ -125,6 +135,8 @@ |
163 |
+ self.generate_or_test(generate, f, 'grid.png') |
164 |
+ f.close() |
165 |
+ |
166 |
++# see https://github.com/aplpy/aplpy/issues/278 |
167 |
++ @pytest.mark.xfail() |
168 |
+ # Test recenter |
169 |
+ def test_recenter(self, generate): |
170 |
+ f = FITSFigure(self.filename_2) |
171 |
+@@ -135,6 +147,8 @@ |
172 |
+ self.generate_or_test(generate, f, 'recenter.png') |
173 |
+ f.close() |
174 |
+ |
175 |
++# see https://github.com/aplpy/aplpy/issues/278 |
176 |
++ @pytest.mark.xfail() |
177 |
+ # Test overlaying contours |
178 |
+ def test_contours(self, generate): |
179 |
+ data = np.arange(256).reshape((16, 16)) |
180 |
+@@ -144,6 +158,8 @@ |
181 |
+ self.generate_or_test(generate, f, 'contours.png') |
182 |
+ f.close() |
183 |
+ |
184 |
++# see https://github.com/aplpy/aplpy/issues/278 |
185 |
++ @pytest.mark.xfail() |
186 |
+ # Test cube slice |
187 |
+ def test_cube_slice(self, generate): |
188 |
+ f = FITSFigure(self.filename_3, dimensions=[2, 0], slices=[10]) |
189 |
+--- a/aplpy/tests/test_rgb.py |
190 |
++++ b/aplpy/tests/test_rgb.py |
191 |
+@@ -6,6 +6,7 @@ |
192 |
+ |
193 |
+ import numpy as np |
194 |
+ from astropy.io import fits |
195 |
++from astropy.tests.helper import pytest |
196 |
+ |
197 |
+ from .. import FITSFigure |
198 |
+ from ..rgb import make_rgb_image |
199 |
+@@ -17,6 +18,8 @@ |
200 |
+ |
201 |
+ class TestRGB(BaseImageTests): |
202 |
+ |
203 |
++# see https://github.com/aplpy/aplpy/issues/278 |
204 |
++ @pytest.mark.xfail() |
205 |
+ def test_rgb(self, generate, tmpdir): |
206 |
+ |
207 |
+ # Regression test to check that RGB recenter works properly |
208 |
+--- a/aplpy/tests/test_vectors.py |
209 |
++++ b/aplpy/tests/test_vectors.py |
210 |
+@@ -1,4 +1,5 @@ |
211 |
+ import numpy as np |
212 |
++from astropy.tests.helper import pytest |
213 |
+ |
214 |
+ from ..core import FITSFigure |
215 |
+ |
216 |
+@@ -15,6 +16,8 @@ |
217 |
+ |
218 |
+ class TestVectors(BaseImageTests): |
219 |
+ |
220 |
++# see https://github.com/aplpy/aplpy/issues/278 |
221 |
++ @pytest.mark.xfail() |
222 |
+ def test_default(self, generate): |
223 |
+ f = FITSFigure(IMAGE, figsize=(4,4)) |
224 |
+ f.show_grayscale() |
225 |
+@@ -22,6 +25,8 @@ |
226 |
+ self.generate_or_test(generate, f, 'vectors_default.png', tolerance=2.5) |
227 |
+ f.close() |
228 |
+ |
229 |
++# see https://github.com/aplpy/aplpy/issues/278 |
230 |
++ @pytest.mark.xfail() |
231 |
+ def test_step_scale(self, generate): |
232 |
+ f = FITSFigure(IMAGE, figsize=(4,4)) |
233 |
+ f.show_grayscale() |