Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 4/5] python-any-r1.eclass: Remove support for EAPIs prior to 6
Date: Thu, 08 Apr 2021 07:44:30
Message-Id: 20210408074311.109594-4-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/5] distutils-r1.eclass: Remove support for EAPIs prior to 6 by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/python-any-r1.eclass | 6 +++---
4 1 file changed, 3 insertions(+), 3 deletions(-)
5
6 diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
7 index 3a80fa35c577..49f639d5fac6 100644
8 --- a/eclass/python-any-r1.eclass
9 +++ b/eclass/python-any-r1.eclass
10 @@ -7,7 +7,7 @@
11 # @AUTHOR:
12 # Author: Michał Górny <mgorny@g.o>
13 # Based on work of: Krzysztof Pawlik <nelchael@g.o>
14 -# @SUPPORTED_EAPIS: 5 6 7
15 +# @SUPPORTED_EAPIS: 6 7
16 # @BLURB: An eclass for packages having build-time dependency on Python.
17 # @DESCRIPTION:
18 # A minimal eclass for packages which need any Python interpreter
19 @@ -38,8 +38,8 @@
20 # https://dev.gentoo.org/~mgorny/python-guide/
21
22 case "${EAPI:-0}" in
23 - [0-4]) die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" ;;
24 - [5-7]) ;;
25 + [0-5]) die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" ;;
26 + [6-7]) ;;
27 *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" ;;
28 esac
29
30 --
31 2.31.1