Skip to content

feat: add support for uv and conda#4

Merged
ox01024 merged 4 commits into
masterfrom
feat/add-uv-conda-support
Dec 16, 2025
Merged

feat: add support for uv and conda#4
ox01024 merged 4 commits into
masterfrom
feat/add-uv-conda-support

Conversation

@ox01024

@ox01024 ox01024 commented Dec 16, 2025

Copy link
Copy Markdown
Owner

Closes #3

实现内容 (How)

  1. UV 支持 (src/sources/uv.rs):

    • 实现策略: 使用 uv.toml 配置文件而非环境变量。
    • 逻辑: 优先查找并修改当前目录下的 uv.toml (项目级),若不存在则修改全局配置 (如 ~/.config/uv/uv.toml)。
    • 技术决策说明: 虽然 支持一下uv #3 提到了环境变量,但由于 cmirror 作为子进程无法持久化修改父 Shell 的环境变量,且修改 Shell 配置文件(如 .zshrc)侵入性过强,因此选择官方支持的 uv.toml 配置文件方案。这与其他工具(npm, pip)的处理方式保持一致,确保配置的持久性和安全性。
  2. Conda 支持 (src/sources/conda.rs):

    • 逻辑:操作 ~/.condarc
    • 操作:使用 Regex 自动适配 default_channelscustom_channels,确保 conda-forge 等频道也能指向对应的镜像源。

原因 (Why)

  • UV: 支持高性能 Python 包管理器。采用配置文件方案,兼顾了全局便利性和项目隔离需求。
  • Conda: 自动化复杂的频道配置,解决手动修改易出错的问题。

@openhands-ai

openhands-ai Bot commented Dec 16, 2025

Copy link
Copy Markdown

Looks like there are a few issues preventing this PR from being merged!

  • GitHub Actions are failing:
    • Rust CI

If you'd like me to help, just leave a comment, like

@OpenHands please fix the failing actions on PR #4 at branch `feat/add-uv-conda-support`

Feel free to include any additional details that might help me get this PR into a better state.

You can manage your notification settings

@ox01024

ox01024 commented Dec 16, 2025

Copy link
Copy Markdown
Owner Author

LGTM

@ox01024 ox01024 merged commit 8b249b3 into master Dec 16, 2025
4 checks passed
@ox01024 ox01024 deleted the feat/add-uv-conda-support branch December 16, 2025 16:45
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.

支持一下uv

1 participant