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/gammapy/
Date: Wed, 30 Nov 2016 23:26:18
Message-Id: 1480548312.71b89c742fb897a0769337058790873552cfbd79.bicatali@gentoo
1 commit: 71b89c742fb897a0769337058790873552cfbd79
2 Author: S├ębastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 30 23:24:53 2016 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 30 23:25:12 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71b89c74
7
8 dev-python/gammapy: version bump
9
10 Package-Manager: portage-2.3.2
11
12 dev-python/gammapy/Manifest | 1 +
13 dev-python/gammapy/gammapy-0.5.ebuild | 74 +++++++++++++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/dev-python/gammapy/Manifest b/dev-python/gammapy/Manifest
17 index e4fdd24..ee6a0c6 100644
18 --- a/dev-python/gammapy/Manifest
19 +++ b/dev-python/gammapy/Manifest
20 @@ -1 +1,2 @@
21 DIST gammapy-0.4.tar.gz 933018 SHA256 370c98b1078a19e4ac9721b807ea62a32c1f9ac323fd738b3b1d43cceccae2a3 SHA512 d44e24faddbb7064c5f222e3cb59d9d4442a128dca84bb8e8e63ac4dffe6fc3be573e4252ef2a052e2e07b51efa1151639296aa8d7785437992aab0be4986155 WHIRLPOOL 73040d13ccc1a00f6a817b01ec0c0a0a103e480ae348588410bfb578383252381cfba81abe8d0578caa2ec02d7a07699c8b0c81079ae2d1b3b33d2619c123830
22 +DIST gammapy-0.5.tar.gz 1054718 SHA256 7d5711b2e74b887947bde74d982a50e19723f0e2bcba1dc93836855e48112042 SHA512 24132a4ce02660724cc92c5dc8ccc8d4f096ae5ab56a27cbfead55404358885fd7eaa7fc6c95b8842d42f8492fbfa4cc2c6af66e53736576ebf3674e1ecdc69d WHIRLPOOL 323b511379e8ffc41736ac282b583e05e408d9028269213fe33353cd109475c1355cd79909ff3015dc9d248ac7faf795f9bb62f1d159b0e04606560f80883ae4
23
24 diff --git a/dev-python/gammapy/gammapy-0.5.ebuild b/dev-python/gammapy/gammapy-0.5.ebuild
25 new file mode 100644
26 index 00000000..55255ea
27 --- /dev/null
28 +++ b/dev-python/gammapy/gammapy-0.5.ebuild
29 @@ -0,0 +1,74 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python{2_7,3_4,3_5} )
37 +inherit distutils-r1 eutils virtualx xdg-utils
38 +
39 +DESCRIPTION="Python package for gamma-ray astronomy"
40 +HOMEPAGE="https://gammapy.readthedocs.org/"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +IUSE="doc test"
47 +DOCS=( README.rst )
48 +
49 +RDEPEND="
50 + dev-python/astropy[${PYTHON_USEDEP}]
51 + dev-python/click[${PYTHON_USEDEP}]
52 + dev-python/numpy[${PYTHON_USEDEP}]
53 + dev-python/regions[${PYTHON_USEDEP}]"
54 +
55 +DEPEND="${RDEPEND}
56 + dev-python/astropy-helpers[${PYTHON_USEDEP}]
57 + dev-python/cython[${PYTHON_USEDEP}]
58 + dev-python/setuptools[${PYTHON_USEDEP}]
59 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
60 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
61 +
62 +python_prepare_all() {
63 + sed -i -e '/auto_use/s/True/False/' setup.cfg || die
64 + xdg_environment_reset
65 + distutils-r1_python_prepare_all
66 +}
67 +
68 +python_compile_all() {
69 + if use doc; then
70 + python_setup
71 + VARTEXFONTS="${T}"/fonts \
72 + MPLCONFIGDIR="${BUILD_DIR}" \
73 + PYTHONPATH="${BUILD_DIR}"/lib \
74 + esetup.py build_sphinx --no-intersphinx
75 + fi
76 +}
77 +
78 +python_test() {
79 + virtx esetup.py test
80 +}
81 +
82 +python_install_all() {
83 + use doc && local HTML_DOCS=( docs/_build/html/. )
84 + distutils-r1_python_install_all
85 +}
86 +
87 +pkg_postinst() {
88 + optfeature "${PN} full functionality" \
89 + dev-python/aplpy \
90 + dev-python/astroplan \
91 + dev-python/h5py \
92 + dev-python/iminuit \
93 + dev-python/matplotlib \
94 + dev-python/naima \
95 + dev-python/pandas \
96 + dev-python/photutils \
97 + dev-python/reproject \
98 + dev-python/wcsaxes \
99 + sci-libs/scipy \
100 + sci-libs/scikits_image \
101 + sci-libs/scikits_learn
102 + # not yet in portage: sherpa, gwcs, uncertainties
103 +}