Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/testpath/
Date: Wed, 23 Sep 2015 10:20:11
Message-Id: 1442990684.78cbe3b4245289371362ac9bb909e491ad27ca75.jlec@gentoo
1 commit: 78cbe3b4245289371362ac9bb909e491ad27ca75
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Wed Sep 23 06:44:44 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 23 06:44:44 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=78cbe3b4
7
8 dev-python/testpath: Replace symlink
9
10 dev-python/testpath/testpath-0.2.ebuild | 55 +++++++++++++++++++++++++++++++-
11 dev-python/testpath/testpath-9999.ebuild | 13 ++------
12 2 files changed, 57 insertions(+), 11 deletions(-)
13
14 diff --git a/dev-python/testpath/testpath-0.2.ebuild b/dev-python/testpath/testpath-0.2.ebuild
15 deleted file mode 120000
16 index 07bd68e..0000000
17 --- a/dev-python/testpath/testpath-0.2.ebuild
18 +++ /dev/null
19 @@ -1 +0,0 @@
20 -testpath-9999.ebuild
21 \ No newline at end of file
22
23 diff --git a/dev-python/testpath/testpath-0.2.ebuild b/dev-python/testpath/testpath-0.2.ebuild
24 new file mode 100644
25 index 0000000..df61d95
26 --- /dev/null
27 +++ b/dev-python/testpath/testpath-0.2.ebuild
28 @@ -0,0 +1,54 @@
29 +# Copyright 1999-2015 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +# $Id$
32 +
33 +EAPI=5
34 +PYTHON_COMPAT=( python2_7 python{3_3,3_4} )
35 +
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Test utilities for code working with files and commands"
39 +HOMEPAGE="http://jupyter.org"
40 +SRC_URI="https://github.com/jupyter/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +KEYWORDS="~amd64 ~x86"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +IUSE="doc test"
46 +
47 +DEPEND="
48 + test? (
49 + dev-python/pathlib[${PYTHON_USEDEP}]
50 + dev-python/pytest[${PYTHON_USEDEP}]
51 + )
52 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
53 + "
54 +
55 +PATCHES=(
56 + "${FILESDIR}/${P}"-setup.py.patch
57 + )
58 +
59 +python_prepare_all() {
60 + # Prevent un-needed download during build
61 + if use doc; then
62 + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i doc/conf.py || die
63 + fi
64 +
65 +distutils-r1_python_prepare_all
66 +}
67 +
68 +python_compile_all() {
69 + use doc && emake -C doc html
70 +}
71 +
72 +python_install_all() {
73 + use doc && HTML_DOCS=( doc/_build/html/. )
74 + distutils-r1_python_install_all
75 + }
76 +
77 +python_test() {
78 + distutils_install_for_testing
79 + cd "${TEST_DIR}"/lib || die
80 + cp -r "${S}"/tests "${TEST_DIR}"/lib/ || die
81 + py.test || die
82 +}
83
84 diff --git a/dev-python/testpath/testpath-9999.ebuild b/dev-python/testpath/testpath-9999.ebuild
85 index 395bfd7..61ceb0c 100644
86 --- a/dev-python/testpath/testpath-9999.ebuild
87 +++ b/dev-python/testpath/testpath-9999.ebuild
88 @@ -5,18 +5,11 @@
89 EAPI=5
90 PYTHON_COMPAT=( python2_7 python{3_3,3_4} )
91
92 -inherit distutils-r1
93 +inherit distutils-r1 git-r3
94
95 DESCRIPTION="Test utilities for code working with files and commands"
96 HOMEPAGE="http://jupyter.org"
97 -
98 -if [ ${PV} == "9999" ] ; then
99 - inherit git-r3
100 - EGIT_REPO_URI="https://github.com/jupyter/${PN}.git git://github.com/jupyter/${PN}.git"
101 -else
102 - SRC_URI="https://github.com/jupyter/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
103 - KEYWORDS="~amd64 ~x86"
104 -fi
105 +EGIT_REPO_URI="https://github.com/jupyter/${PN}.git git://github.com/jupyter/${PN}.git"
106
107 LICENSE="BSD"
108 SLOT="0"
109 @@ -31,7 +24,7 @@ DEPEND="
110 "
111
112 PATCHES=(
113 - "${FILESDIR}/${P}"-setup.py.patch
114 + "${FILESDIR}/${PN}"-0.2-setup.py.patch
115 )
116
117 python_prepare_all() {