增加uv的python下载镜像#359
Open
Mikachu2333 wants to merge 7 commits into
Open
Conversation
1. 增加uv的python下载镜像 2. 现在uv会同时对pypi和python进行换源
|
Hi @Mikachu2333, ❤️ 感谢你的贡献!你的 PR 当前基于 |
1 similar comment
|
Hi @Mikachu2333, ❤️ 感谢你的贡献!你的 PR 当前基于 |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the Python uv recipe to support additional metadata and to configure both PyPI index sources and Python interpreter download mirrors via uv.toml.
Changes:
- Updated recipe metadata (last-updated dates, sauciers).
- Improved
getsrcbehavior with better missing-config handling and printingpython-install-mirrorwhen present. - Refactored
setsrcto write both[[index]]andpython-install-mirror, adding multiple GitHub Release mirror candidates for auto-selection.
Collaborator
Author
|
@ccmywish READY. |
Collaborator
Author
|
另,由于我的配置文件没有其他设置,所以我没有对复杂场景的edge case做过多考虑。遇到了再说 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
-scope问题描述
uv换源不完整,还需考虑Python解释器本身下载地址的换源 #309uv换源不完整,还需考虑Python解释器本身下载地址的换源 #358方案与实现
~/.config/uv/uv.toml中配置的改写,相关参考已写在代码内。