Skip to content

Conversation

@yukuanj
Copy link
Contributor

@yukuanj yukuanj commented Oct 17, 2025

Motivation and Context

When I run the code on MacBook with the newest version uv 0.9.3 (83635a6c4 2025-10-15), uv gives the warning

warning: The tool.uv.dev-dependencies field (used in /Users/yukuan/Desktop/python-sdk/examples/servers/simple-auth/pyproject.toml, /Users/yukuan/Desktop/python-sdk/examples/servers/simple-pagination/pyproject.toml, /Users/yukuan/Desktop/python-sdk/examples/servers/simple-prompt/pyproject.toml, /Users/yukuan/Desktop/python-sdk/examples/servers/simple-resource/pyproject.toml, /Users/yukuan/Desktop/python-sdk/examples/servers/simple-streamablehttp/pyproject.toml, /Users/yukuan/Desktop/python-sdk/examples/servers/simple-streamablehttp-stateless/pyproject.toml, /Users/yukuan/Desktop/python-sdk/examples/servers/simple-tool/pyproject.toml) is deprecated and will be removed in a future release; use dependency-groups.dev instead

which says the current dev-dependencies field in multiple pyproject.toml files are deprecated. There is also related topic on the uv official website: https://docs.astral.sh/uv/concepts/projects/dependencies/#legacy-dev-dependencies

Therefore, I have replaced the deprecated dev-dependencies with dependency-groups, which addresses the warning.

How Has This Been Tested?

I have tested in MacOS 15.5 with uv 0.9.3 (83635a6c4 2025-10-15).
Also, I have cross checked with Windows 11 PC with earlier uv version uv 0.8.7 (10960bc13 2025-09-10).

Breaking Changes

No.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@felixweinberger felixweinberger added the code quality no-op changes to code quality label Oct 23, 2025
Reformats the dependency-groups to maintain single-line format
consistent with the original dev-dependencies style, while ensuring
all files have proper trailing newlines.
Copy link
Contributor

@felixweinberger felixweinberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @yukuanj, reformatted a little but otherwise looks good!

@felixweinberger felixweinberger merged commit 340af40 into modelcontextprotocol:main Oct 24, 2025
18 checks passed
yarnabrina added a commit to yarnabrina/mcp-python-sdk-fork that referenced this pull request Oct 25, 2025
* origin/main:
  update uv to 0.9.5 (modelcontextprotocol#1510)
  Replace deprecated dev-dependencies with dependency-groups (modelcontextprotocol#1488)
  test: use errno.ENOENT for command not found assertion (modelcontextprotocol#1498)
  Upgrade GitHub Actions (modelcontextprotocol#1473)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code quality no-op changes to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants