Skip to content

Commit

Permalink
Reference pipeline dep as boilercv-pipeline, boilercv_pipeline el…
Browse files Browse the repository at this point in the history
…sewhere.
  • Loading branch information
blakeNaccarato committed Jan 17, 2025
1 parent 19a42f6 commit e5aa1ef
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
11 changes: 8 additions & 3 deletions dev.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ if ($IsWindows) {
[console]::InputEncoding = [console]::OutputEncoding = [System.Text.UTF8Encoding]::new()
}

# ? Set aliases
@{
'iuv' = 'Invoke-Uv'
'ij' = 'Invoke-Just'
'dev' = 'boilercv-dev'
'pipeline' = 'boilercv-pipeline'
}.GetEnumerator() | ForEach-Object { Set-Alias -Name $_.Key -Value $_.Value }

function Enter-Venv {
<#.SYNOPSIS
Enter a local Python virtual environment.#>
Expand Down Expand Up @@ -192,8 +200,6 @@ function Invoke-Uv {
}
Process { if ($Run) { uv run --no-sync --python $PythonVersion $Run } }
}
Set-Alias -Name 'iuv' -Value 'Invoke-Uv'
Set-Alias -Name 'dev' -Value 'boilercv-dev'

function Invoke-Just {
<#.SYNOPSIS
Expand Down Expand Up @@ -232,7 +238,6 @@ function Invoke-Just {
}
Process { if ($Run) { Invoke-Uv @InvokeUvArgs -- just @Run } else { Invoke-Uv @InvokeUvArgs -- just } }
}
Set-Alias -Name 'ij' -Value 'Invoke-Just'

function Sync-Template {
<#.SYNOPSIS
Expand Down
10 changes: 5 additions & 5 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set dotenv-load
dev := '. ./dev.ps1; Initialize-Shell; '
devpy := dev + 'dev'

sync-contrib:
{{dev}} iuv -Sync -Update

boilercv-preview-write file $BOILERCV_PREVIEW='true' $BOILERCV_WRITE='true':
{{dev}} iuv python {{file}}
boilercv-debug-preview-write file $BOILERCV_DEBUG='true' $BOILERCV_PREVIEW='true' $BOILERCV_WRITE='true':
Expand All @@ -15,9 +18,9 @@ update-binder:
(uv pip compile --config-file requirements/binder_uv.toml \
--constraint requirements/binder_constraints.in \
--override requirements/binder_overrides.txt \
--exclude-newer (Get-Date).ToUniversalTime().ToString(o) \
--exclude-newer (Get-Date).ToUniversalTime().ToString('o') \
requirements/binder.in \
) -Replace opencv-python, opencv-python-headless | Set-Content requirements.txt
) -Replace 'opencv-python', 'opencv-python-headless' | Set-Content requirements.txt

dvc-dag:
{{dev}} (iuv dvc dag --md) -Replace (mermaid, '{mermaid}') | \
Expand All @@ -41,8 +44,5 @@ remove-empty-data-folders:
( Get-ChildItem -Path $_ -Recurse -File | Measure-Object ).Count -eq 0 \
} | Remove-Item -Recurse -Force

sync-contrib:
{{dev}} iuv -Sync -Update

sync-local-dev-configs:
{{dev}} {{devpy}} sync-local-dev-configs
2 changes: 1 addition & 1 deletion packages/boilercore
2 changes: 1 addition & 1 deletion packages/pipeline/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["flit_core==3.9.0"]
build-backend = "flit_core.buildapi"

[project]
name = "boilercv_pipeline"
name = "boilercv-pipeline"
version = "0.0.0"
description = "Data pipeline"
dependencies = [
Expand Down
6 changes: 3 additions & 3 deletions requirements/binder.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
--editable boilercv[cv] @ .
--editable dev @ packages/_dev
--editable boilercv-dev @ packages/_dev
--editable boilercv-pipeline[cv] @ packages/pipeline
--editable boilercine @ packages/boilercine
--editable boilercore @ packages/boilercore
--editable context-models @ packages/context_models
--editable cachier @ packages/cachier
--editable context_models @ packages/context_models
--editable boilercv_pipeline[cv] @ packages/pipeline
# Binder's implicit additional requirements via JupyterHub as of 2024/07/02
notebook==7.2.2
jupyter-resource-usage==1.0.2
Expand Down

0 comments on commit e5aa1ef

Please sign in to comment.