Skip to content

fix: relax wrapt constraint to >=1.14,<3.0 - #318

Merged
etserend merged 1 commit into
splunk:mainfrom
samgdf:fix/relax-wrapt-constraint
Nov 19, 2026
Merged

etserend merged 1 commit into
splunk:mainfrom
samgdf:fix/relax-wrapt-constraint

Conversation

@samgdf

@samgdf samgdf commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Relax the wrapt constraint from ^1.14 (>=1.14,<2.0) to >=1.14,<3.0.

splunk-opentelemetry (2.12.1 requires wrapt>=2.2.2; latest 2.14.0 requires >=2.5.2) cannot be installed in the same environment as splunk-ao 0.8.0; pip/poetry fail with ResolutionImpossible. Services using the Splunk OTel zero-code APM distro therefore can't adopt splunk-ao.

Why this is safe

wrapt is used in exactly one place: from wrapt import wrap_function_wrapper in src/splunk_ao/openai/__init__.py. That API is unchanged in wrapt 2.x.

Changes

  • pyproject.toml: wrapt = ">=1.14,<3.0"
  • poetry.lock: content-hash updated only. The locked wrapt 1.17.3 still satisfies the new range, so no package entries change.
  • CHANGELOG.md: entry under Unreleased.

Verification

  • Python 3.12: pip install ./repo[openai] splunk-opentelemetry==2.12.1 "wrapt>=2.2.2" resolves (wrapt 2.5.2), pip check clean. Before this change it is unresolvable.
  • poetry check --lock passes.
  • tests/test_openai.py gives identical results on wrapt 1.17.3 and 2.5.2 (9 passed; 4 Responses-API tests error with a pydantic_core error in both, so not related to this change; they look like an openai version 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<2 and wrapt>=2 to keep both ranges honest.

🤖 Generated with Claude Code

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>
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@samgdf

samgdf commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@etserend etserend left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@etserend
etserend merged commit 02fc358 into splunk:main Nov 19, 2026
13 of 14 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants