Skip to content

Commit

Permalink
Sync and lock
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and github-actions[bot] committed Jul 25, 2024
1 parent 3a823c4 commit a158124
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: 2024.1.1-176-g3f08a30
_commit: 2024.1.1-178-g3f1b455
_src_path: gh:blakeNaccarato/copier-python
actions_runner: ubuntu-22.04
active: true
Expand Down
26 changes: 16 additions & 10 deletions scripts/Sync-Py.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,22 @@ if (!$CI -and !$Devcontainer -and (Get-Command -Name 'code' -ErrorAction 'Ignore
"--install-extension=$Pylance@$Env:PYRIGHT_PYTHON_PYLANCE_VERSION"
)
code @Install
$PylanceExtension = Get-ChildItem -Path $LocalExtensions -Filter "$Pylance-*"
# Remove other files
Get-ChildItem -Path $LocalExtensions |
Where-Object { Compare-Object $_ $PylanceExtension } |
Remove-Item -Recurse
# Remove local Pylance bundled stubs
$PylanceExtension |
ForEach-Object { Get-ChildItem "$_/dist/bundled" -Filter '*stubs' } |
Remove-Item -Recurse
'INSTALLED PYLANCE LOCALLY' | Write-Progress -Done
if (!(Test-Path $LocalExtensions)) {
'COULD NOT INSTALL PYLANCE LOCALLY' | Write-Progress -Info
'PROCEEDING WITHOUT LOCAL PYLANCE INSTALL' | Write-Progress -Done
}
else {
$PylanceExtension = Get-ChildItem -Path $LocalExtensions -Filter "$Pylance-*"
# Remove other files
Get-ChildItem -Path $LocalExtensions |
Where-Object { Compare-Object $_ $PylanceExtension } |
Remove-Item -Recurse
# Remove local Pylance bundled stubs
$PylanceExtension |
ForEach-Object { Get-ChildItem "$_/dist/bundled" -Filter '*stubs' } |
Remove-Item -Recurse
'INSTALLED PYLANCE LOCALLY' | Write-Progress -Done
}
}
'FINDING UV' | Write-Progress
$uvVersionRe = Get-Content 'requirements/uv.txt' | Select-String -Pattern '^uv==(.+)$'
Expand Down

0 comments on commit a158124

Please sign in to comment.