-
-
Notifications
You must be signed in to change notification settings - Fork 869
fix(deps): add dev and docs to project.optional-dependencies for uv compatibility #1581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ompatibility Fixes issue #1580 where uv pip install -e '.[dev,docs,test-docs]' failed with warnings about missing extras. Added dev and docs dependencies to [project.optional-dependencies] while maintaining [dependency-groups] for poetry compatibility as documented in CONTRIBUTING.md. - Added dev dependencies to [project.optional-dependencies] - Added docs dependencies to [project.optional-dependencies] - Maintained existing [dependency-groups] for poetry compatibility - Verified uv pip install works without warnings - Verified lint checks pass Resolves #1580 Co-Authored-By: Jason Liu <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you confirm this runs and builds an the commands work?
pyproject.toml
Outdated
"coverage<8.0.0,>=7.3.2", | ||
"pyright<2.0.0", | ||
"jsonref<2.0.0,>=1.1.0", | ||
"black<25.0.0,>=24.10.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for black just use ruff
Addresses jxnl's feedback to remove black since ruff is used for formatting. Removed black from both [project.optional-dependencies] and [dependency-groups] dev sections. - Verified uv pip install -e '.[dev,docs,test-docs]' works without warnings - Verified ruff check passes - Maintained compatibility with existing workflows Co-Authored-By: Jason Liu <[email protected]>
✅ Confirmed commands work and builds successfully:
✅ Addressed feedback:
The fix resolves issue #1580 where uv couldn't find dev/docs extras, and now maintains compatibility with both uv and existing workflows without the unnecessary black dependency. |
Deploying with
|
Status | Name | Latest Commit | Preview URL | Updated (UTC) |
---|---|---|---|---|
✅ Deployment successful! View logs |
instructor | c0d50c0 | Visit preview | Jun 03 2025, 06:04 PM |
…ncies for uv compatibility - Fixed anthropic dependency discrepancy by adding xmltodict to dependency-groups section - All provider dependencies now exist in both [project.optional-dependencies] and [dependency-groups] sections - Ensures compatibility with both uv and poetry dependency management workflows - Resolves issue #1580 where uv pip install failed to find dev and docs dependencies Co-Authored-By: Jason Liu <[email protected]>
Co-Authored-By: Jason Liu <[email protected]>
…ional-dependencies and dependency-groups - Added missing provider dependencies (phonenumbers, graphviz, sqlmodel, trafilatura, pydub, datasets) to [project.optional-dependencies] - Fixed google-genai dependency formatting consistency (removed trailing comma) - Ensures all provider dependencies are accessible via both uv and poetry workflows - Completes comprehensive uv/poetry compatibility as requested Co-Authored-By: Jason Liu <[email protected]>
- Updated lock file to include new provider dependencies - Ensures consistent dependency resolution across environments Co-Authored-By: Jason Liu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All optional dependencies install without warning.
% uv pip install -e ".[dev,docs,test-docs,datasets,pydub,trafilatura,sqlmodel,graphviz,litellm,google-genai,bedrock,perplexity,mistral,anthropic,groq,cohere,google-generativeai,vertexai,cerebras_cloud_sdk,fireworks-ai,writer]"
Resolved 231 packages in 160ms
Built instructor @ file:///Users/john/repos/instructor
Prepared 1 package in 169ms
Uninstalled 1 package in 0.57ms
Installed 1 package in 0.88ms
~ instructor==1.8.3 (from file:///Users/john/repos/instructor)
Fix uv pip install issue with missing dev and docs dependencies
Fixes #1580
Problem
uv pip install -e ".[dev,docs,test-docs]"
was failing with warnings about missing extras becausedev
anddocs
dependencies were only defined in[dependency-groups]
but not in[project.optional-dependencies]
.Solution
Added
dev
anddocs
dependencies to[project.optional-dependencies]
while maintaining the existing[dependency-groups]
section for poetry compatibility, following the pattern documented in CONTRIBUTING.md. Additionally, synchronized ALL provider dependencies between both sections for comprehensive uv and poetry compatibility as requested.Changes
dev
dependencies to[project.optional-dependencies]
docs
dependencies to[project.optional-dependencies]
xmltodict<0.15,>=0.13
to[dependency-groups]
section[project.optional-dependencies]
: phonenumbers, graphviz, sqlmodel, trafilatura, pydub, datasets[dependency-groups]
for poetry compatibilityuv pip install -e ".[dev,docs,test-docs]"
works without warningsuv pip install -e ".[anthropic,groq,cohere]"
works without warningsuv run ruff check .
Testing
uv pip install -e ".[dev,docs,test-docs]"
installs successfully without warningsuv pip install -e ".[anthropic,groq,cohere,google-genai,vertexai]"
installs successfully without warningsuv pip install -e ".[phonenumbers,graphviz,sqlmodel,trafilatura,pydub,datasets]"
installs successfully without warningsuv run ruff check .
Link to Devin run
https://app.devin.ai/sessions/8e147cd3e28540509cd445e94efe33c1
This PR was requested by Jason Liu ([email protected]).