1 |
commit: d1d0ee931d3f5c836b103555edd0aa848f34d5f5 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 20 22:51:07 2020 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 20 22:52:16 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1d0ee93 |
7 |
|
8 |
dev-python/doit: 0.32.0 + EAPI 7 + enable tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/693278 |
11 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
13 |
|
14 |
dev-python/doit/Manifest | 1 + |
15 |
dev-python/doit/doit-0.32.0.ebuild | 70 ++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 71 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/doit/Manifest b/dev-python/doit/Manifest |
19 |
index d8214a7a17a..1889fcc12d2 100644 |
20 |
--- a/dev-python/doit/Manifest |
21 |
+++ b/dev-python/doit/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST doit-0.29.0.tar.gz 222341 BLAKE2B 8489568fe9236af04f87debfb4889840aa162d17d20f82ac0a9a22d1034b4c58976cd6829486a15b941ac1f50e7137c052fe332657c2b3f529fe2345bbcba2fc SHA512 a686457df31b414d0c3797789e0ae1ae5cdfa3674025236419cb59b254f342cd2db07911ef18b2cb576d8d817b44035b9372265b34b786b2779fb7074b394de1 |
24 |
+DIST doit-0.32.0.tar.gz 1437939 BLAKE2B 39134341582cd964630a1667c78b0e44eeb32406a06e3567123b820fb61cbee0f6a7c8879a84eed750860a365aa4c792e461bb1534c66e4f20a6289522dc8183 SHA512 d5c28a0c6a38648aeef58027b2246fc26360e133e91933f2244bd484f70d6d26110acbfec19c74d53c796e0bbae07a4bf6d76542d45e8b1a6b503c186bf2a68a |
25 |
|
26 |
diff --git a/dev-python/doit/doit-0.32.0.ebuild b/dev-python/doit/doit-0.32.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..66a6cbdfb34 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/doit/doit-0.32.0.ebuild |
31 |
@@ -0,0 +1,70 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+PYTHON_COMPAT=( python3_6 ) |
37 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+ |
39 |
+inherit eutils distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Automation tool" |
42 |
+HOMEPAGE="http://python-doit.sourceforge.net/ https://pypi.org/project/doit/" |
43 |
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="doc test" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/cloudpickle[${PYTHON_USEDEP}] |
52 |
+ dev-python/pyinotify[${PYTHON_USEDEP}] |
53 |
+ dev-python/six[${PYTHON_USEDEP}] |
54 |
+ $(python_gen_cond_dep 'dev-python/configparser[${PYTHON_USEDEP}]' python2_7 pypy) |
55 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
56 |
+" |
57 |
+DEPEND="test? ( ${RDEPEND} |
58 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
59 |
+ dev-python/mock[${PYTHON_USEDEP}] |
60 |
+ dev-python/pyflakes[${PYTHON_USEDEP}] |
61 |
+ dev-python/coverage[${PYTHON_USEDEP}] ) |
62 |
+" |
63 |
+PDEPEND=">=dev-python/doit-py-0.3.0[${PYTHON_USEDEP}]" |
64 |
+ |
65 |
+# Required for test phase |
66 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
67 |
+ |
68 |
+python_prepare_all() { |
69 |
+ # Disable test failing due to impact on PATH run in a sandbox |
70 |
+ sed -e s':test_target:_&:' -i tests/test_cmd_strace.py || die |
71 |
+ |
72 |
+ # Test requires connection to an absent database |
73 |
+ sed -e s':testIgnoreAll:_&:' -i tests/test_cmd_ignore.py || die |
74 |
+ |
75 |
+ distutils-r1_python_prepare_all |
76 |
+} |
77 |
+ |
78 |
+python_compile_all() { |
79 |
+ use doc && emake -C doc html |
80 |
+} |
81 |
+ |
82 |
+python_test() { |
83 |
+ local -x TMPDIR="${T}" |
84 |
+ # disable tests where pypy's treatment of some tests' use of a db is incompatible |
85 |
+ |
86 |
+ if [[ "${EPYTHON}" == pypy ]]; then |
87 |
+ sed -e 's:test_remove_all:_&:' -i tests/test_dependency.py || die |
88 |
+ sed -e 's:testForgetAll:_&:' -i tests/test_cmd_forget.py || die |
89 |
+ sed -e 's:test_not_picklable:_&:' \ |
90 |
+ -e 's:test_task_not_picklabe_multiprocess:_&:' \ |
91 |
+ -i tests/test_runner.py || die |
92 |
+ fi |
93 |
+ |
94 |
+ py.test || die "Tests failed under ${EPYTHON}" |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ use doc && HTML_DOCS=( doc/_build/html/. ) |
99 |
+ |
100 |
+ distutils-r1_src_install |
101 |
+} |