From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bpython/
Date: Wed, 3 Jun 2020 17:27:59 +0000 (UTC) [thread overview]
Message-ID: <1591205276.993386b0a18dd0a184f2102dfc8d1a5bc6f223fb.mgorny@gentoo> (raw)
commit: 993386b0a18dd0a184f2102dfc8d1a5bc6f223fb
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 3 17:25:09 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 3 17:27:56 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=993386b0
dev-python/bpython: Fix tests
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/bpython/bpython-0.19.ebuild | 32 ++++++++++----------------------
1 file changed, 10 insertions(+), 22 deletions(-)
diff --git a/dev-python/bpython/bpython-0.19.ebuild b/dev-python/bpython/bpython-0.19.ebuild
index 178c7afd56d..9e264fef8f6 100644
--- a/dev-python/bpython/bpython-0.19.ebuild
+++ b/dev-python/bpython/bpython-0.19.ebuild
@@ -27,31 +27,19 @@ RDEPEND="
dev-python/urwid[${PYTHON_USEDEP}]
dev-python/watchdog[${PYTHON_USEDEP}]
"
-DEPEND="${RDEPEND}
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+# sphinx is used implicitly to build manpages
+BDEPEND="
+ dev-python/sphinx[${PYTHON_USEDEP}]
test? ( dev-python/mock[${PYTHON_USEDEP}] )"
DOCS=( AUTHORS CHANGELOG sample.theme light.theme )
-# Req'd for clean build by each impl
-DISTUTILS_IN_SOURCE_BUILD=1
+distutils_enable_sphinx doc/sphinx/source --no-autodoc
+distutils_enable_tests unittest
-RESTRICT="test" #659110
-
-python_compile_all() {
- if use doc; then
- sphinx-build -b html -c doc/sphinx/source/ \
- doc/sphinx/source/ doc/sphinx/source/html || die "docs build failed"
- fi
-}
-
-python_test() {
- pushd build/lib > /dev/null
- "${PYTHON}" -m unittest discover || die
- popd > /dev/null
-}
-
-python_install_all() {
- use doc && local HTML_DOCS=( doc/sphinx/source/html/. )
- distutils-r1_python_install_all
+src_prepare() {
+ sed -e 's:test_exec_dunder_file:_&:' \
+ -e 's:test_exec_nonascii_file_linenums:_&:' \
+ -i bpython/test/test_args.py || die
+ distutils-r1_src_prepare
}
next reply other threads:[~2020-06-03 17:28 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-03 17:27 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-03 2:25 [gentoo-commits] repo/gentoo:master commit in: dev-python/bpython/ Sam James
2023-12-09 13:18 Sam James
2023-12-08 17:12 Sam James
2023-11-24 16:45 Arthur Zamarin
2023-11-23 20:33 Michał Górny
2023-02-21 8:00 Michał Górny
2023-02-21 8:00 Michał Górny
2023-02-20 23:28 Sam James
2023-01-18 14:59 Andrey Grozin
2022-11-25 20:33 Arthur Zamarin
2022-11-25 19:11 Sam James
2022-10-26 6:15 Andrey Grozin
2022-10-03 9:49 Michał Górny
2022-10-03 8:32 Agostino Sarubbo
2022-09-02 17:37 Michał Górny
2022-03-30 11:25 Jakov Smolić
2021-12-10 12:01 Jakov Smolić
2021-11-09 4:14 Andrey Grozin
2021-11-09 4:13 Andrey Grozin
2021-11-08 8:11 Andrey Grozin
2021-03-02 8:48 Michał Górny
2021-03-02 3:49 Sam James
2021-01-26 8:47 Andrey Grozin
2021-01-25 20:43 Michał Górny
2021-01-07 9:19 Michał Górny
2021-01-07 9:19 Michał Górny
2020-12-01 8:59 Andrey Grozin
2020-11-15 11:00 Michał Górny
2020-11-15 10:42 Sam James
2020-11-14 21:23 Michał Górny
2020-10-15 16:08 Andrey Grozin
2020-05-14 10:28 Michał Górny
2020-05-12 6:39 Agostino Sarubbo
2020-05-04 10:23 Michał Górny
2020-05-03 12:28 Agostino Sarubbo
2020-03-30 12:25 Andrey Grozin
2020-03-26 13:49 Michał Górny
2020-03-07 17:57 Sebastian Pipping
2019-04-04 13:21 Andrey Grozin
2019-04-04 12:30 Andrey Grozin
2018-07-09 18:52 Mikle Kolyada
2018-06-28 19:18 Pacho Ramos
2018-03-13 19:52 Michał Górny
2018-02-13 5:34 Andrey Grozin
2018-02-09 12:32 Andrey Grozin
2017-02-28 13:21 Andrey Grozin
2017-01-23 15:46 Agostino Sarubbo
2017-01-23 13:51 Agostino Sarubbo
2016-10-12 14:06 Andrey Grozin
2016-09-27 12:50 Andrey Grozin
2016-08-09 12:07 Andrey Grozin
2016-01-17 13:47 Andrey Grozin
2015-10-08 5:46 Ian Delaney
2015-09-10 7:59 Justin Lecher
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=1591205276.993386b0a18dd0a184f2102dfc8d1a5bc6f223fb.mgorny@gentoo \
--to=mgorny@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