Skip to content

Commit

Permalink
use --reverse flag to get the package required version
Browse files Browse the repository at this point in the history
  • Loading branch information
amdomanska committed Nov 16, 2022
1 parent 5fa3dc9 commit a3ed5b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@

all = df_dep.merge(right=df_upgrade, how="left", left_on="package.package_name", right_on="name")
all_short = all.drop(columns=["name","version", "latest_filetype", "editable_project_location"])
all_short = all_short[["package.key","package.package_name","package.installed_version","latest_version","dependencies"]]
all_short = all_short[["package.key","package.package_name","package.installed_version","package.required_version","latest_version","dependencies"]]
all_short.to_csv("dependencies_analysis/dependencies.csv", index=False)
2 changes: 1 addition & 1 deletion dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
rm -rf dependencies_analysis
mkdir dependencies_analysis

pipdeptree --json -l >> dependencies_analysis/dependencies.json
pipdeptree --json --reverse >> dependencies_analysis/dependencies.json
pip list --format json -o >> dependencies_analysis/upgrade.json

0 comments on commit a3ed5b4

Please sign in to comment.