Skip to content

Conversation

@Yvictor
Copy link

@Yvictor Yvictor commented Oct 31, 2025

πŸ“¦ Summary

This PR migrates the project from pip to uv for modern, fast package management.

πŸš€ Changes

Package Management Migration

  • βœ… Added pyproject.toml with complete project metadata
  • βœ… Generated uv.lock for reproducible dependency resolution
  • βœ… Removed requirements.txt (dependencies now in pyproject.toml)
  • βœ… Added .python-version to .gitignore

Documentation Updates

  • βœ… Updated README.md with simplified uv commands
  • βœ… Updated README_CN.md with simplified uv commands
  • βœ… Removed pip installation instructions
  • βœ… Simplified all run commands (e.g., uv run main.py instead of cd dir && python script.py)

Script Updates

  • βœ… Updated data/get_daily_price.py for uv compatibility
  • βœ… Updated data/get_interdaily_price.py for uv compatibility

πŸ’‘ Benefits

  1. 10-100x Faster: uv is significantly faster than pip
  2. Unified Management: Single tool for Python versions, virtual environments, and packages
  3. Reproducible: uv.lock ensures consistent dependencies across all environments
  4. Modern: PEP-compliant pyproject.toml standard
  5. Simplified Commands: Direct script execution without changing directories

πŸ“ New Workflow

# Install dependencies
uv sync

# Run scripts (simplified)
uv run main.py
uv run data/get_daily_price.py
uv run agent_tools/start_mcp_services.py

# Manage dependencies
uv add package-name
uv remove package-name

πŸ§ͺ Testing

All packages have been successfully installed and tested:

  • βœ… langchain==1.0.2
  • βœ… langchain-openai==1.0.1
  • βœ… langchain-mcp-adapters>=0.1.0
  • βœ… fastmcp==2.12.5

Total: 85 packages installed and resolved.

πŸ”— References

@Yvictor Yvictor force-pushed the main branch 2 times, most recently from f9a4a90 to cc92f16 Compare October 31, 2025 10:30
@yefangyong
Copy link

That's great! Just when I had this idea and was about to start developing it, I found someone had already submitted a PR an hour earlier. πŸ˜‚

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.

2 participants