Created attachment 720420 [details] dev-python:setuptools-57.0.0:20210630-170629.log When dev-python/jinja is installed at version 3.0.1 (or higher, presumably), =dev-python/setuptools-57.0.0 fails a test, namely setuptools/tests/test_sphinx_upload_docs.py::TestSphinxUploadDocs::test_sphinx_doc, with a DeprecationWarning coming from /usr/lib/python3.8/site-packages/jinja2/filters.py .
Created attachment 720423 [details] emerge-info.txt
I don't seem to reproduce, with jinja 3.0.1.
I've done a little more digging. The deprecation warning that causes the failure is about Jinja's 'environmentfilter', which turns up no references when I do grep -rl environmentfilter /var/tmp/portage/dev-python/setuptools-57.0.0/work . When I do grep -rl environmentfilter /usr/lib/python3.9 , however, in addition to three files from Jinja itself, I find /usr/lib/python3.9/site-packages/sphinx/util/rst.py , installed by =dev-python/sphinx-3.5.4. If you have version 4.0.2 installed, I suspect it has updated code that doesn't trigger the warning.
If you can still reproduce, could you try if: https://archives.gentoo.org/gentoo-dev/message/f3f0856cd50c78876932dc643775e5dc helps you?
Actually, pushed that change into ::gentoo, so please retest without applying the patch now ;-).
All my systems are synced using webrsync, so the change won't reach my systems via an ordinary sync until tomorrow, but I tried with the patch applied to python-utils-r1.eclass and in with that change the test phase completed without error. Thanks!