Skip to content

Commit 2482e2d

Browse files
authored
Merge pull request #4861 from pypa/fix/vendoring
2 parents 1122940 + 6e3fadc commit 2482e2d

File tree

192 files changed

+585
-1116
lines changed

Some content is hidden

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

192 files changed

+585
-1116
lines changed

pipenv/patched/notpip/COPYING

-14
This file was deleted.

pipenv/patched/notpip/LICENSE

-31
This file was deleted.

pipenv/patched/notpip/LICENSE.APACHE

-177
This file was deleted.

pipenv/patched/notpip/LICENSE.BSD

-23
This file was deleted.

pipenv/patched/notpip/LICENSE.md

-29
This file was deleted.

pipenv/patched/notpip/LICENSE.txt

-21
This file was deleted.

pipenv/patched/notpip/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# __file__ is pip-*.whl/pip/__main__.py
1616
# first dirname call strips of '/__main__.py', second strips off '/pip'
1717
# Resulting path is the name of the wheel itself
18-
# Add that to sys.path so we can import pipenv.patched.notpip
18+
# Add that to sys.path so we can import pip
1919
path = os.path.dirname(os.path.dirname(__file__))
2020
sys.path.insert(0, path)
2121

pipenv/patched/notpip/_internal/cli/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def main(args: Optional[List[str]] = None) -> int:
5959
sys.exit(1)
6060

6161
# Needed for locale.getpreferredencoding(False) to work
62-
# in pip._internal.utils.encoding.auto_decode
62+
# in pipenv.patched.notpip._internal.utils.encoding.auto_decode
6363
try:
6464
locale.setlocale(locale.LC_ALL, "")
6565
except locale.Error as e:

pipenv/patched/notpip/_internal/commands/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# The ordering matters for help display.
1414
# Also, even though the module path starts with the same
15-
# "pip._internal.commands" prefix in each case, we include the full path
15+
# "pipenv.patched.notpip._internal.commands" prefix in each case, we include the full path
1616
# because it makes testing easier (specifically when modifying commands_dict
1717
# in test setup / teardown by adding info for a FakeCommand class defined
1818
# in a test-related module).

pipenv/patched/notpip/_internal/commands/debug.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ def get_module_from_module_name(module_name: str) -> ModuleType:
5959
module_name = 'pkg_resources'
6060

6161
__import__(
62-
f'pip._vendor.{module_name}',
62+
f'pipenv.patched.notpip._vendor.{module_name}',
6363
globals(),
6464
locals(),
6565
level=0
6666
)
67-
return getattr(pip._vendor, module_name)
67+
return getattr(pipenv.patched.notpip._vendor, module_name)
6868

6969

7070
def get_vendor_version_from_module(module_name: str) -> Optional[str]:
@@ -194,8 +194,8 @@ def run(self, options: Values, args: List[str]) -> int:
194194
show_value("'cert' config value", ca_bundle_info(self.parser.config))
195195
show_value("REQUESTS_CA_BUNDLE", os.environ.get('REQUESTS_CA_BUNDLE'))
196196
show_value("CURL_CA_BUNDLE", os.environ.get('CURL_CA_BUNDLE'))
197-
show_value("pip._vendor.certifi.where()", where())
198-
show_value("pip._vendor.DEBUNDLED", pip._vendor.DEBUNDLED)
197+
show_value("pipenv.patched.notpip._vendor.certifi.where()", where())
198+
show_value("pipenv.patched.notpip._vendor.DEBUNDLED", pipenv.patched.notpip._vendor.DEBUNDLED)
199199

200200
show_vendor_versions()
201201

pipenv/patched/notpip/_internal/exceptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class UninstallationError(PipError):
3232
class NoneMetadataError(PipError):
3333
"""
3434
Raised when accessing "METADATA" or "PKG-INFO" metadata for a
35-
pip._vendor.pkg_resources.Distribution object and
35+
pipenv.patched.notpip._vendor.pkg_resources.Distribution object and
3636
`dist.has_metadata('METADATA')` returns True but
3737
`dist.get_metadata('METADATA')` returns None (and similarly for
3838
"PKG-INFO").

pipenv/patched/notpip/_internal/index/package_finder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ def find_requirement(
891891

892892
def _format_versions(cand_iter: Iterable[InstallationCandidate]) -> str:
893893
# This repeated parse_version and str() conversion is needed to
894-
# handle different vendoring sources from pipenv.patched.notpip and pkg_resources.
894+
# handle different vendoring sources from pip and pkg_resources.
895895
# If we stop using the pkg_resources provided specifier and start
896896
# using our own, we can drop the cast to str().
897897
return ", ".join(sorted(

pipenv/patched/notpip/_internal/utils/_log.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def init_logging() -> None:
3232
"""Register our VerboseLogger and VERBOSE log level.
3333
3434
Should be called before any calls to getLogger(),
35-
i.e. in pip._internal.__init__
35+
i.e. in pipenv.patched.notpip._internal.__init__
3636
"""
3737
logging.setLoggerClass(VerboseLogger)
3838
logging.addLevelName(VERBOSE, "VERBOSE")

0 commit comments

Comments
 (0)