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 93baeaf
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 93baeaf

Please sign in to comment.