Skip to content

Relax anthropic version pin to allow >=0.46.0,<1.0.0#995

Open
Br1an67 wants to merge 1 commit intodatalab-to:masterfrom
Br1an67:fix/issue-927-relax-anthropic-pin
Open

Relax anthropic version pin to allow >=0.46.0,<1.0.0#995
Br1an67 wants to merge 1 commit intodatalab-to:masterfrom
Br1an67:fix/issue-927-relax-anthropic-pin

Conversation

@Br1an67
Copy link
Copy Markdown

@Br1an67 Br1an67 commented Mar 1, 2026

Summary

Relax the anthropic version constraint from ^0.46.0 (which resolves to >=0.46.0,<0.47.0) to >=0.46.0,<1.0.0.

The current strict upper bound prevents users from installing marker-pdf alongside packages that require newer anthropic versions (e.g., pydantic-ai requires anthropic>=0.52.0).

The marker code only uses stable API features (anthropic.Anthropic, client.messages.create, RateLimitError, APITimeoutError), so newer 0.x versions should be compatible.

Closes #927

Changes

  • Changed anthropic = "^0.46.0" to anthropic = ">=0.46.0,<1.0.0" in pyproject.toml

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 1, 2026

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

@Br1an67
Copy link
Copy Markdown
Author

Br1an67 commented Mar 1, 2026

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

@NasonZ
Copy link
Copy Markdown

NasonZ commented Apr 23, 2026

Bumping this — the current ^0.46.0 pin forces hard dep conflicts downstream with anthropic>=0.50 (extended thinking), >=0.52 (messages.parse native structured output), and with langchain/langgraph, pydantic-ai, and llamaindex which have all moved on.

The PR's compatibility note checks out: marker only touches Anthropic(), client.messages.create, RateLimitError, and APITimeoutError — all stable across the 0.46 → 0.96 anthropic range. A merge here unblocks quite a lot downstream.

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.

Strict anthropic version pin (<0.47.0) causes conflicts with modern packages

2 participants