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 00/28] python-r1 suite EAPI 8 support/cleanup
Date: Sun, 20 Jun 2021 09:56:04
Message-Id: 20210620095552.625633-1-mgorny@gentoo.org
1 Hello, everyone.
2
3 Here's the big batch of patches enabling EAPI 8 support in python-r1
4 eclass suite. This includes some generic fixes and cleanups.
5
6 Generally:
7
8 - all previously-deprecated stuff is now banned in EAPI 8
9 - some new stuff becomes deprecated and banned in EAPI 8
10 - some leftover Python 2 support code has been removed
11 - some horrid old code has been refactored
12
13 The extra deprecations/bans are:
14
15 1. `python_moduleroot` and `python_scriptroot` vars are no longer used
16 (they were removed from ::gentoo in 2016).
17
18 2. `python_is_python3` is now obsolete since we don't support python2.
19 Just always assume python3 ;-).
20
21 3. `python_gen*` functions no longer accept -2, -3, 'python2*'
22 and 'pypy' arguments that made sense only in Python 2 world,
23 in EAPI 8. This will force some obsolete dep cleanup.
24
25 4. `PYTHON_MULTI_USEDEP` is now banned in EAPI 8, just use
26 `PYTHON_USEDEP`.
27
28 5. `mydistutilsargs` has been replaced with `DISTUTILS_ARGS`. Old EAPIs
29 still allow the old variable, EAPI 8 bans it.
30
31 6. `distutils_install_for_testing --via-home` is now banned.
32
33 Please review.
34
35 ---
36
37 Michał Górny (28):
38 python-utils-r1.eclass: Ban private API in EAPI 8
39 python-utils-r1.eclass: Use 'dosym -r' in EAPI 8
40 python-utils-r1.eclass: Remove python_optimize support for py<3.5
41 python-utils-r1.eclass: Rename *into vars to use underscores
42 python-utils-r1.eclass: Eliminate local python_is_python3 uses
43 python-utils-r1.eclass: Ban py2 deps in python_gen* in EAPI 8
44 python-utils-r1.eclass: Deprecated and EAPI8-ban python_is_python3
45 python-utils-r1.eclass: Fix python_fix_shebang for py3.10+
46 python-utils-r1.eclass: Enable EAPI 8
47 python-any-r1.eclass: Remove obsolete eselect-python use
48 python-any-r1.eclass: Remove obsolete PYTHON_USEDEP single-r1 hack
49 python-any-r1.eclass: Enable EAPI 8
50 python-single-r1.eclass: Update doc for -2/-3 arg removal
51 python-single-r1.eclass: Ban PYTHON_MULTI_USEDEP in EAPI 8
52 python-single-r1.eclass: Enable EAPI 8
53 python-r1.eclass: Update doc for -2/-3 arg removal
54 multibuild.eclass: Enable EAPI 8
55 python-r1.eclass: Remove obsolete QA hack for PYTHON_USEDEP
56 python-r1.eclass: Ban python_gen_usedep in EAPI 8
57 python-r1.eclass: Use 'dosym -r' in EAPI 8
58 python-r1.eclass: Enable EAPI 8
59 distutils-r1.eclass: Refactor --install-scripts rewriting logic
60 distutils-r1.eclass: Replace mydistutilsargs with DISTUTILS_ARGS
61 distutils-r1.eclass: Require >=pyproject2setuppy-15
62 distutils-r1.eclass: Ban dift --via-home in EAPI 8
63 distutils-r1.eclass: Remove old FreeBSD compat hack
64 distutils-r1.eclass: Use 'dosym -r' in EAPI 8
65 distutils-r1.eclass: Enable EAPI 8
66
67 eclass/distutils-r1.eclass | 88 ++++++++++++++++------------
68 eclass/multibuild.eclass | 8 +--
69 eclass/python-any-r1.eclass | 34 +++--------
70 eclass/python-r1.eclass | 94 +++++++++++++----------------
71 eclass/python-single-r1.eclass | 46 ++++++++-------
72 eclass/python-utils-r1.eclass | 101 +++++++++++++++++++-------------
73 eclass/tests/python-utils-r1.sh | 4 ++
74 7 files changed, 195 insertions(+), 180 deletions(-)
75
76 --
77 2.32.0

Replies

Subject Author
[gentoo-dev] [PATCH 01/28] python-utils-r1.eclass: Ban private API in EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 02/28] python-utils-r1.eclass: Use 'dosym -r' in EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 03/28] python-utils-r1.eclass: Remove python_optimize support for py<3.5 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 04/28] python-utils-r1.eclass: Rename *into vars to use underscores "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 05/28] python-utils-r1.eclass: Eliminate local python_is_python3 uses "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 06/28] python-utils-r1.eclass: Ban py2 deps in python_gen* in EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 07/28] python-utils-r1.eclass: Deprecated and EAPI8-ban python_is_python3 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 08/28] python-utils-r1.eclass: Fix python_fix_shebang for py3.10+ "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 09/28] python-utils-r1.eclass: Enable EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 10/28] python-any-r1.eclass: Remove obsolete eselect-python use "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 11/28] python-any-r1.eclass: Remove obsolete PYTHON_USEDEP single-r1 hack "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 12/28] python-any-r1.eclass: Enable EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 13/28] python-single-r1.eclass: Update doc for -2/-3 arg removal "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 14/28] python-single-r1.eclass: Ban PYTHON_MULTI_USEDEP in EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 15/28] python-single-r1.eclass: Enable EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 16/28] python-r1.eclass: Update doc for -2/-3 arg removal "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 17/28] multibuild.eclass: Enable EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 18/28] python-r1.eclass: Remove obsolete QA hack for PYTHON_USEDEP "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 19/28] python-r1.eclass: Ban python_gen_usedep in EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 20/28] python-r1.eclass: Use 'dosym -r' in EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 21/28] python-r1.eclass: Enable EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 22/28] distutils-r1.eclass: Refactor --install-scripts rewriting logic "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 23/28] distutils-r1.eclass: Replace mydistutilsargs with DISTUTILS_ARGS "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 24/28] distutils-r1.eclass: Require >=pyproject2setuppy-15 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 25/28] distutils-r1.eclass: Ban dift --via-home in EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 26/28] distutils-r1.eclass: Remove old FreeBSD compat hack "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 27/28] distutils-r1.eclass: Use 'dosym -r' in EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH 28/28] distutils-r1.eclass: Enable EAPI 8 "Michał Górny" <mgorny@g.o>
[gentoo-dev] [PATCH v2 28/29] python-utils-r1.eclass: Remove _python_ln_rel "Michał Górny" <mgorny@g.o>