Skip to content

fix(deps): drop stale numpy<2 pin from the docs extra#869

Open
FBumann wants to merge 1 commit into
masterfrom
fix/docs-numpy-pin
Open

fix(deps): drop stale numpy<2 pin from the docs extra#869
FBumann wants to merge 1 commit into
masterfrom
fix/docs-numpy-pin

Conversation

@FBumann

@FBumann FBumann commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Note

This PR was generated by AI (Claude Code), reviewed by @FBumann.

Installing linopy[docs,benchmarks] is currently unresolvable:

× No solution found when resolving dependencies:
╰─▶ Because linopy[benchmarks] depends on numpy==2.4.6 and linopy[docs]
    depends on numpy<2, we can conclude that linopy[benchmarks] and
    linopy[docs] are incompatible.

The numpy<2 pin in the docs extra dates from the numpy 2.0 transition (e2f95f3, June 2024) and is obsolete: the core dependency is unpinned, the benchmarks extra pins numpy 2.4.6, and the docs stack (matplotlib 3.11, sphinx 9) supports numpy 2. This drops the pin; uv pip compile with both extras now resolves (numpy 2.4.6).

🤖 Generated with Claude Code

The pin was introduced in June 2024 (e2f95f3) during the numpy 2.0
transition and is long obsolete: the core dependency is unpinned and the
benchmarks extra pins numpy==2.4.6, so installing linopy[docs,benchmarks]
was unresolvable. The whole docs stack (matplotlib 3.11, sphinx 9)
supports numpy 2.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codspeed-hq

codspeed-hq Bot commented Jul 24, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 173 untouched benchmarks
⏩ 173 skipped benchmarks1


Comparing fix/docs-numpy-pin (87b1f20) with master (2afe5d0)

Open in CodSpeed

Footnotes

  1. 173 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

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.

1 participant