Skip to content

fix: Work around "No module named 'pkg_resources'" by pinning setuptools to <82#275

Open
bkeryan wants to merge 2 commits intomainfrom
users/bkeryan/pin-setuptools-v81
Open

fix: Work around "No module named 'pkg_resources'" by pinning setuptools to <82#275
bkeryan wants to merge 2 commits intomainfrom
users/bkeryan/pin-setuptools-v81

Conversation

@bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented Feb 8, 2026

What does this Pull Request accomplish?

Pin setuptools to version 81.x (<82).

Why should this Pull Request be merged?

setuptools v82 removes support for the deprecated pkg_resources module.

flake8-import-order v0.18.x still uses pkg_resources. This is fixed in flake8-import-order v0.19.0, but we haven't updated due to #226.

What testing has been done?

Ran poetry1.8.3 lock without --no-update and verified that it only upgraded to setuptools v81, not v82.
Tests still pass with setuptools v81.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2026

Thank you for contributing! 👋

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant