Hello, everyone. Here's the big batch of patches enabling EAPI 8 support in python-r1 eclass suite. This includes some generic fixes and cleanups.
Generally: - all previously-deprecated stuff is now banned in EAPI 8 - some new stuff becomes deprecated and banned in EAPI 8 - some leftover Python 2 support code has been removed - some horrid old code has been refactored The extra deprecations/bans are: 1. `python_moduleroot` and `python_scriptroot` vars are no longer used (they were removed from ::gentoo in 2016). 2. `python_is_python3` is now obsolete since we don't support python2. Just always assume python3 ;-). 3. `python_gen*` functions no longer accept -2, -3, 'python2*' and 'pypy' arguments that made sense only in Python 2 world, in EAPI 8. This will force some obsolete dep cleanup. 4. `PYTHON_MULTI_USEDEP` is now banned in EAPI 8, just use `PYTHON_USEDEP`. 5. `mydistutilsargs` has been replaced with `DISTUTILS_ARGS`. Old EAPIs still allow the old variable, EAPI 8 bans it. 6. `distutils_install_for_testing --via-home` is now banned. Please review. --- Michał Górny (28): python-utils-r1.eclass: Ban private API in EAPI 8 python-utils-r1.eclass: Use 'dosym -r' in EAPI 8 python-utils-r1.eclass: Remove python_optimize support for py<3.5 python-utils-r1.eclass: Rename *into vars to use underscores python-utils-r1.eclass: Eliminate local python_is_python3 uses python-utils-r1.eclass: Ban py2 deps in python_gen* in EAPI 8 python-utils-r1.eclass: Deprecated and EAPI8-ban python_is_python3 python-utils-r1.eclass: Fix python_fix_shebang for py3.10+ python-utils-r1.eclass: Enable EAPI 8 python-any-r1.eclass: Remove obsolete eselect-python use python-any-r1.eclass: Remove obsolete PYTHON_USEDEP single-r1 hack python-any-r1.eclass: Enable EAPI 8 python-single-r1.eclass: Update doc for -2/-3 arg removal python-single-r1.eclass: Ban PYTHON_MULTI_USEDEP in EAPI 8 python-single-r1.eclass: Enable EAPI 8 python-r1.eclass: Update doc for -2/-3 arg removal multibuild.eclass: Enable EAPI 8 python-r1.eclass: Remove obsolete QA hack for PYTHON_USEDEP python-r1.eclass: Ban python_gen_usedep in EAPI 8 python-r1.eclass: Use 'dosym -r' in EAPI 8 python-r1.eclass: Enable EAPI 8 distutils-r1.eclass: Refactor --install-scripts rewriting logic distutils-r1.eclass: Replace mydistutilsargs with DISTUTILS_ARGS distutils-r1.eclass: Require >=pyproject2setuppy-15 distutils-r1.eclass: Ban dift --via-home in EAPI 8 distutils-r1.eclass: Remove old FreeBSD compat hack distutils-r1.eclass: Use 'dosym -r' in EAPI 8 distutils-r1.eclass: Enable EAPI 8 eclass/distutils-r1.eclass | 88 ++++++++++++++++------------ eclass/multibuild.eclass | 8 +-- eclass/python-any-r1.eclass | 34 +++-------- eclass/python-r1.eclass | 94 +++++++++++++---------------- eclass/python-single-r1.eclass | 46 ++++++++------- eclass/python-utils-r1.eclass | 101 +++++++++++++++++++------------- eclass/tests/python-utils-r1.sh | 4 ++ 7 files changed, 195 insertions(+), 180 deletions(-) -- 2.32.0
