Skip to content

chore: pin setuptools<82 unconditionally, drop pkg_resources importorskip#3056

Open
Pierre-Sassoulas wants to merge 1 commit into
mainfrom
fix/pkg-resources-pin
Open

chore: pin setuptools<82 unconditionally, drop pkg_resources importorskip#3056
Pierre-Sassoulas wants to merge 1 commit into
mainfrom
fix/pkg-resources-pin

Conversation

@Pierre-Sassoulas
Copy link
Copy Markdown
Member

Type of Changes

Type
🔨 Refactoring

Description

pkg_resources is required by
tests/testdata/python3/data/path_pkg_resources_1 to declare its namespace, independent of the Python version. setuptools 82.0.0 removes pkg_resources entirely, so cap setuptools on every supported Python and drop the pytest.importorskip("pkg_resources") workaround added in #3049, preserving real test coverage rather than silently skipping.

…skip

``pkg_resources`` is required by
``tests/testdata/python3/data/path_pkg_resources_1`` to declare its
namespace, independent of the Python version. setuptools 82.0.0 removes
``pkg_resources`` entirely, so cap setuptools on every supported Python
and drop the ``pytest.importorskip("pkg_resources")`` workaround added
in #3049 — preserving real test coverage rather than silently skipping.
@Pierre-Sassoulas Pierre-Sassoulas added the Maintenance Discussion or action around maintaining astroid or the dev workflow label May 18, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.52%. Comparing base (056f9ff) to head (1017d61).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3056   +/-   ##
=======================================
  Coverage   93.52%   93.52%           
=======================================
  Files          92       92           
  Lines       11329    11329           
=======================================
  Hits        10596    10596           
  Misses        733      733           
Flag Coverage Δ
linux 93.39% <ø> (ø)
pypy 93.52% <ø> (ø)
windows 93.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance Discussion or action around maintaining astroid or the dev workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant