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/wcsaxes/, dev-python/wcsaxes/files/
Date: Mon, 22 Feb 2016 20:52:09
Message-Id: 1456177700.51c36f98fa12a844637a5cee0dfa776999e93ff9.bicatali@gentoo
1 commit: 51c36f98fa12a844637a5cee0dfa776999e93ff9
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 22 21:48:03 2016 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 22 21:48:20 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51c36f98
7
8 dev-python/wcsaxes: version bump
9
10 Package-Manager: portage-2.2.27
11
12 dev-python/wcsaxes/Manifest | 1 +
13 .../files/wcsaxes-0.6-disable_mpltest.patch | 14 +++++++
14 .../wcsaxes-0.6-disable_numpy_warnings_test.patch | 16 ++++++++
15 dev-python/wcsaxes/wcsaxes-0.6.ebuild | 48 ++++++++++++++++++++++
16 4 files changed, 79 insertions(+)
17
18 diff --git a/dev-python/wcsaxes/Manifest b/dev-python/wcsaxes/Manifest
19 index df3441c..2ba5a58 100644
20 --- a/dev-python/wcsaxes/Manifest
21 +++ b/dev-python/wcsaxes/Manifest
22 @@ -1 +1,2 @@
23 DIST wcsaxes-0.3.tar.gz 773984 SHA256 012861678afa3c05700c4dd94a73bbd0534dae7ef8d9dc215fb01d6e5a60477f SHA512 597494609e2add782dcf84a6163b7093d1a467ffb6321d6d25064f9f87dcb0f7e5e076818b0707b9f10d0894a26ce240cda9598f035364832efe57d6ec51d76a WHIRLPOOL 1d05ce40460a2477c43107f33a68de08cdeb66ee395d3311ee74c9e7d354b675584f3e5d79ea91303a1808ab767df6f54bb5c65993009edfa67b416057c459fe
24 +DIST wcsaxes-0.6.tar.gz 617882 SHA256 ab8101ff742ebba79da3ff7bf777f24fcf8275886dbb5482f0a2eb3ab6756ee4 SHA512 6254fabc31b7c2e44dd86b0330592e01a688e36957e9d96348f7b4d305242e02e27d2363fd7ada37ad6dba292c66bbace9ea675f475388ed5545ac24cad1226c WHIRLPOOL e2f1d7b230fb7ba3982915638535258377fd450d47f3f191ba0a12aa1698050213353e315de2329e3f8ad359a76bfccdc4291e49eb6b0a4947d0f41305977100
25
26 diff --git a/dev-python/wcsaxes/files/wcsaxes-0.6-disable_mpltest.patch b/dev-python/wcsaxes/files/wcsaxes-0.6-disable_mpltest.patch
27 new file mode 100644
28 index 0000000..b62e15a
29 --- /dev/null
30 +++ b/dev-python/wcsaxes/files/wcsaxes-0.6-disable_mpltest.patch
31 @@ -0,0 +1,14 @@
32 +Author: Ole Streicher <olebole@××××××.org>
33 +Description: Remove the tests that require pytest-mpl
34 + Pytest_mpl is (still) not available in Debian.
35 + https://github.com/astrofrog/pytest-mpl
36 +--- a/setup.cfg
37 ++++ b/setup.cfg
38 +@@ -11,7 +11,6 @@
39 + minversion = 2.2
40 + norecursedirs = build docs/_build
41 + doctest_plus = enabled
42 +-addopts = --mpl --mpl-baseline-path=wcsaxes/tests/baseline_images
43 +
44 + [ah_bootstrap]
45 + auto_use = False
46
47 diff --git a/dev-python/wcsaxes/files/wcsaxes-0.6-disable_numpy_warnings_test.patch b/dev-python/wcsaxes/files/wcsaxes-0.6-disable_numpy_warnings_test.patch
48 new file mode 100644
49 index 0000000..ff6567c
50 --- /dev/null
51 +++ b/dev-python/wcsaxes/files/wcsaxes-0.6-disable_numpy_warnings_test.patch
52 @@ -0,0 +1,16 @@
53 +Author: Ole Streicher <olebole@××××××.org>
54 +Description: Disable test_no_numpy_warnings
55 + This test may fails when numpy decides that it wants to put some important
56 + message as a warning; even if nothing goes wrong. This happens f.e. for
57 + numpy-1.11.0~b2.
58 +--- a/wcsaxes/tests/test_misc.py
59 ++++ b/wcsaxes/tests/test_misc.py
60 +@@ -51,6 +51,8 @@
61 + COORDSYS= 'icrs '
62 + """, sep='\n')
63 +
64 ++# see https://github.com/astrofrog/wcsaxes/issues/187
65 ++@×××××××××××.xfail
66 + def test_no_numpy_warnings():
67 +
68 + # Make sure that no warnings are raised if some pixels are outside WCS
69
70 diff --git a/dev-python/wcsaxes/wcsaxes-0.6.ebuild b/dev-python/wcsaxes/wcsaxes-0.6.ebuild
71 new file mode 100644
72 index 0000000..67bda68
73 --- /dev/null
74 +++ b/dev-python/wcsaxes/wcsaxes-0.6.ebuild
75 @@ -0,0 +1,48 @@
76 +# Copyright 1999-2016 Gentoo Foundation
77 +# Distributed under the terms of the GNU General Public License v2
78 +# $Id$
79 +
80 +EAPI=6
81 +PYTHON_COMPAT=( python{2_7,3_4,3_5} )
82 +
83 +inherit distutils-r1 virtualx
84 +
85 +DESCRIPTION="Framework for plotting astronomical and geospatial data"
86 +HOMEPAGE="http://wcsaxes.readthedocs.org"
87 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
88 +
89 +LICENSE="BSD"
90 +SLOT="0"
91 +KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
92 +IUSE="doc test"
93 +
94 +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
95 + dev-python/astropy[${PYTHON_USEDEP}]
96 + dev-python/matplotlib[${PYTHON_USEDEP}]"
97 +DEPEND="${RDEPEND}
98 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
99 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] )
100 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
101 +
102 +PATCHES=(
103 + "${FILESDIR}/${PN}-0.6-disable_mpltest.patch"
104 + "${FILESDIR}/${PN}-0.6-disable_numpy_warnings_test.patch"
105 +)
106 +
107 +python_prepare_all() {
108 + sed -i -e '/auto_use/s/True/False/' setup.cfg || die
109 + distutils-r1_python_prepare_all
110 +}
111 +
112 +python_compile_all() {
113 + use doc && esetup.py build_sphinx -w
114 +}
115 +
116 +python_test() {
117 + virtx esetup.py test
118 +}
119 +
120 +python_install_all() {
121 + use doc && local HTML_DOCS=( docs/_build/html/ )
122 + distutils-r1_python_install_all
123 +}