Skip to content

Commit

Permalink
Use Virtual Environment to read Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wba2hi committed Dec 12, 2023
1 parent dfab3d8 commit 94b97f8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/dash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@ jobs:
# taken from here: https://github.com/eclipse/dash-licenses#example-python
- name: Create Dash Dependency Report
run: |
cat kuksa-client/requirements.txt | grep -v \# \
python3 -m venv ./.venv/kuksa-client
source ./.venv/kuksa-client/bin/activate
pip install --upgrade pip
pip install -r kuksa-client/requirements.txt
deactivate
python3 -m venv ./.venv/pipdeptree
source ./.venv/pipdeptree/bin/activate
pip install pipdeptree
pipdeptree -a -f --python ./.venv/kuksa-client/bin/python \
| sed -E -e 's|([^= ]+)==([^= ]+)|pypi/pypi/-/\1/\2|' -e 's| ||g' \
| sort | uniq \
> dependencies.txt
Expand Down

0 comments on commit 94b97f8

Please sign in to comment.