Skip to content

Commit

Permalink
Merge pull request #5343 from pypa/bump-pipdeptree
Browse files Browse the repository at this point in the history
Bump pipdeptree
  • Loading branch information
oz123 authored Sep 8, 2022
2 parents 7501668 + 3f05bf4 commit f2206e0
Show file tree
Hide file tree
Showing 10 changed files with 362 additions and 358 deletions.
1 change: 1 addition & 0 deletions news/5343.vendor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump version of pipdeptree
2 changes: 1 addition & 1 deletion pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2887,7 +2887,7 @@ def do_graph(project, bare=False, json=False, json_tree=False, reverse=False):

from pipenv.vendor import pipdeptree

pipdeptree_path = pipdeptree.__file__.rstrip("cdo")
pipdeptree_path = os.path.dirname(pipdeptree.__file__.rstrip("cdo"))
try:
python_path = project._which("python")
except AttributeError:
Expand Down
6 changes: 5 additions & 1 deletion pipenv/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,11 @@ def _get_requirements_for_package(cls, node, key_tree, parent=None, chain=None):
return d

def get_package_requirements(self, pkg=None):
from .vendor.pipdeptree import PackageDAG, flatten
from itertools import chain

from pipenv.vendor.pipdeptree import PackageDAG

flatten = chain.from_iterable

packages = self.get_installed_packages()
if pkg:
Expand Down
File renamed without changes.
Loading

0 comments on commit f2206e0

Please sign in to comment.