setuptools <82 needed as depending on pkg_resources#14302
setuptools <82 needed as depending on pkg_resources#14302Barry1 wants to merge 7 commits intopytest-dev:mainfrom
Conversation
Barry1
commented
Mar 18, 2026
- For pytest pkg_resources is needed. From setuptools beginning with version 82 pkg_resources is not longer available.
pkg_resources is needed and only in setuptools before 82
for more information, see https://pre-commit.ci
Updated the required setuptools version in pyproject.toml to ensure compatibility with pytest.
checked if test will succeed with other name
|
Unfortunately Changelog entry and pre-commit.ci fail - but I do not understand, why. That is strange. |
RonnyPfannschmidt
left a comment
There was a problem hiding this comment.
the support for pkg_resources is dealing with legacy messes - if we have a code path outside of tests that actually needs it thats a bug
i did a preliminary check and the only code paths i found where sys.modules check guarded sections for handling legacy details in monkeypatch pythonpath handling and assertion rewrite handling
we should have a conditional skip for related tests and eventually phase it out alltogether
additionally build requires and requries don't match - please provide a a example of the errors you see
Hi @RonnyPfannschmidt , When using setuptools 81.0.0 it runs smooth, when switching to setuptools 82.0.1 I got the following error It also happened with python3.13 (in my poetry env). Thanks again Bastian |
|
as per traceback the offending code is solely in the other library - pytest is not involved, only the messenger |
|
further context - that package ships a pytest plugin which does the ill advised job of integrating linters in a testruner/framework |