Skip to content

Commit

Permalink
Pin uv to 0.5.2 due to breakage in astral-sh/uv#9094
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Nov 21, 2024
1 parent 6f7e3ce commit 59ff04d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
submodules: True
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
with:
version: "0.4.15"
version: "0.5.2"
enable-cache: true
- run: "./Invoke-Uv.ps1"
- uses: "actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b" # v4.3.4
Expand All @@ -37,7 +37,7 @@ jobs:
submodules: True
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
with:
version: "0.4.15"
version: "0.5.2"
enable-cache: true
- run: "./Invoke-Uv.ps1 sphinx-build -EaT docs _site"
- uses: "actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa" # v3.0.1
Expand All @@ -62,7 +62,7 @@ jobs:
submodules: True
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
with:
version: "0.4.15"
version: "0.5.2"
enable-cache: true
- run: "./Invoke-Uv.ps1 ruff check --no-fix --output-format github ."
fawltydeps:
Expand All @@ -73,7 +73,7 @@ jobs:
submodules: True
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
with:
version: "0.4.15"
version: "0.5.2"
enable-cache: true
- run: ". ./dev.ps1 && iuv pre-commit run fawltydeps-src && iuv pre-commit run fawltydeps-dev"
pyright:
Expand All @@ -84,7 +84,7 @@ jobs:
submodules: True
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
with:
version: "0.4.15"
version: "0.5.2"
enable-cache: true
- run: "./Invoke-Uv.ps1"
- uses: "jakebailey/pyright-action@3bdde3b31d26f0f1f5de051b1fbd7a536a9a4e7f" # v2.3.1
Expand All @@ -111,7 +111,7 @@ jobs:
submodules: True
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
with:
version: "0.4.15"
version: "0.5.2"
enable-cache: true
# ! https://github.com/pytest-dev/pytest-cov/issues/479#issuecomment-1247444988
- if: startsWith(matrix.runner, 'ubuntu') && matrix.python == '3.11'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: "actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332" # v4.1.7
- uses: "astral-sh/setup-uv@9f1f1fece28798fe5e7ece00f4243abe886974b2" # v3.0.0
with:
version: "0.4.15"
version: "0.5.2"
enable-cache: true
- run: "./Invoke-Uv.ps1 -Build"
- uses: actions/attest-build-provenance@5e9cb68e95676991667494a6a4e59b8a2f13e1d0 # v1.3.3
Expand Down
2 changes: 1 addition & 1 deletion .uv-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.15
0.5.2
7 changes: 5 additions & 2 deletions dev.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ function Find-Pattern {
function Install-Uv {
<#.SYNOPSIS
Install `uv`.#>
Param([switch]$Update)
Param(
[switch]$Update,
[string]$UvVersion = (Get-Content '.uv-version')
)
$Env:PATH = "$HOME/.cargo/bin$([System.IO.Path]::PathSeparator)$Env:PATH"
if ($Update) {
if (Get-Command 'uv' -ErrorAction 'Ignore') {
try { return uv self update }
try { return uv self update $UvVersion }
catch [System.Management.Automation.NativeCommandExitException] {}
}
if ($IsWindows) { Invoke-RestMethod 'https://astral.sh/uv/install.ps1' | Invoke-Expression }
Expand Down

0 comments on commit 59ff04d

Please sign in to comment.