From: "Sebastian Pipping" <sping@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/doit/
Date: Mon, 20 Jan 2020 22:52:40 +0000 (UTC) [thread overview]
Message-ID: <1579560736.d1d0ee931d3f5c836b103555edd0aa848f34d5f5.sping@gentoo> (raw)
commit: d1d0ee931d3f5c836b103555edd0aa848f34d5f5
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 20 22:51:07 2020 +0000
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Mon Jan 20 22:52:16 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1d0ee93
dev-python/doit: 0.32.0 + EAPI 7 + enable tests
Closes: https://bugs.gentoo.org/693278
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
Package-Manager: Portage-2.3.84, Repoman-2.3.20
dev-python/doit/Manifest | 1 +
dev-python/doit/doit-0.32.0.ebuild | 70 ++++++++++++++++++++++++++++++++++++++
2 files changed, 71 insertions(+)
diff --git a/dev-python/doit/Manifest b/dev-python/doit/Manifest
index d8214a7a17a..1889fcc12d2 100644
--- a/dev-python/doit/Manifest
+++ b/dev-python/doit/Manifest
@@ -1 +1,2 @@
DIST doit-0.29.0.tar.gz 222341 BLAKE2B 8489568fe9236af04f87debfb4889840aa162d17d20f82ac0a9a22d1034b4c58976cd6829486a15b941ac1f50e7137c052fe332657c2b3f529fe2345bbcba2fc SHA512 a686457df31b414d0c3797789e0ae1ae5cdfa3674025236419cb59b254f342cd2db07911ef18b2cb576d8d817b44035b9372265b34b786b2779fb7074b394de1
+DIST doit-0.32.0.tar.gz 1437939 BLAKE2B 39134341582cd964630a1667c78b0e44eeb32406a06e3567123b820fb61cbee0f6a7c8879a84eed750860a365aa4c792e461bb1534c66e4f20a6289522dc8183 SHA512 d5c28a0c6a38648aeef58027b2246fc26360e133e91933f2244bd484f70d6d26110acbfec19c74d53c796e0bbae07a4bf6d76542d45e8b1a6b503c186bf2a68a
diff --git a/dev-python/doit/doit-0.32.0.ebuild b/dev-python/doit/doit-0.32.0.ebuild
new file mode 100644
index 00000000000..66a6cbdfb34
--- /dev/null
+++ b/dev-python/doit/doit-0.32.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_6 )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+
+inherit eutils distutils-r1
+
+DESCRIPTION="Automation tool"
+HOMEPAGE="http://python-doit.sourceforge.net/ https://pypi.org/project/doit/"
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND="
+ dev-python/cloudpickle[${PYTHON_USEDEP}]
+ dev-python/pyinotify[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/configparser[${PYTHON_USEDEP}]' python2_7 pypy)
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+"
+DEPEND="test? ( ${RDEPEND}
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pyflakes[${PYTHON_USEDEP}]
+ dev-python/coverage[${PYTHON_USEDEP}] )
+"
+PDEPEND=">=dev-python/doit-py-0.3.0[${PYTHON_USEDEP}]"
+
+# Required for test phase
+DISTUTILS_IN_SOURCE_BUILD=1
+
+python_prepare_all() {
+ # Disable test failing due to impact on PATH run in a sandbox
+ sed -e s':test_target:_&:' -i tests/test_cmd_strace.py || die
+
+ # Test requires connection to an absent database
+ sed -e s':testIgnoreAll:_&:' -i tests/test_cmd_ignore.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ use doc && emake -C doc html
+}
+
+python_test() {
+ local -x TMPDIR="${T}"
+ # disable tests where pypy's treatment of some tests' use of a db is incompatible
+
+ if [[ "${EPYTHON}" == pypy ]]; then
+ sed -e 's:test_remove_all:_&:' -i tests/test_dependency.py || die
+ sed -e 's:testForgetAll:_&:' -i tests/test_cmd_forget.py || die
+ sed -e 's:test_not_picklable:_&:' \
+ -e 's:test_task_not_picklabe_multiprocess:_&:' \
+ -i tests/test_runner.py || die
+ fi
+
+ py.test || die "Tests failed under ${EPYTHON}"
+}
+
+src_install() {
+ use doc && HTML_DOCS=( doc/_build/html/. )
+
+ distutils-r1_src_install
+}
next reply other threads:[~2020-01-20 22:52 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-20 22:52 Sebastian Pipping [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-07-27 9:53 [gentoo-commits] repo/gentoo:master commit in: dev-python/doit/ Michał Górny
2024-07-27 8:10 Arthur Zamarin
2024-07-11 19:23 Michał Górny
2024-06-26 9:05 Sam James
2023-11-24 17:05 Arthur Zamarin
2023-11-23 20:33 Michał Górny
2023-11-08 15:39 Michał Górny
2023-11-08 15:39 Michał Górny
2023-04-21 16:14 David Seifert
2023-03-29 20:08 Sam James
2023-03-29 20:08 Sam James
2023-02-26 4:01 Michał Górny
2023-02-26 4:01 Michał Górny
2023-02-26 4:01 Michał Górny
2022-07-12 17:19 Arthur Zamarin
2022-05-15 10:57 Michał Górny
2022-05-15 8:19 Jakov Smolić
2022-04-23 7:12 Arthur Zamarin
2022-04-07 17:28 Arthur Zamarin
2022-03-28 9:17 Jakov Smolić
2022-03-21 8:54 Michał Górny
2022-03-21 7:47 Agostino Sarubbo
2022-02-18 10:59 Arthur Zamarin
2022-02-13 9:42 Michał Górny
2022-02-13 8:41 Jakov Smolić
2022-01-13 7:16 Arthur Zamarin
2021-09-09 16:00 Arthur Zamarin
2021-03-02 8:40 Sam James
2020-10-25 23:47 Sam James
2020-10-25 23:42 Thomas Deutschmann
2020-10-21 21:45 Michał Górny
2020-09-17 20:27 Sam James
2020-09-17 20:22 Sam James
2020-09-17 20:22 Sam James
2020-08-25 12:53 Agostino Sarubbo
2020-07-09 8:13 Joonas Niilola
2020-07-09 8:13 Joonas Niilola
2020-07-09 8:13 Joonas Niilola
2020-07-06 19:15 Michał Górny
2020-05-16 12:59 Joonas Niilola
2020-02-02 15:34 Michał Górny
2020-01-28 8:24 Joonas Niilola
2017-09-24 11:00 Michael Palimaka
2017-06-20 12:37 Pacho Ramos
2017-05-28 10:22 Pacho Ramos
2017-05-28 10:22 Pacho Ramos
2017-05-28 10:17 Pacho Ramos
2017-05-28 10:17 Pacho Ramos
2016-02-18 17:46 Patrick Lauer
2015-12-09 19:07 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1579560736.d1d0ee931d3f5c836b103555edd0aa848f34d5f5.sping@gentoo \
--to=sping@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox