1 |
commit: 0b3ba056ced20ead3a07563291e0b0dc227787ae |
2 |
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
3 |
AuthorDate: Tue Jan 3 10:33:05 2017 +0000 |
4 |
Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
5 |
CommitDate: Tue Jan 3 10:33:05 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=0b3ba056 |
7 |
|
8 |
dev-python/nbdime: Update live ebuild according to 0.1.0 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-python/nbdime/metadata.xml | 12 +++++++++++- |
13 |
dev-python/nbdime/nbdime-9999.ebuild | 28 ++++++++++++++++++++++------ |
14 |
2 files changed, 33 insertions(+), 7 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/nbdime/metadata.xml b/dev-python/nbdime/metadata.xml |
17 |
index 979d02b..b2a229d 100644 |
18 |
--- a/dev-python/nbdime/metadata.xml |
19 |
+++ b/dev-python/nbdime/metadata.xml |
20 |
@@ -1,14 +1,24 @@ |
21 |
<?xml version="1.0" encoding="UTF-8"?> |
22 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
23 |
<pkgmetadata> |
24 |
+ <maintainer type="person"> |
25 |
+ <email>marbre@××××××××××××××.de</email> |
26 |
+ <name>Marius Brehler</name> |
27 |
+ </maintainer> |
28 |
<maintainer type="project"> |
29 |
<email>sci@g.o</email> |
30 |
<name>Gentoo Science Project</name> |
31 |
</maintainer> |
32 |
<longdescription> |
33 |
- nbdime contains tools for diffing and merging of Jupyter Notebooks. |
34 |
+ nbdime provides tools for diffing and merging of Jupyter Notebooks. |
35 |
</longdescription> |
36 |
<upstream> |
37 |
<remote-id type="github">jupyter/nbdime</remote-id> |
38 |
+ <remote-id type="pypi">nbdime</remote-id> |
39 |
</upstream> |
40 |
+ <use> |
41 |
+ <flag name="webtools"> |
42 |
+ Install web-based diff and merge tools. |
43 |
+ </flag> |
44 |
+</use> |
45 |
</pkgmetadata> |
46 |
|
47 |
diff --git a/dev-python/nbdime/nbdime-9999.ebuild b/dev-python/nbdime/nbdime-9999.ebuild |
48 |
index 8be6e65..96bf532 100644 |
49 |
--- a/dev-python/nbdime/nbdime-9999.ebuild |
50 |
+++ b/dev-python/nbdime/nbdime-9999.ebuild |
51 |
@@ -1,4 +1,4 @@ |
52 |
-# Copyright 1999-2016 Gentoo Foundation |
53 |
+# Copyright 1999-2017 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Id$ |
56 |
|
57 |
@@ -14,25 +14,41 @@ EGIT_REPO_URI="https://github.com/jupyter/${PN}.git" |
58 |
|
59 |
LICENSE="BSD" |
60 |
SLOT="0" |
61 |
-IUSE="test" |
62 |
+IUSE="test webtools" |
63 |
|
64 |
RDEPEND=" |
65 |
dev-python/nbformat[${PYTHON_USEDEP}] |
66 |
dev-python/six[${PYTHON_USEDEP}] |
67 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
68 |
+ dev-python/requests[${PYTHON_USEDEP}] |
69 |
+ www-servers/tornado[${PYTHON_USEDEP}] |
70 |
+ webtools? ( net-libs/nodejs[npm] ) |
71 |
" |
72 |
DEPEND="${RDEPEND} |
73 |
test? ( |
74 |
dev-python/pytest[${PYTHON_USEDEP}] |
75 |
- dev-python/testpath[${PYTHON_USEDEP}] |
76 |
+ dev-python/pytest-cov[${PYTHON_USEDEP}] |
77 |
+ dev-python/pytest-timeout[${PYTHON_USEDEP}] |
78 |
+ dev-python/jsonschema[${PYTHON_USEDEP}] |
79 |
dev-python/mock[${PYTHON_USEDEP}] |
80 |
+ dev-python/requests[${PYTHON_USEDEP}] |
81 |
) |
82 |
" |
83 |
-# Some additional packages (e.g. commonmark, recommonmark) are required to build the docs |
84 |
+# The package recommonmark is required to build the docs, not in portage yet. |
85 |
# Furthermore, backports.shutil_which is required for python2_7. |
86 |
|
87 |
+python_configure_all() { |
88 |
+ if ! use webtools; then |
89 |
+ mydistutilsargs=( --skip-npm ) |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
python_test() { |
94 |
+ # user.email and user.name are not configured in the sandbox. |
95 |
+ git config --global user.email "you@×××××××.com" || die |
96 |
+ git config --global user.name "Your Name" || die |
97 |
+ |
98 |
distutils_install_for_testing |
99 |
- cd "${TEST_DIR}"/lib || die |
100 |
- cp -r "${S}/${PN}"/tests "${TEST_DIR}"/lib/ || die |
101 |
+ |
102 |
py.test -l || die |
103 |
} |