From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/
Date: Fri, 22 Nov 2019 08:40:49 +0000 (UTC) [thread overview]
Message-ID: <1574412045.ce3d11587a8d4ad3b6da7d9c2f2ecb96d791508e.mgorny@gentoo> (raw)
commit: ce3d11587a8d4ad3b6da7d9c2f2ecb96d791508e
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 22 08:33:32 2019 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Nov 22 08:40:45 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce3d1158
dev-python/gmpy: Enable py3.8, fix tests
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/gmpy/gmpy-2.0.8.ebuild | 24 ++++++++++++++++--------
1 file changed, 16 insertions(+), 8 deletions(-)
diff --git a/dev-python/gmpy/gmpy-2.0.8.ebuild b/dev-python/gmpy/gmpy-2.0.8.ebuild
index 2538dfd438f..f4e4508c524 100644
--- a/dev-python/gmpy/gmpy-2.0.8.ebuild
+++ b/dev-python/gmpy/gmpy-2.0.8.ebuild
@@ -3,7 +3,7 @@
EAPI=5
-PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
+PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} )
inherit distutils-r1
@@ -13,6 +13,7 @@ MY_P="${MY_PN}-${PV}"
DESCRIPTION="Python bindings for GMP, MPC, MPFR and MPIR libraries"
HOMEPAGE="https://github.com/aleaxit/gmpy"
SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.zip"
+S="${WORKDIR}"/${MY_P}
LICENSE="LGPL-2.1"
SLOT="2"
@@ -26,24 +27,31 @@ RDEPEND="
mpir? ( sci-libs/mpir:= )"
DEPEND="${RDEPEND}
app-arch/unzip
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
-
-S="${WORKDIR}"/${MY_P}
+ doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )"
PATCHES=(
"${FILESDIR}"/${P}-fix-mpir-types.patch
+ "${FILESDIR}"/gmpy-2.0.8-test-exit-status.patch
)
+python_check_deps() {
+ use doc || return 0
+ has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+}
+
python_prepare_all() {
+ distutils-r1_python_prepare_all
+
# rm non std test file
rm test*/gmpy_test_thr.py || die
- distutils-r1_python_prepare_all
+ # testing for contents of __dir__ is really silly, and fails
+ sed -i -e '/__dir__/,+1d' test3/*.py || die
}
python_configure_all() {
mydistutilsargs=(
$(usex mpir --mpir --gmp)
- )
+ )
}
python_compile() {
@@ -57,13 +65,13 @@ python_compile_all() {
python_test() {
cd test || die
- "${PYTHON}" runtests.py || die "tests failed under ${EPYTHON}"
+ "${EPYTHON}" runtests.py || die "tests failed under ${EPYTHON}"
if python_is_python3; then
cd ../test3 || die
else
cd ../test2 || die
fi
- "${PYTHON}" gmpy_test.py || die "tests failed under ${EPYTHON}"
+ "${EPYTHON}" gmpy_test.py || die "tests failed under ${EPYTHON}"
}
python_install_all() {
next reply other threads:[~2019-11-22 8:40 UTC|newest]
Thread overview: 118+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-22 8:40 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-31 0:24 [gentoo-commits] repo/gentoo:master commit in: dev-python/gmpy/ Sam James
2024-10-25 13:45 Michał Górny
2024-08-31 4:48 Sam James
2024-08-30 14:59 Ionen Wolkens
2024-08-29 16:33 Arthur Zamarin
2024-08-29 14:28 Ionen Wolkens
2024-08-29 14:28 Ionen Wolkens
2024-08-16 15:20 Michał Górny
2024-08-16 13:58 Sam James
2024-08-12 22:05 Jakov Smolić
2024-08-10 15:41 Michał Górny
2024-08-10 8:17 Michał Górny
2024-07-22 1:47 Michał Górny
2024-07-20 21:06 James Le Cuirot
2024-07-20 11:24 Arthur Zamarin
2024-07-20 11:24 Arthur Zamarin
2024-07-20 11:24 Arthur Zamarin
2024-07-20 7:39 Arthur Zamarin
2024-07-02 6:58 Michał Górny
2024-06-14 19:07 Michał Górny
2023-12-08 5:17 Michał Górny
2023-12-07 20:29 Arthur Zamarin
2023-11-29 17:19 Sam James
2023-11-29 15:33 Arthur Zamarin
2023-11-29 14:42 Arthur Zamarin
2023-11-29 14:42 Arthur Zamarin
2023-11-29 13:21 Arthur Zamarin
2023-11-29 13:18 Arthur Zamarin
2023-11-29 13:18 Arthur Zamarin
2023-10-30 7:12 Andrey Grozin
2023-01-10 8:40 Arthur Zamarin
2023-01-10 8:38 Arthur Zamarin
2023-01-07 19:44 Sam James
2023-01-07 19:09 Arthur Zamarin
2023-01-07 18:41 Arthur Zamarin
2023-01-07 18:35 Arthur Zamarin
2023-01-07 18:32 Arthur Zamarin
2023-01-07 18:23 Arthur Zamarin
2023-01-07 18:23 Arthur Zamarin
2022-12-19 6:46 Michał Górny
2022-12-12 15:33 Michał Górny
2022-12-07 15:59 Michał Górny
2022-06-17 4:54 Michał Górny
2022-06-16 23:29 Jakov Smolić
2022-06-13 16:29 Sam James
2022-06-13 10:22 Agostino Sarubbo
2022-06-13 7:15 Agostino Sarubbo
2022-06-13 7:10 Agostino Sarubbo
2022-06-13 7:09 Agostino Sarubbo
2022-06-12 12:46 Sam James
2022-06-12 11:55 Sam James
2022-05-12 16:33 Michał Górny
2022-05-12 16:33 Michał Górny
2022-03-12 19:49 Michał Górny
2022-03-12 11:13 Arthur Zamarin
2022-03-06 8:05 Sam James
2022-03-06 7:38 Sam James
2022-02-27 16:38 Sam James
2022-01-27 22:56 James Le Cuirot
2022-01-14 11:21 Michał Górny
2022-01-14 11:17 Arthur Zamarin
2022-01-13 23:06 Jakov Smolić
2022-01-13 23:06 Jakov Smolić
2022-01-13 20:46 Arthur Zamarin
2022-01-13 18:48 Arthur Zamarin
2022-01-13 18:40 Arthur Zamarin
2022-01-13 18:29 Arthur Zamarin
2022-01-13 18:29 Arthur Zamarin
2022-01-12 10:03 Arthur Zamarin
2022-01-12 0:32 Sam James
2022-01-11 21:34 Sam James
2022-01-11 21:11 Arthur Zamarin
2022-01-11 21:11 Arthur Zamarin
2022-01-11 21:11 Arthur Zamarin
2022-01-11 21:11 Arthur Zamarin
2022-01-11 20:35 Arthur Zamarin
2022-01-06 19:05 Arthur Zamarin
2021-12-14 10:21 Michał Górny
2021-12-12 8:33 Michał Górny
2021-07-28 0:19 Marek Szuba
2021-07-12 6:42 Sam James
2021-07-07 14:22 Sergei Trofimovich
2021-07-06 1:48 Sam James
2021-07-03 6:25 Agostino Sarubbo
2021-07-03 6:24 Agostino Sarubbo
2021-07-03 6:22 Agostino Sarubbo
2021-07-03 6:20 Agostino Sarubbo
2021-05-31 23:53 Sam James
2020-11-28 11:57 Sam James
2020-06-06 8:38 Michał Górny
2020-05-26 18:09 Michał Górny
2020-05-04 11:04 Michał Górny
2020-04-10 17:37 Sergei Trofimovich
2020-04-07 10:21 Mart Raudsepp
2020-03-29 14:45 Sergei Trofimovich
2019-11-25 12:35 Michał Górny
2019-11-22 8:40 Michał Górny
2019-01-17 20:45 Mikle Kolyada
2018-12-31 10:21 Mikle Kolyada
2018-09-29 8:01 Sergei Trofimovich
2018-07-15 19:11 Mart Raudsepp
2018-07-08 19:10 Sergei Trofimovich
2018-05-04 13:05 Mart Raudsepp
2018-04-06 5:23 Matt Turner
2018-03-30 18:08 Sergei Trofimovich
2018-02-21 22:11 Michał Górny
2017-10-05 4:36 Markus Meier
2017-06-26 20:18 Tobias Klausmann
2017-05-26 10:16 Tobias Klausmann
2017-05-03 9:26 Michał Górny
2017-03-22 19:48 Markus Meier
2017-01-25 6:39 Jeroen Roovers
2017-01-18 11:57 Agostino Sarubbo
2017-01-17 13:26 Aaron Bauman
2016-08-09 10:27 Andrey Grozin
2016-01-07 9:23 Justin Lecher
2015-09-01 19:19 Tobias Klausmann
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=1574412045.ce3d11587a8d4ad3b6da7d9c2f2ecb96d791508e.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