Skip to content

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jun 3, 2025

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 because dev and docs dependencies were only defined in [dependency-groups] but not in [project.optional-dependencies].

Solution

Added dev and docs 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

  • ✅ Added dev dependencies to [project.optional-dependencies]
  • ✅ Added docs dependencies to [project.optional-dependencies]
  • ✅ Fixed anthropic dependency discrepancy by adding xmltodict<0.15,>=0.13 to [dependency-groups] section
  • ✅ Added ALL missing provider dependencies to [project.optional-dependencies]: phonenumbers, graphviz, sqlmodel, trafilatura, pydub, datasets
  • ✅ Fixed google-genai dependency formatting consistency (removed trailing comma)
  • ✅ All provider dependencies now exist in both sections for full compatibility
  • ✅ Removed black dependency from dev dependencies (replaced by ruff)
  • ✅ Maintained existing [dependency-groups] for poetry compatibility
  • ✅ Verified uv pip install -e ".[dev,docs,test-docs]" works without warnings
  • ✅ Verified uv pip install -e ".[anthropic,groq,cohere]" works without warnings
  • ✅ Verified lint checks pass with uv run ruff check .

Testing

  • ✅ Confirmed uv pip install -e ".[dev,docs,test-docs]" installs successfully without warnings
  • ✅ Confirmed uv pip install -e ".[anthropic,groq,cohere,google-genai,vertexai]" installs successfully without warnings
  • ✅ Confirmed uv pip install -e ".[phonenumbers,graphviz,sqlmodel,trafilatura,pydub,datasets]" installs successfully without warnings
  • ✅ Verified lint checks pass with uv run ruff check .
  • ✅ Maintained compatibility with existing dependency management workflows
  • ✅ All provider dependencies are now accessible via both uv and poetry workflows
  • ✅ Complete synchronization between [project.optional-dependencies] and [dependency-groups] sections
  • ✅ All 22 new packages installed successfully for additional provider dependencies

Link to Devin run

https://app.devin.ai/sessions/8e147cd3e28540509cd445e94efe33c1

This PR was requested by Jason Liu ([email protected]).

…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]>
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions github-actions bot added dependencies Pull requests that update a dependency file python Pull requests that update python code size:M This PR changes 30-99 lines, ignoring generated files. labels Jun 3, 2025
Copy link
Collaborator

@jxnl jxnl left a 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",
Copy link
Collaborator

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]>
Copy link
Contributor Author

Confirmed commands work and builds successfully:

    • ✅ Works without warnings
  • All checks passed! - ✅ All checks passed

Addressed feedback:

  • Removed dependency from both and dev sections as requested since ruff handles formatting

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.

Copy link

cloudflare-workers-and-pages bot commented Jun 3, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
instructor c0d50c0 Visit preview Jun 03 2025, 06:04 PM

devin-ai-integration bot and others added 4 commits June 3, 2025 17:47
…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]>
…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]>
Copy link
Contributor

@johnwlockwood johnwlockwood left a 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)

@jxnl jxnl merged commit 98365e0 into main Jun 3, 2025
14 of 16 checks passed
@jxnl jxnl deleted the devin/1748971562-fix-uv-optional-dependencies branch June 3, 2025 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dev, docs missing from project.optional-dependencies, uv pip install doesn't find them

2 participants