Skip to content

Commit d2ee74f

Browse files
committed
Remove pip's vendoring in favor of setup.cfg
As rest of fetchcode does not use vendoring, it has been dopped alltogether. Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
1 parent 61dd1dd commit d2ee74f

File tree

337 files changed

+5
-132705
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

337 files changed

+5
-132705
lines changed

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ install_requires =
2626
packageurl-python
2727
requests
2828
six
29+
tenacity
2930
setup_requires = setuptools_scm[toml] >= 4
3031

3132
[options.packages.find]

src/fetchcode/vcs/pip/_internal/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from itertools import groupby
44
from typing import TYPE_CHECKING, Dict, List
55

6-
from fetchcode.vcs.pip._vendor.requests.models import Request, Response
6+
from requests.models import Request, Response
77

88
if TYPE_CHECKING:
99
from hashlib import _Hash

src/fetchcode/vcs/pip/_internal/utils/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def has_tls() -> bool:
1919
except ImportError:
2020
pass
2121

22-
from fetchcode.vcs.pip._vendor.urllib3.util import IS_PYOPENSSL
22+
from urllib3.util import IS_PYOPENSSL
2323

2424
return IS_PYOPENSSL
2525

src/fetchcode/vcs/pip/_internal/utils/logging.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@
1717
import dummy_threading as threading # type: ignore
1818

1919

20-
try:
21-
from fetchcode.vcs.pip._vendor import colorama
22-
# Lots of different errors can come from this, including SystemError and
23-
# ImportError.
24-
except Exception:
25-
colorama = None
20+
colorama = None
2621

2722

2823
_log_state = threading.local()

src/fetchcode/vcs/pip/_internal/utils/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
cast,
3434
)
3535

36-
from fetchcode.vcs.pip._vendor.tenacity import retry, stop_after_delay, wait_fixed
36+
from tenacity import retry, stop_after_delay, wait_fixed
3737

3838
from fetchcode.vcs.pip._internal.exceptions import CommandError
3939
from fetchcode.vcs.pip._internal.utils.compat import WINDOWS, stdlib_pkgs

src/fetchcode/vcs/pip/_vendor/README.rst

Lines changed: 0 additions & 153 deletions
This file was deleted.

src/fetchcode/vcs/pip/_vendor/__init__.py

Lines changed: 0 additions & 111 deletions
This file was deleted.

src/fetchcode/vcs/pip/_vendor/appdirs.LICENSE.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)