Skip to content

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

Merged
mshafer-NI merged 2 commits intomainfrom
users/bkeryan/pin-setuptools-v81
Feb 9, 2026
Merged

fix: Work around "No module named 'pkg_resources'" by pinning setuptools to <82#275
mshafer-NI merged 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! 👋

@mshafer-NI mshafer-NI merged commit a178ce9 into main Feb 9, 2026
28 checks passed
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.

2 participants