generated from ScoopInstaller/BucketTemplate
/
pipx-poetry.json
56 lines (56 loc) · 2.22 KB
/
pipx-poetry.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"homepage": "https://github.com/pypa/pipx",
"description": "Install and Run Python Applications in Isolated Environments",
"license": "MIT",
"version": "1.5.0",
"url": "https://github.com/pypa/pipx/releases/download/1.5.0/pipx.pyz",
"hash": "d307772eb52df8f4dd7b38523adbe2105a61b5e90c1be34e2f8007be9bd4001f",
"post_install": [
"pipx install poetry",
"poetry config cache-dir $dir\\Cache",
"poetry source add --default mirrors https://pypi.tuna.tsinghua.edu.cn/simple/",
"foreach ($folder in @('pypoetry')) {",
" if (Test-Path \"$env:USERPROFILE\\$folder\") {",
" $runtimeCache = \"$env:USERPROFILE\\$folder\"",
" $runtimeCachePersist = \"$persist_dir\\USERPROFILE\\$folder\"",
" } elseif (Test-Path \"$env:LOCALAPPDATA\\$folder\") {",
" $runtimeCache = \"$env:LOCALAPPDATA\\$folder\"",
" $runtimeCachePersist = \"$persist_dir\\LOCALAPPDATA\\$folder\"",
" } elseif (Test-Path \"$env:APPDATA\\$folder\") {",
" $runtimeCache = \"$env:APPDATA\\$folder\"",
" $runtimeCachePersist = \"$persist_dir\\APPDATA\\$folder\"",
" } else {continue}",
" if (Test-Path $runtimeCachePersist) {",
" Remove-Item $runtimeCache -Force -Recurse -ErrorAction SilentlyContinue",
" New-Item -Type Junction -Path $runtimeCache -Target $runtimeCachePersist | Out-Null",
" } else {",
" mkdir $runtimeCache -ErrorAction SilentlyContinue",
" Move-Item $runtimeCache $runtimeCachePersist -Force",
" New-Item -Type Junction -Path $runtimeCache -Target $runtimeCachePersist | Out-Null",
" }",
"}"
],
"persist": [
"Cache",
"venvs"
],
"env_set": {
"PIPX_HOME": "$dir",
"PIPX_BIN_DIR": "$scoopdir\\shims",
"PYTHONUTF8": "1"
},
"bin": [
[
"python.exe",
"pipx",
"$dir\\pipx.pyz"
]
],
"checkver": "github",
"autoupdate": {
"url": "https://github.com/pypa/pipx/releases/download/$version/pipx.pyz",
"hash": {
"mode": "download"
}
}
}