Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Mar 12, 2024
1 parent 09cdb00 commit dd24322
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .tools/boilercv_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def sync():
DEV = Path(".tools/requirements/dev.in")
NODEPS = Path(".tools/requirements/nodeps.in")
LOCK = Path(".lock") / RUNNER
print("welp2", LOCK) # noqa: T201
LOCK.mkdir(exist_ok=True, parents=True)
print("welp3", LOCK) # noqa: T201


@app.command()
Expand Down Expand Up @@ -106,7 +108,9 @@ def lock(highest: bool = False):
*([] if highest else ["dev"]),
])
).with_suffix(".txt")
print("welp2", path.as_posix()) # noqa: T201
print("welp4", path) # noqa: T201
print("welp5", LOCK.exists()) # noqa: T201
print("welp6", path.exists()) # noqa: T201
path.write_text(
encoding="utf-8",
data="\n".join([
Expand Down
5 changes: 2 additions & 3 deletions .tools/sync.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@ function Main {
$ErrorActionPreference = 'Stop'
$PSNativeCommandUseErrorActionPreference = $true
pwsh --version
Get-ChildItem Env:
Invoke-Expression "$Py -m uv pip install --system --break-system-packages -e .tools/."
Invoke-Expression "$Py -m copier update --defaults --vcs-ref $(git rev-parse HEAD:submodules/template)"
# ! Invoke-Expression "$Py -m copier update --defaults --vcs-ref $(git rev-parse HEAD:submodules/template)"
Invoke-Expression "$Py -m boilercv_tools sync"
if ($Env:LOCK) {
Invoke-Expression "$Py -m boilercv_tools lock"
Invoke-Expression "$Py -m uv pip sync --system --break-system-packages $(Get-ChildItem $lock)"
Invoke-Expression "$Py -m boilercv_tools lock --highest"
}
if ($Env:TEST) { Invoke-Expression "$Py -m pytest" }
#! if ($Env:TEST) { Invoke-Expression "$Py -m pytest" }
elseif ($Env:COMBINE) {
Invoke-Expression "$Py -m boilercv_tools combine-locks"
}
Expand Down

0 comments on commit dd24322

Please sign in to comment.