Pin setuptools <81 to preserve pkg_resources for docxcompose#821
Closed
Copilot wants to merge 1 commit intohotfix/fix-setuptoolsfrom
Closed
Pin setuptools <81 to preserve pkg_resources for docxcompose#821Copilot wants to merge 1 commit intohotfix/fix-setuptoolsfrom
Copilot wants to merge 1 commit intohotfix/fix-setuptoolsfrom
Conversation
Merged
Copilot
AI
changed the title
[WIP] Update setuptools version based on feedback
Pin setuptools <81 to preserve pkg_resources for docxcompose
Feb 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirements for Contributing a Bug Fix
Identify the Bug
Addresses feedback on PR #820 regarding setuptools version constraint.
Description of the Change
Added explicit
setuptools<81constraint torequirements/base.txt. Thedocxcomposedependency requirespkg_resources, which was removed in setuptools v81+.Alternate Designs
Could pin to a specific setuptools version (e.g.,
setuptools==80.6.1), but using<81allows patch updates while preventing the breaking v81+ versions.Possible Drawbacks
Prevents use of setuptools v81+ features. This is acceptable as pkg_resources compatibility is required for core reporting functionality.
Verification Process
Verified
setuptools<81constraint is present inrequirements/base.txtwith appropriate inline comment explaining the version ceiling.Release Notes
Not applicable - internal dependency constraint for pkg_resources compatibility.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.