Skip to content

Commit 59ff04d

Browse files
Pin uv to 0.5.2 due to breakage in astral-sh/uv#9094
1 parent 6f7e3ce commit 59ff04d

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

.github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
submodules: True
2121
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
2222
with:
23-
version: "0.4.15"
23+
version: "0.5.2"
2424
enable-cache: true
2525
- run: "./Invoke-Uv.ps1"
2626
- uses: "actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b" # v4.3.4
@@ -37,7 +37,7 @@ jobs:
3737
submodules: True
3838
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
3939
with:
40-
version: "0.4.15"
40+
version: "0.5.2"
4141
enable-cache: true
4242
- run: "./Invoke-Uv.ps1 sphinx-build -EaT docs _site"
4343
- uses: "actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa" # v3.0.1
@@ -62,7 +62,7 @@ jobs:
6262
submodules: True
6363
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
6464
with:
65-
version: "0.4.15"
65+
version: "0.5.2"
6666
enable-cache: true
6767
- run: "./Invoke-Uv.ps1 ruff check --no-fix --output-format github ."
6868
fawltydeps:
@@ -73,7 +73,7 @@ jobs:
7373
submodules: True
7474
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
7575
with:
76-
version: "0.4.15"
76+
version: "0.5.2"
7777
enable-cache: true
7878
- run: ". ./dev.ps1 && iuv pre-commit run fawltydeps-src && iuv pre-commit run fawltydeps-dev"
7979
pyright:
@@ -84,7 +84,7 @@ jobs:
8484
submodules: True
8585
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
8686
with:
87-
version: "0.4.15"
87+
version: "0.5.2"
8888
enable-cache: true
8989
- run: "./Invoke-Uv.ps1"
9090
- uses: "jakebailey/pyright-action@3bdde3b31d26f0f1f5de051b1fbd7a536a9a4e7f" # v2.3.1
@@ -111,7 +111,7 @@ jobs:
111111
submodules: True
112112
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
113113
with:
114-
version: "0.4.15"
114+
version: "0.5.2"
115115
enable-cache: true
116116
# ! https://github.com/pytest-dev/pytest-cov/issues/479#issuecomment-1247444988
117117
- if: startsWith(matrix.runner, 'ubuntu') && matrix.python == '3.11'

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: "actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332" # v4.1.7
2222
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
2323
with:
24-
version: "0.4.15"
24+
version: "0.5.2"
2525
enable-cache: true
2626
- run: "./Invoke-Uv.ps1 -Build"
2727
- uses: actions/attest-build-provenance@5e9cb68e95676991667494a6a4e59b8a2f13e1d0 # v1.3.3

.uv-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.15
1+
0.5.2

dev.ps1

+5-2
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,14 @@ function Find-Pattern {
3838
function Install-Uv {
3939
<#.SYNOPSIS
4040
Install `uv`.#>
41-
Param([switch]$Update)
41+
Param(
42+
[switch]$Update,
43+
[string]$UvVersion = (Get-Content '.uv-version')
44+
)
4245
$Env:PATH = "$HOME/.cargo/bin$([System.IO.Path]::PathSeparator)$Env:PATH"
4346
if ($Update) {
4447
if (Get-Command 'uv' -ErrorAction 'Ignore') {
45-
try { return uv self update }
48+
try { return uv self update $UvVersion }
4649
catch [System.Management.Automation.NativeCommandExitException] {}
4750
}
4851
if ($IsWindows) { Invoke-RestMethod 'https://astral.sh/uv/install.ps1' | Invoke-Expression }

0 commit comments

Comments
 (0)