aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-11-04 15:15:02 +0100
committerUlrich Müller <ulm@gentoo.org>2021-11-04 15:15:02 +0100
commitd9f7ba33ed8cd442ec8bc8bfcdd97cd1ce424fff (patch)
tree0f8b4d2f36fbbc20bf3065c4d8f38d1549ebac59
parent0.2.2 release (diff)
downloadg-sorcery-d9f7ba33ed8cd442ec8bc8bfcdd97cd1ce424fff.tar.gz
g-sorcery-d9f7ba33ed8cd442ec8bc8bfcdd97cd1ce424fff.tar.bz2
g-sorcery-d9f7ba33ed8cd442ec8bc8bfcdd97cd1ce424fff.zip
g_sorcery/ebuild.py: Update default EAPI from 5 to 8
EAPI 5 is banned from the Gentoo repository, therefore eclasses are dropping support for it. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--g_sorcery/ebuild.py2
-rw-r--r--tests/test_ebuild.py2
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"', '',