Skip to content

Commit

Permalink
Let pipdeptree resolves the Python executable
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed May 22, 2024
1 parent 0836b81 commit 3588170
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,9 @@ jobs:
- name: Install project with Poetry
run: |
poetry install --only main --no-interaction
# XXX We explicitly provide the Python binary from the virtualenv so pipdeptree will restrict its dependency tree
# to virtualenv. See: https://github.com/tox-dev/pipdeptree/issues/130#issuecomment-2029280908
- name: Run pipdeptree for debug
run: >
pipdeptree --python "$( poetry env info --executable )"
${{ needs.project-metadata.outputs.package_name
pipdeptree --python auto ${{ needs.project-metadata.outputs.package_name
&& format('--packages {0}', needs.project-metadata.outputs.package_name)}}
- name: Create dir structure
run: |
Expand All @@ -245,8 +242,7 @@ jobs:
# See: https://github.com/tox-dev/pipdeptree/issues/107
- name: Generate graph
run: >
pipdeptree --python "$( poetry env info --executable )"
${{ needs.project-metadata.outputs.package_name
pipdeptree --python auto ${{ needs.project-metadata.outputs.package_name
&& format('--packages {0}', needs.project-metadata.outputs.package_name)}}
--mermaid > ${{ inputs.dependency-graph-output }}
- uses: peter-evans/create-pull-request@v6.0.5
Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
This version is not released yet and is under active development.
```

- Let `pipdeptree` resolve the Python executable to use in a virtual environment.

## [3.4.7 (2024-04-26)](https://github.com/kdeldycke/workflows/compare/v3.4.6...v3.4.7)

- Update dependencies.
Expand Down

0 comments on commit 3588170

Please sign in to comment.