refactor(deps): split contributor extras into PEP 735 dependency groups#764
Draft
FBumann wants to merge 1 commit into
Draft
refactor(deps): split contributor extras into PEP 735 dependency groups#764FBumann wants to merge 1 commit into
FBumann wants to merge 1 commit into
Conversation
Move the dev/contributor-only dependency sets (dev, docs, benchmarks) out of [project.optional-dependencies] and into [dependency-groups], so they no longer ship in the published wheel metadata. Runtime-facing extras (solvers, oetc, remote) stay as extras. Update every install reference accordingly: - README, doc/contributing.rst, benchmarks/README: --extra/.[...] -> --group - CI (test.yml, test-notebooks.yml): install groups via uv --group; keep runtime extras on the wheel - claude.yml allowed_tools: match the new install command - .readthedocs.yaml: install docs via native uv method (command: sync, groups: [docs]) instead of the pip "docs" extra - document the pip >= 25.1 requirement for dependency groups in contributing.rst Refs #763 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Refactor deps to modern "dependency-groupy". Also, update readthedocs to use uv directly.
Closes #763
Note
The following content was generated by AI.
What
Move the dev/contributor-only dependency sets out of
[project.optional-dependencies](extras) into[dependency-groups](PEP 735):dev,docs,benchmarkssolvers,oetc,remote(runtime-facing — consumers install these from PyPI, so they belong in the wheel metadata)Why
The contributor toolchains have no business shipping in the published wheel metadata. PEP 735 groups are the right home for them; they're never exposed to consumers and can't be pulled via
pip install linopy[dev].Implications for installers
solvers,oetc,remote)pip install ".[solvers]"— unchangeddev,docs,benchmarks)uv sync --group dev/pip install --group dev(pip ≥ 25.1)Groups are not reachable via the
.[...]syntax, so this is a breaking change for contributors on pip < 25.1.Call-outs for review
test.yml,test-notebooks.yml): groups now installed viauv ... --group; runtime extras stay on the built wheel.method: uv,command: sync,groups: [docs]) — verified against the RTD config schema. This avoids depending on the RTD builder's system pip version.claude.ymlallowed_tools: updated to match the new install command.README,contributing.rst,benchmarks/README) updated, incl. an explicit pip ≥ 25.1 note.Draft — open question
Should
devmove too, or onlydocs/benchmarks? Movingdevis the most invasive part (it changes the contributor onboarding command and the wheel-install step intest.yml). Flagging for maintainer preference.