Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Mar 13, 2024
1 parent 92407b1 commit 2575fe4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .tools/sync.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ function Main {
# ! Invoke-Expression "$Py -m copier update --defaults --vcs-ref $(git rev-parse HEAD:submodules/template)"
#! if ($Env:TEST) { Invoke-Expression "$Py -m pytest" }
elseif ($Env:COMBINE) {
Invoke-Expression "$Py -m boilercv_tools combine-locks"
run "$tools combine-locks"
}
elseif ($Env:TEST) {
run "pytest"
}
return
}
Expand All @@ -43,7 +46,7 @@ function Main {
function inst {
Param([Parameter(Mandatory, ValueFromPipeline)][string]$String)
if ($Env:CI) {
run "$Py -m uv pip install --system --break-system-packages $String"
run "uv pip install --system --break-system-packages $String"
}
else {
run "uv pip install $String"
Expand All @@ -52,7 +55,7 @@ function Main {
function sync {
Param([Parameter(Mandatory, ValueFromPipeline)][string]$String)
if ($Env:CI) {
run "$Py -m uv pip sync --system --break-system-packages $String"
run "uv pip sync --system --break-system-packages $String"
}
else {
run "uv pip sync $String"
Expand Down

0 comments on commit 2575fe4

Please sign in to comment.