Skip to content

Upgrade doc8 to fix release infra failures on Python 3.12+#2171

Merged
jonathan343 merged 1 commit intomasterfrom
remove-pbr
May 6, 2026
Merged

Upgrade doc8 to fix release infra failures on Python 3.12+#2171
jonathan343 merged 1 commit intomasterfrom
remove-pbr

Conversation

@jonathan343
Copy link
Copy Markdown
Collaborator

Problem

Certain Python 3.12+ environments will fail with the following failure:

ModuleNotFoundError: No module named 'pkg_resources'

The root cause is pbr, a transitive dev dependency pulled in via doc8 -> stevedore. pbr registers a setuptools egg_info.writers entry point that unconditionally imports pkg_resources, which was removed in setuptools 82+. (src)When chalice's packager tests invoke setup.py egg_info in a subprocess, this entry point fires and crashes the process before metadata is written.

The issue does not reproduce in all environments. On some platforms setuptools writes PKG-INFO before the entry point executes, masking the failure.

Fix

Upgrade doc8 from 0.11.2 to 1.1.2. The newer versions have dropped their dependency on pbr (ref)


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Copy Markdown

@arandito arandito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jonathan343 jonathan343 merged commit 0b8acd8 into master May 6, 2026
18 checks passed
@jonathan343 jonathan343 deleted the remove-pbr branch May 6, 2026 20:45
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