Hello,
Here's another batch of changes to Python eclasses. This time it
includes four changes:
1. Fix for DISTUTILS_UPSTREAM_PEP517 when ebuild locally overrides
DISTUTILS_USE_PEP517. This is a rare case, see the last two commits
for the workarounds that will no longer be necessary.
2. Bumping dev-python/setuptools dep. Long story short, upstream
introduced support for new license syntax in setuptools 77,
and immediately started scaring people with deprecation warnings
for the old syntax, so we have a growing number of projects
requiring >=77. The new version will be ready to go stable
on Saturday.
3. Removing the use of dev-python/unittest-or-fail. It was an unittest
wrapper for Python < 3.12, to make test phase fail if there were
no tests (e.g. distutils_enable_tests call was wrong, or upstream
suddenly moved tests on version bump). It is no longer needed for
Python 3.12+, and since we can reasonably expect people to always
test with 3.12+, this should catch any mistakes and we do not need
to go through extra hoops for 3.11.
4. Add verbose deprecation warnings for `distutils_enable_tests
setup.py`, and for non-PEP517 builds. These are rather ugly as they
appear during dependency calculation (hence they need the package
name explicitly printed). Good news is, the use is almost gone
from ::gentoo, so they are specifically targeted at overlays.
PR:
https://github.com/gentoo/gentoo/pull/41473
Michał Górny (8):
distutils-r1.eclass: Make DISTUTILS_UPSTREAM_PEP517 default-unset
distutils-r1.eclass: Bump minimum setuptools version
python-utils-r1.eclass: Remove unittest-or-fail use
distutils-r1.eclass: Remove unittest-or-fail deps
distutils-r1.eclass: Add verbose `det setup.py` deprecation warning
distutils-r1.eclass: Add verbose legacy mode deprecation warning
dev-python/sqlglot: Remove obsolete hack
dev-python/blake3: Remove obsolete hack
dev-python/blake3/blake3-1.0.4.ebuild | 1 -
dev-python/sqlglot/sqlglot-26.12.1.ebuild | 1 -
eclass/distutils-r1.eclass | 43 ++++++++++++-----------
eclass/python-utils-r1.eclass | 8 ++---
4 files changed, 24 insertions(+), 29 deletions(-)
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)