commit:     ad0f75d8d0a80d711b26c24601de16b4070d8951
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  5 19:28:12 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jan  5 19:30:54 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad0f75d8

dev-lang/python: Add check-reqs for tests to 3.8

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-lang/python/python-3.9.0_alpha2.ebuild | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/dev-lang/python/python-3.9.0_alpha2.ebuild 
b/dev-lang/python/python-3.9.0_alpha2.ebuild
index 4d14640421d..1dea22df2a9 100644
--- a/dev-lang/python/python-3.9.0_alpha2.ebuild
+++ b/dev-lang/python/python-3.9.0_alpha2.ebuild
@@ -4,7 +4,8 @@
 EAPI="7"
 WANT_LIBTOOL="none"
 
-inherit autotools flag-o-matic pax-utils python-utils-r1 toolchain-funcs
+inherit autotools check-reqs flag-o-matic pax-utils python-utils-r1 \
+       toolchain-funcs
 
 MY_P="Python-${PV/_alpha/a}"
 PYVER=$(ver_cut 1-2)
@@ -57,12 +58,21 @@ DEPEND="${RDEPEND}
 RDEPEND+=" !build? ( app-misc/mime-types )"
 PDEPEND=">=app-eselect/eselect-python-20140125-r1"
 
+# large file tests involve a 2.5G file being copied (duplicated)
+CHECKREQS_DISK_BUILD=5500M
+
 pkg_pretend() {
+       use test && check-reqs_pkg_pretend
+
        ewarn "This is an early developer preview of Python 3.9.  New features"
        ewarn "can still be added up to 2020-05-18.  It's not suitable for 
production"
        ewarn "use, and it is not supported for Gentoo packages."
 }
 
+pkg_setup() {
+       use test && check-reqs_pkg_setup
+}
+
 src_prepare() {
        # Ensure that internal copies of expat, libffi and zlib are not used.
        rm -fr Modules/expat || die

Reply via email to