Skip to content

Commit 6a41778

Browse files
fix: doc build on windows for poetry projects (#1021)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 8a0165e commit 6a41778

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

_doc-build-windows/action.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,16 @@ runs:
375375
run: |
376376
.venv\Scripts\Activate.ps1
377377
if ($env:BUILD_BACKEND -eq "poetry") {
378+
$arguments = @("install")
379+
378380
if ($env:GROUP_DEPENDENCIES_NAME) {
379-
poetry install --with "$env:GROUP_DEPENDENCIES_NAME" --extras "$env:OPTIONAL_DEPENDENCIES_NAME"
380-
} else {
381-
poetry install --extras "$env:OPTIONAL_DEPENDENCIES_NAME"
381+
$arguments += @("--with", "$env:GROUP_DEPENDENCIES_NAME")
382382
}
383+
if ($env:OPTIONAL_DEPENDENCIES_NAME) {
384+
$arguments += @("--extras", "$env:OPTIONAL_DEPENDENCIES_NAME")
385+
}
386+
387+
poetry @arguments
383388
}
384389
else {
385390
# Optional dependencies

doc/source/changelog/1021.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Doc build on windows for poetry projects

0 commit comments

Comments
 (0)