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 3/5] python-single-r1.eclass: Remove support for EAPIs prior to 6
Date: Thu, 08 Apr 2021 07:44:10
Message-Id: 20210408074311.109594-3-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-single-r1.eclass | 7 +++----
4 1 file changed, 3 insertions(+), 4 deletions(-)
5
6 diff --git a/eclass/python-single-r1.eclass b/eclass/python-single-r1.eclass
7 index fafd11021dd0..07db2d762ded 100644
8 --- a/eclass/python-single-r1.eclass
9 +++ b/eclass/python-single-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 Python packages not installed for multiple implementations.
17 # @DESCRIPTION:
18 # An extension of the python-r1 eclass suite for packages which
19 @@ -37,11 +37,10 @@
20 # https://dev.gentoo.org/~mgorny/python-guide/
21
22 case "${EAPI:-0}" in
23 - 0|1|2|3|4)
24 + [0-5])
25 die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
26 ;;
27 - 5|6|7)
28 - # EAPI=5 is required for sane USE_EXPAND dependencies
29 + [6-7])
30 ;;
31 *)
32 die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
33 --
34 2.31.1