Repository navigation
fix: relax wrapt constraint to >=1.14,<3.0 - #318
Merged
Merged
Conversation
splunk-opentelemetry requires wrapt>=2.2.2, which made splunk-ao 0.8.0 uninstallable alongside it (wrapt<2.0). wrapt is only used for wrap_function_wrapper in splunk_ao.openai, which is unchanged in 2.x. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
etserend
approved these changes
Nov 18, 2026
etserend
left a comment
Contributor
There was a problem hiding this comment.
Verified on main + this change: splunk-ao[openai] + splunk-opentelemetry 2.12.1 resolves (wrapt 2.5.2, OTel 1.44.0), pip check is clean, and splunk_ao.openai imports.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Relax the
wraptconstraint from^1.14(>=1.14,<2.0) to>=1.14,<3.0.splunk-opentelemetry(2.12.1 requireswrapt>=2.2.2; latest 2.14.0 requires>=2.5.2) cannot be installed in the same environment assplunk-ao 0.8.0; pip/poetry fail withResolutionImpossible. Services using the Splunk OTel zero-code APM distro therefore can't adoptsplunk-ao.Why this is safe
wraptis used in exactly one place:from wrapt import wrap_function_wrapperinsrc/splunk_ao/openai/__init__.py. That API is unchanged in wrapt 2.x.Changes
pyproject.toml:wrapt = ">=1.14,<3.0"poetry.lock:content-hashupdated only. The lockedwrapt 1.17.3still satisfies the new range, so no package entries change.CHANGELOG.md: entry under Unreleased.Verification
pip install ./repo[openai] splunk-opentelemetry==2.12.1 "wrapt>=2.2.2"resolves (wrapt 2.5.2),pip checkclean. Before this change it is unresolvable.poetry check --lockpasses.tests/test_openai.pygives identical results on wrapt 1.17.3 and 2.5.2 (9 passed; 4 Responses-API tests error with apydantic_coreerror in both, so not related to this change; they look like anopenaiversion mismatch in my ad-hoc env, not the locked one).Follow-up (not in this PR)
Consider a CI matrix leg that runs the suite with
wrapt<2andwrapt>=2to keep both ranges honest.🤖 Generated with Claude Code