1 |
commit: d984aa2f439bb5a4533c919f32ff06839bd161a3 |
2 |
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
3 |
AuthorDate: Sat Nov 28 17:54:09 2015 +0000 |
4 |
Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
5 |
CommitDate: Sat Nov 28 17:54:09 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d984aa2f |
7 |
|
8 |
dev-python/jupyter_core: Moved to tree; Drop old |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
dev-python/jupyter_core/ChangeLog | 5 ++ |
13 |
.../files/jupyter_core-4.0.4-add-test-files.patch | 50 -------------------- |
14 |
.../jupyter_core/jupyter_core-4.0.4-r1.ebuild | 39 ---------------- |
15 |
dev-python/jupyter_core/jupyter_core-4.0.6.ebuild | 54 ---------------------- |
16 |
4 files changed, 5 insertions(+), 143 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/jupyter_core/ChangeLog b/dev-python/jupyter_core/ChangeLog |
19 |
index c9aaae2..2fb28e0 100644 |
20 |
--- a/dev-python/jupyter_core/ChangeLog |
21 |
+++ b/dev-python/jupyter_core/ChangeLog |
22 |
@@ -2,6 +2,11 @@ |
23 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
24 |
# $Id$ |
25 |
|
26 |
+ 28 Nov 2015; Marius Brehler <marbre@××××××××××××××.de> -Manifest, |
27 |
+ -files/jupyter_core-4.0.4-add-test-files.patch, -jupyter_core-4.0.4-r1.ebuild, |
28 |
+ -jupyter_core-4.0.6.ebuild: |
29 |
+ dev-python/jupyter_core: Moved to tree; Drop old |
30 |
+ |
31 |
21 Sep 2015; Marius Brehler <marbre@××××××××××××××.de> |
32 |
jupyter_core-9999.ebuild: |
33 |
dev-python/jupyter_core: Add ~x86 to KEYWORDS |
34 |
|
35 |
diff --git a/dev-python/jupyter_core/files/jupyter_core-4.0.4-add-test-files.patch b/dev-python/jupyter_core/files/jupyter_core-4.0.4-add-test-files.patch |
36 |
deleted file mode 100644 |
37 |
index d7b448c..0000000 |
38 |
--- a/dev-python/jupyter_core/files/jupyter_core-4.0.4-add-test-files.patch |
39 |
+++ /dev/null |
40 |
@@ -1,50 +0,0 @@ |
41 |
-Patch to fix testing. Fixes |
42 |
-https://github.com/gentoo-science/sci/issues/479 |
43 |
- |
44 |
-Upstream issue: |
45 |
-https://github.com/jupyter/jupyter_core/issues/50 |
46 |
- |
47 |
-From 38b01f31f4793f4ccd427f0dee095bcb2a99b3c9 Mon Sep 17 00:00:00 2001 |
48 |
-From: Min RK <benjaminrk@×××××.com> |
49 |
-Date: Tue, 1 Sep 2015 09:28:17 +0200 |
50 |
-Subject: [PATCH] add test files to package data |
51 |
- |
52 |
---- |
53 |
- setup.py | 14 ++++++++++++++ |
54 |
- 1 file changed, 14 insertions(+) |
55 |
- |
56 |
-diff --git a/setup.py b/setup.py |
57 |
-index 0653dbd..f155663 100644 |
58 |
---- a/setup.py |
59 |
-+++ b/setup.py |
60 |
-@@ -31,6 +31,19 @@ version_ns = {} |
61 |
- with open(pjoin(here, 'jupyter_core', 'version.py')) as f: |
62 |
- exec(f.read(), {}, version_ns) |
63 |
- |
64 |
-+def find_package_data(): |
65 |
-+ """Find package data (testing support files)""" |
66 |
-+ package_data = {} |
67 |
-+ package_data['jupyter_core.tests'] = test_files = [] |
68 |
-+ test_dir = pjoin('jupyter_core', 'tests') |
69 |
-+ prefix_len = len(test_dir) + len(os.sep) |
70 |
-+ for parent, dirs, files in os.walk(test_dir): |
71 |
-+ if files: |
72 |
-+ test_files.append(pjoin(parent[prefix_len:], '*.*')) |
73 |
-+ |
74 |
-+ return package_data |
75 |
-+ |
76 |
-+package_data = find_package_data() |
77 |
- |
78 |
- setup_args = dict( |
79 |
- name = 'jupyter_core', |
80 |
-@@ -38,6 +51,7 @@ setup_args = dict( |
81 |
- packages = ['jupyter_core', |
82 |
- 'jupyter_core.utils', |
83 |
- 'jupyter_core.tests'], |
84 |
-+ package_data = package_data, |
85 |
- scripts = glob(pjoin('scripts', '*')), |
86 |
- description = "Jupyter core package. A base package on which Jupyter projects rely.", |
87 |
- long_description = """There is no reason to install this package on its own.""", |
88 |
--- |
89 |
-2.4.6 |
90 |
- |
91 |
|
92 |
diff --git a/dev-python/jupyter_core/jupyter_core-4.0.4-r1.ebuild b/dev-python/jupyter_core/jupyter_core-4.0.4-r1.ebuild |
93 |
deleted file mode 100644 |
94 |
index 3df560f..0000000 |
95 |
--- a/dev-python/jupyter_core/jupyter_core-4.0.4-r1.ebuild |
96 |
+++ /dev/null |
97 |
@@ -1,39 +0,0 @@ |
98 |
-# Copyright 1999-2015 Gentoo Foundation |
99 |
-# Distributed under the terms of the GNU General Public License v2 |
100 |
-# $Id$ |
101 |
- |
102 |
-EAPI=5 |
103 |
-PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) |
104 |
- |
105 |
-inherit distutils-r1 |
106 |
- |
107 |
-DESCRIPTION="Core common functionality of Jupyter projects" |
108 |
-HOMEPAGE="http://jupyter.org" |
109 |
-SRC_URI=" |
110 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
111 |
- https://raw.githubusercontent.com/gentoo-science/sci/master/patches/${P}-tests-dotipython.patch" |
112 |
-KEYWORDS="~amd64" |
113 |
- |
114 |
-LICENSE="BSD" |
115 |
-SLOT="0" |
116 |
-IUSE="test" |
117 |
- |
118 |
-RDEPEND=" |
119 |
- dev-python/traitlets[${PYTHON_USEDEP}] |
120 |
- " |
121 |
-DEPEND="${RDEPEND} |
122 |
- test? ( dev-python/pytest[${PYTHON_USEDEP}] |
123 |
- dev-python/pytest-cov[${PYTHON_USEDEP}] |
124 |
- dev-python/mock[${PYTHON_USEDEP}] ) |
125 |
- " |
126 |
- |
127 |
-PATCHES=( |
128 |
- "${FILESDIR}"/${P}-add-test-files.patch |
129 |
- "${DISTDIR}"/${P}-tests-dotipython.patch |
130 |
-) |
131 |
- |
132 |
-python_test() { |
133 |
- distutils_install_for_testing |
134 |
- cd "${TEST_DIR}"/lib || die |
135 |
- py.test jupyter_core || die |
136 |
-} |
137 |
|
138 |
diff --git a/dev-python/jupyter_core/jupyter_core-4.0.6.ebuild b/dev-python/jupyter_core/jupyter_core-4.0.6.ebuild |
139 |
deleted file mode 100644 |
140 |
index 97392a8..0000000 |
141 |
--- a/dev-python/jupyter_core/jupyter_core-4.0.6.ebuild |
142 |
+++ /dev/null |
143 |
@@ -1,54 +0,0 @@ |
144 |
-# Copyright 1999-2015 Gentoo Foundation |
145 |
-# Distributed under the terms of the GNU General Public License v2 |
146 |
-# $Id$ |
147 |
- |
148 |
-EAPI=5 |
149 |
- |
150 |
-PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) |
151 |
- |
152 |
-inherit distutils-r1 |
153 |
- |
154 |
-DESCRIPTION="Core common functionality of Jupyter projects" |
155 |
-HOMEPAGE="http://jupyter.org" |
156 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
157 |
-KEYWORDS="~amd64 ~x86" |
158 |
- |
159 |
-LICENSE="BSD" |
160 |
-SLOT="0" |
161 |
-IUSE="doc test" |
162 |
- |
163 |
-RDEPEND=" |
164 |
- dev-python/traitlets[${PYTHON_USEDEP}] |
165 |
- " |
166 |
-DEPEND="${RDEPEND} |
167 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
168 |
- test? ( |
169 |
- dev-python/pytest[${PYTHON_USEDEP}] |
170 |
- dev-python/pytest-cov[${PYTHON_USEDEP}] |
171 |
- $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) |
172 |
- ) |
173 |
- " |
174 |
- |
175 |
-python_prepare_all() { |
176 |
- # Prevent un-needed download during build |
177 |
- if use doc; then |
178 |
- sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die |
179 |
- fi |
180 |
- |
181 |
- distutils-r1_python_prepare_all |
182 |
-} |
183 |
- |
184 |
-python_compile_all() { |
185 |
- use doc && emake -C docs html |
186 |
-} |
187 |
- |
188 |
-python_test() { |
189 |
- distutils_install_for_testing |
190 |
- cd "${TEST_DIR}"/lib || die |
191 |
- py.test jupyter_core || die |
192 |
-} |
193 |
- |
194 |
-python_install_all() { |
195 |
- use doc && HTML_DOCS=( docs/_build/html/. ) |
196 |
- distutils-r1_python_install_all |
197 |
-} |