pip 25.1.1__py3-none-any.whl → 25.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pip/__init__.py +3 -3
- pip/_internal/__init__.py +2 -2
- pip/_internal/build_env.py +186 -94
- pip/_internal/cache.py +17 -15
- pip/_internal/cli/autocompletion.py +13 -4
- pip/_internal/cli/base_command.py +18 -7
- pip/_internal/cli/cmdoptions.py +57 -80
- pip/_internal/cli/command_context.py +4 -3
- pip/_internal/cli/index_command.py +11 -9
- pip/_internal/cli/main.py +3 -2
- pip/_internal/cli/main_parser.py +4 -3
- pip/_internal/cli/parser.py +24 -20
- pip/_internal/cli/progress_bars.py +19 -12
- pip/_internal/cli/req_command.py +57 -33
- pip/_internal/cli/spinners.py +81 -5
- pip/_internal/commands/__init__.py +5 -3
- pip/_internal/commands/cache.py +18 -15
- pip/_internal/commands/check.py +1 -2
- pip/_internal/commands/completion.py +1 -2
- pip/_internal/commands/configuration.py +26 -18
- pip/_internal/commands/debug.py +8 -6
- pip/_internal/commands/download.py +6 -10
- pip/_internal/commands/freeze.py +2 -3
- pip/_internal/commands/hash.py +1 -2
- pip/_internal/commands/help.py +1 -2
- pip/_internal/commands/index.py +15 -9
- pip/_internal/commands/inspect.py +4 -4
- pip/_internal/commands/install.py +63 -53
- pip/_internal/commands/list.py +35 -26
- pip/_internal/commands/lock.py +4 -8
- pip/_internal/commands/search.py +14 -12
- pip/_internal/commands/show.py +14 -11
- pip/_internal/commands/uninstall.py +1 -2
- pip/_internal/commands/wheel.py +7 -13
- pip/_internal/configuration.py +40 -27
- pip/_internal/distributions/base.py +6 -4
- pip/_internal/distributions/installed.py +8 -4
- pip/_internal/distributions/sdist.py +33 -27
- pip/_internal/distributions/wheel.py +6 -4
- pip/_internal/exceptions.py +78 -42
- pip/_internal/index/collector.py +24 -29
- pip/_internal/index/package_finder.py +73 -64
- pip/_internal/index/sources.py +17 -14
- pip/_internal/locations/__init__.py +18 -16
- pip/_internal/locations/_distutils.py +12 -11
- pip/_internal/locations/_sysconfig.py +5 -4
- pip/_internal/locations/base.py +4 -3
- pip/_internal/main.py +2 -2
- pip/_internal/metadata/__init__.py +14 -7
- pip/_internal/metadata/_json.py +5 -4
- pip/_internal/metadata/base.py +22 -27
- pip/_internal/metadata/importlib/_compat.py +6 -4
- pip/_internal/metadata/importlib/_dists.py +20 -19
- pip/_internal/metadata/importlib/_envs.py +9 -6
- pip/_internal/metadata/pkg_resources.py +11 -14
- pip/_internal/models/direct_url.py +24 -21
- pip/_internal/models/format_control.py +5 -5
- pip/_internal/models/installation_report.py +4 -3
- pip/_internal/models/link.py +39 -34
- pip/_internal/models/pylock.py +27 -22
- pip/_internal/models/search_scope.py +6 -7
- pip/_internal/models/selection_prefs.py +3 -3
- pip/_internal/models/target_python.py +10 -9
- pip/_internal/models/wheel.py +12 -71
- pip/_internal/network/auth.py +20 -22
- pip/_internal/network/cache.py +28 -17
- pip/_internal/network/download.py +169 -141
- pip/_internal/network/lazy_wheel.py +15 -10
- pip/_internal/network/session.py +32 -27
- pip/_internal/network/utils.py +2 -2
- pip/_internal/network/xmlrpc.py +2 -2
- pip/_internal/operations/build/build_tracker.py +10 -8
- pip/_internal/operations/build/wheel.py +7 -6
- pip/_internal/operations/build/wheel_editable.py +7 -6
- pip/_internal/operations/check.py +21 -26
- pip/_internal/operations/freeze.py +12 -9
- pip/_internal/operations/install/wheel.py +49 -41
- pip/_internal/operations/prepare.py +42 -31
- pip/_internal/pyproject.py +7 -69
- pip/_internal/req/__init__.py +12 -12
- pip/_internal/req/constructors.py +68 -62
- pip/_internal/req/req_dependency_group.py +7 -11
- pip/_internal/req/req_file.py +32 -36
- pip/_internal/req/req_install.py +64 -170
- pip/_internal/req/req_set.py +4 -5
- pip/_internal/req/req_uninstall.py +20 -17
- pip/_internal/resolution/base.py +3 -3
- pip/_internal/resolution/legacy/resolver.py +21 -20
- pip/_internal/resolution/resolvelib/base.py +16 -13
- pip/_internal/resolution/resolvelib/candidates.py +49 -37
- pip/_internal/resolution/resolvelib/factory.py +72 -50
- pip/_internal/resolution/resolvelib/found_candidates.py +11 -9
- pip/_internal/resolution/resolvelib/provider.py +24 -20
- pip/_internal/resolution/resolvelib/reporter.py +26 -11
- pip/_internal/resolution/resolvelib/requirements.py +8 -6
- pip/_internal/resolution/resolvelib/resolver.py +41 -29
- pip/_internal/self_outdated_check.py +19 -9
- pip/_internal/utils/appdirs.py +1 -2
- pip/_internal/utils/compat.py +7 -1
- pip/_internal/utils/compatibility_tags.py +17 -16
- pip/_internal/utils/deprecation.py +11 -9
- pip/_internal/utils/direct_url_helpers.py +2 -2
- pip/_internal/utils/egg_link.py +6 -5
- pip/_internal/utils/entrypoints.py +3 -2
- pip/_internal/utils/filesystem.py +20 -5
- pip/_internal/utils/filetypes.py +4 -6
- pip/_internal/utils/glibc.py +6 -5
- pip/_internal/utils/hashes.py +9 -6
- pip/_internal/utils/logging.py +8 -5
- pip/_internal/utils/misc.py +37 -45
- pip/_internal/utils/packaging.py +3 -2
- pip/_internal/utils/retry.py +7 -4
- pip/_internal/utils/subprocess.py +20 -17
- pip/_internal/utils/temp_dir.py +10 -12
- pip/_internal/utils/unpacking.py +31 -4
- pip/_internal/utils/urls.py +1 -1
- pip/_internal/utils/virtualenv.py +3 -2
- pip/_internal/utils/wheel.py +3 -4
- pip/_internal/vcs/bazaar.py +26 -8
- pip/_internal/vcs/git.py +59 -24
- pip/_internal/vcs/mercurial.py +34 -11
- pip/_internal/vcs/subversion.py +27 -16
- pip/_internal/vcs/versioncontrol.py +56 -51
- pip/_internal/wheel_builder.py +30 -101
- pip/_vendor/README.rst +180 -0
- pip/_vendor/cachecontrol/LICENSE.txt +13 -0
- pip/_vendor/cachecontrol/__init__.py +1 -1
- pip/_vendor/certifi/LICENSE +20 -0
- pip/_vendor/certifi/__init__.py +1 -1
- pip/_vendor/certifi/cacert.pem +164 -261
- pip/_vendor/certifi/core.py +1 -32
- pip/_vendor/dependency_groups/LICENSE.txt +9 -0
- pip/_vendor/distlib/LICENSE.txt +284 -0
- pip/_vendor/distlib/__init__.py +2 -2
- pip/_vendor/distlib/scripts.py +1 -1
- pip/_vendor/distro/LICENSE +202 -0
- pip/_vendor/idna/LICENSE.md +31 -0
- pip/_vendor/msgpack/COPYING +14 -0
- pip/_vendor/msgpack/__init__.py +2 -2
- pip/_vendor/packaging/LICENSE +3 -0
- pip/_vendor/packaging/LICENSE.APACHE +177 -0
- pip/_vendor/packaging/LICENSE.BSD +23 -0
- pip/_vendor/pkg_resources/LICENSE +17 -0
- pip/_vendor/pkg_resources/__init__.py +1 -1
- pip/_vendor/platformdirs/LICENSE +21 -0
- pip/_vendor/platformdirs/api.py +1 -1
- pip/_vendor/platformdirs/macos.py +10 -8
- pip/_vendor/platformdirs/version.py +16 -3
- pip/_vendor/pygments/LICENSE +25 -0
- pip/_vendor/pygments/__init__.py +1 -1
- pip/_vendor/pyproject_hooks/LICENSE +21 -0
- pip/_vendor/requests/LICENSE +175 -0
- pip/_vendor/requests/__version__.py +2 -2
- pip/_vendor/requests/adapters.py +17 -40
- pip/_vendor/requests/compat.py +12 -0
- pip/_vendor/requests/models.py +3 -1
- pip/_vendor/requests/sessions.py +1 -1
- pip/_vendor/requests/utils.py +6 -16
- pip/_vendor/resolvelib/LICENSE +13 -0
- pip/_vendor/resolvelib/__init__.py +3 -3
- pip/_vendor/resolvelib/reporters.py +1 -1
- pip/_vendor/resolvelib/resolvers/__init__.py +4 -4
- pip/_vendor/resolvelib/resolvers/abstract.py +3 -3
- pip/_vendor/resolvelib/resolvers/resolution.py +96 -10
- pip/_vendor/rich/LICENSE +19 -0
- pip/_vendor/rich/__main__.py +12 -40
- pip/_vendor/rich/_inspect.py +1 -1
- pip/_vendor/rich/_ratio.py +1 -7
- pip/_vendor/rich/align.py +1 -7
- pip/_vendor/rich/box.py +1 -7
- pip/_vendor/rich/console.py +25 -20
- pip/_vendor/rich/control.py +1 -7
- pip/_vendor/rich/diagnose.py +1 -0
- pip/_vendor/rich/emoji.py +1 -6
- pip/_vendor/rich/live.py +32 -7
- pip/_vendor/rich/live_render.py +1 -7
- pip/_vendor/rich/logging.py +1 -1
- pip/_vendor/rich/panel.py +3 -4
- pip/_vendor/rich/progress.py +15 -15
- pip/_vendor/rich/spinner.py +7 -13
- pip/_vendor/rich/style.py +7 -11
- pip/_vendor/rich/syntax.py +24 -5
- pip/_vendor/rich/traceback.py +32 -17
- pip/_vendor/tomli/LICENSE +21 -0
- pip/_vendor/tomli/__init__.py +1 -1
- pip/_vendor/tomli/_parser.py +28 -21
- pip/_vendor/tomli/_re.py +8 -5
- pip/_vendor/tomli_w/LICENSE +21 -0
- pip/_vendor/truststore/LICENSE +21 -0
- pip/_vendor/truststore/__init__.py +1 -1
- pip/_vendor/truststore/_api.py +15 -7
- pip/_vendor/truststore/_openssl.py +3 -1
- pip/_vendor/urllib3/LICENSE.txt +21 -0
- pip/_vendor/vendor.txt +11 -12
- {pip-25.1.1.dist-info → pip-25.3.dist-info}/METADATA +32 -11
- {pip-25.1.1.dist-info → pip-25.3.dist-info}/RECORD +221 -192
- {pip-25.1.1.dist-info → pip-25.3.dist-info}/WHEEL +1 -2
- pip-25.3.dist-info/entry_points.txt +4 -0
- {pip-25.1.1.dist-info → pip-25.3.dist-info}/licenses/AUTHORS.txt +21 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/cachecontrol/LICENSE.txt +13 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/certifi/LICENSE +20 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/dependency_groups/LICENSE.txt +9 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/distlib/LICENSE.txt +284 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/distro/LICENSE +202 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/idna/LICENSE.md +31 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/msgpack/COPYING +14 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/packaging/LICENSE +3 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/packaging/LICENSE.APACHE +177 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/packaging/LICENSE.BSD +23 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/pkg_resources/LICENSE +17 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/platformdirs/LICENSE +21 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/pygments/LICENSE +25 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/pyproject_hooks/LICENSE +21 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/requests/LICENSE +175 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/resolvelib/LICENSE +13 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/rich/LICENSE +19 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/tomli/LICENSE +21 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/tomli_w/LICENSE +21 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/truststore/LICENSE +21 -0
- pip-25.3.dist-info/licenses/src/pip/_vendor/urllib3/LICENSE.txt +21 -0
- pip/_internal/operations/build/metadata_legacy.py +0 -73
- pip/_internal/operations/build/wheel_legacy.py +0 -118
- pip/_internal/operations/install/editable_legacy.py +0 -46
- pip/_internal/utils/setuptools_build.py +0 -147
- pip/_vendor/distlib/database.py +0 -1329
- pip/_vendor/distlib/index.py +0 -508
- pip/_vendor/distlib/locators.py +0 -1295
- pip/_vendor/distlib/manifest.py +0 -384
- pip/_vendor/distlib/markers.py +0 -162
- pip/_vendor/distlib/metadata.py +0 -1031
- pip/_vendor/distlib/version.py +0 -750
- pip/_vendor/distlib/wheel.py +0 -1100
- pip/_vendor/typing_extensions.py +0 -4584
- pip-25.1.1.dist-info/entry_points.txt +0 -3
- pip-25.1.1.dist-info/top_level.txt +0 -1
- {pip-25.1.1.dist-info → pip-25.3.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
import textwrap
|
|
3
|
-
from typing import List, Optional, Sequence
|
|
4
|
-
|
|
5
|
-
# Shim to wrap setup.py invocation with setuptools
|
|
6
|
-
# Note that __file__ is handled via two {!r} *and* %r, to ensure that paths on
|
|
7
|
-
# Windows are correctly handled (it should be "C:\\Users" not "C:\Users").
|
|
8
|
-
_SETUPTOOLS_SHIM = textwrap.dedent(
|
|
9
|
-
"""
|
|
10
|
-
exec(compile('''
|
|
11
|
-
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
|
|
12
|
-
#
|
|
13
|
-
# - It imports setuptools before invoking setup.py, to enable projects that directly
|
|
14
|
-
# import from `distutils.core` to work with newer packaging standards.
|
|
15
|
-
# - It provides a clear error message when setuptools is not installed.
|
|
16
|
-
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
|
|
17
|
-
# setuptools doesn't think the script is `-c`. This avoids the following warning:
|
|
18
|
-
# manifest_maker: standard file '-c' not found".
|
|
19
|
-
# - It generates a shim setup.py, for handling setup.cfg-only projects.
|
|
20
|
-
import os, sys, tokenize, traceback
|
|
21
|
-
|
|
22
|
-
try:
|
|
23
|
-
import setuptools
|
|
24
|
-
except ImportError:
|
|
25
|
-
print(
|
|
26
|
-
"ERROR: Can not execute `setup.py` since setuptools failed to import in "
|
|
27
|
-
"the build environment with exception:",
|
|
28
|
-
file=sys.stderr,
|
|
29
|
-
)
|
|
30
|
-
traceback.print_exc()
|
|
31
|
-
sys.exit(1)
|
|
32
|
-
|
|
33
|
-
__file__ = %r
|
|
34
|
-
sys.argv[0] = __file__
|
|
35
|
-
|
|
36
|
-
if os.path.exists(__file__):
|
|
37
|
-
filename = __file__
|
|
38
|
-
with tokenize.open(__file__) as f:
|
|
39
|
-
setup_py_code = f.read()
|
|
40
|
-
else:
|
|
41
|
-
filename = "<auto-generated setuptools caller>"
|
|
42
|
-
setup_py_code = "from setuptools import setup; setup()"
|
|
43
|
-
|
|
44
|
-
exec(compile(setup_py_code, filename, "exec"))
|
|
45
|
-
''' % ({!r},), "<pip-setuptools-caller>", "exec"))
|
|
46
|
-
"""
|
|
47
|
-
).rstrip()
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
def make_setuptools_shim_args(
|
|
51
|
-
setup_py_path: str,
|
|
52
|
-
global_options: Optional[Sequence[str]] = None,
|
|
53
|
-
no_user_config: bool = False,
|
|
54
|
-
unbuffered_output: bool = False,
|
|
55
|
-
) -> List[str]:
|
|
56
|
-
"""
|
|
57
|
-
Get setuptools command arguments with shim wrapped setup file invocation.
|
|
58
|
-
|
|
59
|
-
:param setup_py_path: The path to setup.py to be wrapped.
|
|
60
|
-
:param global_options: Additional global options.
|
|
61
|
-
:param no_user_config: If True, disables personal user configuration.
|
|
62
|
-
:param unbuffered_output: If True, adds the unbuffered switch to the
|
|
63
|
-
argument list.
|
|
64
|
-
"""
|
|
65
|
-
args = [sys.executable]
|
|
66
|
-
if unbuffered_output:
|
|
67
|
-
args += ["-u"]
|
|
68
|
-
args += ["-c", _SETUPTOOLS_SHIM.format(setup_py_path)]
|
|
69
|
-
if global_options:
|
|
70
|
-
args += global_options
|
|
71
|
-
if no_user_config:
|
|
72
|
-
args += ["--no-user-cfg"]
|
|
73
|
-
return args
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
def make_setuptools_bdist_wheel_args(
|
|
77
|
-
setup_py_path: str,
|
|
78
|
-
global_options: Sequence[str],
|
|
79
|
-
build_options: Sequence[str],
|
|
80
|
-
destination_dir: str,
|
|
81
|
-
) -> List[str]:
|
|
82
|
-
# NOTE: Eventually, we'd want to also -S to the flags here, when we're
|
|
83
|
-
# isolating. Currently, it breaks Python in virtualenvs, because it
|
|
84
|
-
# relies on site.py to find parts of the standard library outside the
|
|
85
|
-
# virtualenv.
|
|
86
|
-
args = make_setuptools_shim_args(
|
|
87
|
-
setup_py_path, global_options=global_options, unbuffered_output=True
|
|
88
|
-
)
|
|
89
|
-
args += ["bdist_wheel", "-d", destination_dir]
|
|
90
|
-
args += build_options
|
|
91
|
-
return args
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
def make_setuptools_clean_args(
|
|
95
|
-
setup_py_path: str,
|
|
96
|
-
global_options: Sequence[str],
|
|
97
|
-
) -> List[str]:
|
|
98
|
-
args = make_setuptools_shim_args(
|
|
99
|
-
setup_py_path, global_options=global_options, unbuffered_output=True
|
|
100
|
-
)
|
|
101
|
-
args += ["clean", "--all"]
|
|
102
|
-
return args
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
def make_setuptools_develop_args(
|
|
106
|
-
setup_py_path: str,
|
|
107
|
-
*,
|
|
108
|
-
global_options: Sequence[str],
|
|
109
|
-
no_user_config: bool,
|
|
110
|
-
prefix: Optional[str],
|
|
111
|
-
home: Optional[str],
|
|
112
|
-
use_user_site: bool,
|
|
113
|
-
) -> List[str]:
|
|
114
|
-
assert not (use_user_site and prefix)
|
|
115
|
-
|
|
116
|
-
args = make_setuptools_shim_args(
|
|
117
|
-
setup_py_path,
|
|
118
|
-
global_options=global_options,
|
|
119
|
-
no_user_config=no_user_config,
|
|
120
|
-
)
|
|
121
|
-
|
|
122
|
-
args += ["develop", "--no-deps"]
|
|
123
|
-
|
|
124
|
-
if prefix:
|
|
125
|
-
args += ["--prefix", prefix]
|
|
126
|
-
if home is not None:
|
|
127
|
-
args += ["--install-dir", home]
|
|
128
|
-
|
|
129
|
-
if use_user_site:
|
|
130
|
-
args += ["--user", "--prefix="]
|
|
131
|
-
|
|
132
|
-
return args
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
def make_setuptools_egg_info_args(
|
|
136
|
-
setup_py_path: str,
|
|
137
|
-
egg_info_dir: Optional[str],
|
|
138
|
-
no_user_config: bool,
|
|
139
|
-
) -> List[str]:
|
|
140
|
-
args = make_setuptools_shim_args(setup_py_path, no_user_config=no_user_config)
|
|
141
|
-
|
|
142
|
-
args += ["egg_info"]
|
|
143
|
-
|
|
144
|
-
if egg_info_dir:
|
|
145
|
-
args += ["--egg-base", egg_info_dir]
|
|
146
|
-
|
|
147
|
-
return args
|