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/regions/
Date: Wed, 30 Nov 2016 23:26:19
Message-Id: 1480548311.6b3419c04172d20f3730242a957bdddbbd082f1b.bicatali@gentoo
1 commit: 6b3419c04172d20f3730242a957bdddbbd082f1b
2 Author: S├ębastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 30 23:23:39 2016 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 30 23:25:11 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b3419c0
7
8 dev-python/regions: initial import
9
10 Package-Manager: portage-2.3.2
11
12 dev-python/regions/Manifest | 1 +
13 dev-python/regions/metadata.xml | 14 +++++++++
14 dev-python/regions/regions-0.1.ebuild | 58 +++++++++++++++++++++++++++++++++++
15 3 files changed, 73 insertions(+)
16
17 diff --git a/dev-python/regions/Manifest b/dev-python/regions/Manifest
18 new file mode 100644
19 index 00000000..17762f6
20 --- /dev/null
21 +++ b/dev-python/regions/Manifest
22 @@ -0,0 +1 @@
23 +DIST regions-0.1.tar.gz 230345 SHA256 1a2d25abecb95b953b168d335d3b3dab30b9018937333a6d4d70c97650ccad2e SHA512 9d313c4fa871537881ba3c7185656460012adc8d7725b3070aeb81459eb6f1fc02f7279a7ff78ef3faeb61e95bce7dd409d5a5800848483f9eae1c5262e47593 WHIRLPOOL 678671681fdef5d9adc947981b304eb071d4313b2768259727288ba1f667306ba7bf22dce64fec6365eb5698035211192c041ab6c9c45b7691d8ad3b4011ff3c
24
25 diff --git a/dev-python/regions/metadata.xml b/dev-python/regions/metadata.xml
26 new file mode 100644
27 index 00000000..63ff260
28 --- /dev/null
29 +++ b/dev-python/regions/metadata.xml
30 @@ -0,0 +1,14 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 +<maintainer type="project">
35 + <email>sci-astronomy@g.o</email>
36 + <name>Gentoo Astronomy Project</name>
37 +</maintainer>
38 +<longdescription lang="en">
39 + The goal is to merge the functionality from pyregion and photutils apertures and then after some time propose this package for inclusion in the Astropy core.
40 +</longdescription>
41 +<upstream>
42 + <remote-id type="pypi">regions</remote-id>
43 +</upstream>
44 +</pkgmetadata>
45
46 diff --git a/dev-python/regions/regions-0.1.ebuild b/dev-python/regions/regions-0.1.ebuild
47 new file mode 100644
48 index 00000000..cad48b6
49 --- /dev/null
50 +++ b/dev-python/regions/regions-0.1.ebuild
51 @@ -0,0 +1,58 @@
52 +# Copyright 1999-2016 Gentoo Foundation
53 +# Distributed under the terms of the GNU General Public License v2
54 +# $Id$
55 +
56 +EAPI=6
57 +
58 +PYTHON_COMPAT=( python{2_7,3_4,3_5} )
59 +inherit distutils-r1 virtualx xdg-utils
60 +
61 +DESCRIPTION="Astropy affiliated package for region handling"
62 +HOMEPAGE="http://astropy-regions.readthedocs.org/"
63 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
64 +
65 +SLOT="0"
66 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
67 +LICENSE="BSD"
68 +
69 +IUSE="doc test"
70 +RDEPEND="dev-python/astropy[${PYTHON_USEDEP}]"
71 +DEPEND="${RDEPEND}
72 + dev-python/setuptools[${PYTHON_USEDEP}]
73 + dev-python/astropy-helpers[${PYTHON_USEDEP}]
74 + doc? (
75 + dev-python/sphinx[${PYTHON_USEDEP}]
76 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
77 + dev-python/wcsaxes[${PYTHON_USEDEP}] )
78 + test? (
79 + dev-python/pytest-mpl[${PYTHON_USEDEP}]
80 + dev-python/wcsaxes[${PYTHON_USEDEP}]
81 + sci-libs/scipy[${PYTHON_USEDEP}] )"
82 +
83 +python_prepare_all() {
84 + # use astropy-helpers from system
85 + sed -i -e '/auto_use/s/True/False/' setup.cfg || die
86 + xdg_environment_reset
87 + distutils-r1_python_prepare_all
88 +}
89 +
90 +python_compile_all() {
91 + if use doc; then
92 + python_setup
93 + VARTEXFONTS="${T}"/fonts \
94 + MPLCONFIGDIR="${BUILD_DIR}" \
95 + PYTHONPATH="${BUILD_DIR}"/lib \
96 + esetup.py build_sphinx --no-intersphinx
97 + fi
98 +}
99 +
100 +python_test() {
101 + echo 'backend: Agg' > ${WORKDIR}/matplotlibrc || die
102 + export MATPLOTLIBRC=${WORKDIR}
103 + virtx esetup.py test
104 +}
105 +
106 +python_install_all() {
107 + use doc && local HTML_DOCS=( docs/_build/html/. )
108 + distutils-r1_python_install_all
109 +}