Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 799401 - dev-python/setuptools-57.0.0 fails tests when =dev-python/jinja-3.0.1 is installed
Summary: dev-python/setuptools-57.0.0 fails tests when =dev-python/jinja-3.0.1 is inst...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-30 22:16 UTC by Jonathan Lovelace
Modified: 2021-07-02 19:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python:setuptools-57.0.0:20210630-170629.log (dev-python:setuptools-57.0.0:20210630-170629.log,229.50 KB, text/x-log)
2021-06-30 22:16 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,7.89 KB, text/plain)
2021-06-30 22:16 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2021-06-30 22:16:05 UTC
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 .
Comment 1 Jonathan Lovelace 2021-06-30 22:16:25 UTC
Created attachment 720423 [details]
emerge-info.txt
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-07-01 06:32:01 UTC
I don't seem to reproduce, with jinja 3.0.1.
Comment 3 Jonathan Lovelace 2021-07-01 23:28:49 UTC
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.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-07-02 05:35:36 UTC
If you can still reproduce, could you try if:

https://archives.gentoo.org/gentoo-dev/message/f3f0856cd50c78876932dc643775e5dc

helps you?
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-07-02 10:44:49 UTC
Actually, pushed that change into ::gentoo, so please retest without applying the patch now ;-).
Comment 6 Jonathan Lovelace 2021-07-02 19:43:19 UTC
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!