dev-lang/python: Add check-reqs for tests to 3.8
authorMichał Górny <mgorny@gentoo.org>
Sun, 5 Jan 2020 19:28:12 +0000 (20:28 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 5 Jan 2020 19:30:54 +0000 (20:30 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-lang/python/python-3.9.0_alpha2.ebuild

index 4d14640421de4a2629f5dcbd6d9061b5c2db649f..1dea22df2a99f2d4b10bd75efeef10d9aa0d866b 100644 (file)
@@ -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