-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify patch for new version of pipdeptree
- Loading branch information
Showing
1 changed file
with
15 additions
and
21 deletions.
There are no files selected for viewing
36 changes: 15 additions & 21 deletions
36
tasks/vendoring/patches/vendor/pipdeptree-update-import.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
diff --git a/pipenv/vendor/pipdeptree/__main__.py b/pipenv/vendor/pipdeptree/__main__.py | ||
index 4216676,e5fe226..0000000 | ||
index 4216676..a48fc1a 100644 | ||
--- a/pipenv/vendor/pipdeptree/__main__.py | ||
+++ b/pipenv/vendor/pipdeptree/__main__.py | ||
@@@ -5,11 -6,17 +6,17 @@@ import o | ||
import sys | ||
from typing import Sequence | ||
@@ -2,9 +2,16 @@ | ||
|
||
+ pardir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | ||
+ # for finding pipdeptree itself | ||
+ sys.path.append(pardir) | ||
+ # for finding stuff in vendor and patched | ||
+ sys.path.append(os.path.dirname(os.path.dirname(pardir))) | ||
+ | ||
-from pipdeptree._cli import get_options | ||
-from pipdeptree._discovery import get_installed_distributions | ||
-from pipdeptree._models import PackageDAG | ||
-from pipdeptree._render import render | ||
-from pipdeptree._validate import validate | ||
+from pipenv.vendor.pipdeptree._cli import get_options | ||
+from pipenv.vendor.pipdeptree._discovery import get_installed_distributions | ||
+from pipenv.vendor.pipdeptree._models import PackageDAG | ||
+from pipenv.vendor.pipdeptree._render import render | ||
+from pipenv.vendor.pipdeptree._validate import validate | ||
from __future__ import annotations | ||
|
||
+import os | ||
import sys | ||
from typing import Sequence | ||
|
||
def main(args: Sequence[str] | None = None) -> None | int: | ||
+pardir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | ||
+# for finding pipdeptree itself | ||
+sys.path.append(pardir) | ||
+# for finding stuff in vendor and patched | ||
+sys.path.append(os.path.dirname(os.path.dirname(pardir))) | ||
+ | ||
from pipenv.vendor.pipdeptree._cli import get_options | ||
from pipenv.vendor.pipdeptree._discovery import get_installed_distributions | ||
from pipenv.vendor.pipdeptree._models import PackageDAG |