1 |
commit: b6cca3cecaa6d7b39b0ff125ec8d7a6ff1c67bb5 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 30 23:22:50 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=b6cca3ce |
7 |
|
8 |
dev-python/astroplan: initial import |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
dev-python/astroplan/Manifest | 1 + |
13 |
dev-python/astroplan/astroplan-0.2.ebuild | 57 ++++++++++++++++++++++ |
14 |
.../files/astroplan-0.2-ephem-import.patch | 11 +++++ |
15 |
dev-python/astroplan/metadata.xml | 16 ++++++ |
16 |
4 files changed, 85 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/astroplan/Manifest b/dev-python/astroplan/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000..f1ef68b |
21 |
--- /dev/null |
22 |
+++ b/dev-python/astroplan/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST astroplan-0.2.tar.gz 264623 SHA256 427d6a890ea7bc4df0b8d0a4b607d060e6e2b230fa1224a648217790d8c1cba7 SHA512 ab98402d2b0daf64aea4a10934c8e33097b92d3b7de9a2346fa3e318e672c85966c050f560bb3fc4c247e2fdd4c94a4b158d6a0dff6af9c83d6411613c663bd9 WHIRLPOOL 6ab4ca9daf2daa8a6a16b06b7287473f149cf3261b2ef35a8f29a24f67e7c0d32edeef59c03fd1fe77f3050670a4c9488b4defe6e417f4925581ca300ca6a8f1 |
25 |
|
26 |
diff --git a/dev-python/astroplan/astroplan-0.2.ebuild b/dev-python/astroplan/astroplan-0.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..3f10cc3 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/astroplan/astroplan-0.2.ebuild |
31 |
@@ -0,0 +1,57 @@ |
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 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
38 |
+ |
39 |
+inherit distutils-r1 virtualx xdg-utils |
40 |
+ |
41 |
+DESCRIPTION="Observation planning package for astronomers" |
42 |
+HOMEPAGE="https://astroplan.readthedocs.org/" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
48 |
+IUSE="doc test" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/astropy[${PYTHON_USEDEP}] |
52 |
+ dev-python/pytz[${PYTHON_USEDEP}]" |
53 |
+DEPEND="${RDEPEND} |
54 |
+ dev-python/astropy-helpers[${PYTHON_USEDEP}] |
55 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
56 |
+ doc? ( |
57 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
58 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] ) |
59 |
+ test? ( dev-python/pytest-mpl[${PYTHON_USEDEP}] )" |
60 |
+ |
61 |
+PATCHES=( "${FILESDIR}"/${P}-ephem-import.patch ) |
62 |
+ |
63 |
+python_prepare_all() { |
64 |
+ # use system astropy-helpers instead of bundled one |
65 |
+ sed -i -e '/auto_use/s/True/False/' setup.cfg || die |
66 |
+ xdg_environment_reset |
67 |
+ distutils-r1_python_prepare_all |
68 |
+} |
69 |
+ |
70 |
+python_compile_all() { |
71 |
+ if use doc; then |
72 |
+ python_setup |
73 |
+ VARTEXFONTS="${T}"/fonts \ |
74 |
+ MPLCONFIGDIR="${BUILD_DIR}" \ |
75 |
+ PYTHONPATH="${BUILD_DIR}"/lib \ |
76 |
+ esetup.py build_sphinx --no-intersphinx |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ echo 'backend: Agg' > "${WORKDIR}"/matplotlibrc || die |
82 |
+ MATPLOTLIBRC="${WORKDIR}" virtx esetup.py test |
83 |
+} |
84 |
+ |
85 |
+python_install_all() { |
86 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
87 |
+ distutils-r1_python_install_all |
88 |
+} |
89 |
|
90 |
diff --git a/dev-python/astroplan/files/astroplan-0.2-ephem-import.patch b/dev-python/astroplan/files/astroplan-0.2-ephem-import.patch |
91 |
new file mode 100644 |
92 |
index 00000000..5932829 |
93 |
--- /dev/null |
94 |
+++ b/dev-python/astroplan/files/astroplan-0.2-ephem-import.patch |
95 |
@@ -0,0 +1,11 @@ |
96 |
+--- a/astroplan/conftest.py.orig 2016-11-30 23:17:49.057492656 +0000 |
97 |
++++ b/astroplan/conftest.py 2016-11-30 23:18:11.076451659 +0000 |
98 |
+@@ -38,7 +38,7 @@ |
99 |
+ try: |
100 |
+ PYTEST_HEADER_MODULES['Astropy'] = 'astropy' |
101 |
+ PYTEST_HEADER_MODULES['pytz'] = 'pytz' |
102 |
+- PYTEST_HEADER_MODULES['pyephem'] = 'pyephem' |
103 |
++ PYTEST_HEADER_MODULES['pyephem'] = 'ephem' |
104 |
+ PYTEST_HEADER_MODULES['matplotlib'] = 'matplotlib' |
105 |
+ PYTEST_HEADER_MODULES['nose'] = 'nose' |
106 |
+ PYTEST_HEADER_MODULES['pytest-mpl'] = 'pytest_mpl' |
107 |
|
108 |
diff --git a/dev-python/astroplan/metadata.xml b/dev-python/astroplan/metadata.xml |
109 |
new file mode 100644 |
110 |
index 00000000..b320e57 |
111 |
--- /dev/null |
112 |
+++ b/dev-python/astroplan/metadata.xml |
113 |
@@ -0,0 +1,16 @@ |
114 |
+<?xml version="1.0" encoding="UTF-8"?> |
115 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
116 |
+<pkgmetadata> |
117 |
+ <maintainer type="project"> |
118 |
+ <email>sci-astronomy@g.o</email> |
119 |
+ <name>Gentoo Astronomy Project</name> |
120 |
+ </maintainer> |
121 |
+ <longdescription lang="en"> |
122 |
+ Astroplan is an observation planning package for astronomers that can help |
123 |
+ you plan for everything but the clouds. |
124 |
+ </longdescription> |
125 |
+ <upstream> |
126 |
+ <remote-id type="pypi">astroplan</remote-id> |
127 |
+ <remote-id type="github">astropy/astroplan</remote-id> |
128 |
+ </upstream> |
129 |
+</pkgmetadata> |