From d9f7ba33ed8cd442ec8bc8bfcdd97cd1ce424fff Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Thu, 4 Nov 2021 15:15:02 +0100 Subject: g_sorcery/ebuild.py: Update default EAPI from 5 to 8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EAPI 5 is banned from the Gentoo repository, therefore eclasses are dropping support for it. Signed-off-by: Ulrich Müller --- g_sorcery/ebuild.py | 2 +- tests/test_ebuild.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/g_sorcery/ebuild.py b/g_sorcery/ebuild.py index c7a60e1..55d43c4 100644 --- a/g_sorcery/ebuild.py +++ b/g_sorcery/ebuild.py @@ -183,7 +183,7 @@ class DefaultEbuildGenerator(EbuildGenerator): if hasattr(layout, "eapi"): self.template.append("EAPI=%s" % layout.eapi) else: - self.template.append("EAPI=5") + self.template.append("EAPI=8") self.template.append("") if hasattr(layout, "vars_before_inherit"): diff --git a/tests/test_ebuild.py b/tests/test_ebuild.py index e227c97..f31e103 100644 --- a/tests/test_ebuild.py +++ b/tests/test_ebuild.py @@ -74,7 +74,7 @@ class TestEbuildGenerator(BaseTest): ebuild = ebuild_g.generate(self.package) self.assertEqual(ebuild, ['# automatically generated by g-sorcery', '# please do not edit this file', '', - 'EAPI=5', '', + 'EAPI=8', '', 'TEST_RAW_VALUE=raw_value', 'TEST_VALUE="value"', '', 'inherit g-test', '', 'DESCRIPTION="testing ebuild"', '', -- cgit v1.2.3-65-gdbad