Skip to content

Commit 2500b04

Browse files
author
Mikachu2333
committed
fix(uv): 修复uv的setsrc
1 parent 7058968 commit 2500b04

File tree

3 files changed

+615
-23
lines changed

3 files changed

+615
-23
lines changed

src/recipe/lang/Python/rawstr4c.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@
44
* Generated by rawstr4c v1.0.0-2025/08/09
55
*/
66

7-
char RAWSTR_pl_python_uv_config_uv_format[] = "\x5b\x70\x69\x70\x5d\x0a\x69\x6e\x64\x65\x78\x2d\x75\x72\x6c\x20\x3d\x20\x22\x40\x75\x72\x6c\x40\x22";
7+
char RAWSTR_pl_python_uv_config_uv_format[] = "\x70\x79\x74\x68\x6f\x6e\x2d\x69\x6e\x73\x74\x61\x6c\x6c\x2d\x6d\x69\x72\x72\x6f\x72\x20\x3d\x20\x22\x40\x75\x72\x6c\x41\x40\x22\x5b\x70\x69\x70\x5d\x69\x6e\x64\x65\x78\x2d\x75\x72\x6c\x20\x3d\x20\x22\x40\x75\x72\x6c\x42\x40\x22";
88

9-
char RAWSTR_pl_python_uv_config_pyproject[] = "\x5b\x74\x6f\x6f\x6c\x2e\x75\x76\x2e\x70\x69\x70\x5d\x69\x6e\x64\x65\x78\x2d\x75\x72\x6c\x20\x3d\x20\x22\x40\x75\x72\x6c\x40\x22";
10-
11-
char RAWSTR_pl_python_uv_cpython_uv[] = "\x70\x79\x74\x68\x6f\x6e\x2d\x69\x6e\x73\x74\x61\x6c\x6c\x2d\x6d\x69\x72\x72\x6f\x72\x20\x3d\x20\x22\x40\x75\x72\x6c\x40\x22";
12-
13-
char RAWSTR_pl_python_uv_cpython_pyproj[] = "\x5b\x74\x6f\x6f\x6c\x2e\x75\x76\x5d\x70\x79\x74\x68\x6f\x6e\x2d\x69\x6e\x73\x74\x61\x6c\x6c\x2d\x6d\x69\x72\x72\x6f\x72\x20\x3d\x20\x22\x40\x75\x72\x6c\x40\x22";
9+
char RAWSTR_pl_python_uv_config_pyproject[] = "\x5b\x74\x6f\x6f\x6c\x2e\x75\x76\x5d\x70\x79\x74\x68\x6f\x6e\x2d\x69\x6e\x73\x74\x61\x6c\x6c\x2d\x6d\x69\x72\x72\x6f\x72\x20\x3d\x20\x22\x40\x75\x72\x6c\x41\x40\x22\x5b\x74\x6f\x6f\x6c\x2e\x75\x76\x2e\x70\x69\x70\x5d\x69\x6e\x64\x65\x78\x2d\x75\x72\x6c\x20\x3d\x20\x22\x40\x75\x72\x6c\x42\x40\x22";
1410

1511
char RAWSTR_pl_python_rye_config[] = "\x5b\x5b\x73\x6f\x75\x72\x63\x65\x73\x5d\x5d\x0a\x6e\x61\x6d\x65\x20\x3d\x20\x22\x40\x31\x40\x22\x0a\x75\x72\x6c\x20\x20\x3d\x20\x22\x40\x32\x40\x22";
1612

src/recipe/lang/Python/rawstr4c.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,20 @@
2525
### uv config source content (`uv.toml`)
2626

2727
```toml
28+
python-install-mirror = "@urlA@"
29+
2830
[pip]
29-
index-url = "@url@"
31+
index-url = "@urlB@"
3032
```
3133

3234
### uv config source content (`pyproject.toml`)
3335

34-
```toml
35-
[tool.uv.pip]
36-
index-url = "@url@"
37-
```
38-
39-
### uv config cpython source content (`uv.toml`)
40-
41-
```toml
42-
python-install-mirror = "@url@"
43-
```
44-
45-
### uv config cpython source content (`pyproject.toml`)
46-
4736
```toml
4837
[tool.uv]
49-
python-install-mirror = "@url@"
38+
python-install-mirror = "@urlA@"
39+
40+
[tool.uv.pip]
41+
index-url = "@urlB@"
5042
```
5143

5244
<br>

0 commit comments

Comments
 (0)