pip 25.2__py3-none-any.whl → 26.0__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.
Files changed (167) hide show
  1. pip/__init__.py +1 -1
  2. pip/_internal/__init__.py +0 -0
  3. pip/_internal/build_env.py +265 -8
  4. pip/_internal/cache.py +1 -1
  5. pip/_internal/cli/base_command.py +11 -0
  6. pip/_internal/cli/cmdoptions.py +200 -71
  7. pip/_internal/cli/index_command.py +20 -0
  8. pip/_internal/cli/main.py +11 -6
  9. pip/_internal/cli/main_parser.py +3 -1
  10. pip/_internal/cli/parser.py +96 -36
  11. pip/_internal/cli/progress_bars.py +4 -2
  12. pip/_internal/cli/req_command.py +126 -30
  13. pip/_internal/commands/cache.py +24 -0
  14. pip/_internal/commands/completion.py +2 -1
  15. pip/_internal/commands/download.py +12 -11
  16. pip/_internal/commands/index.py +13 -6
  17. pip/_internal/commands/install.py +55 -43
  18. pip/_internal/commands/list.py +14 -16
  19. pip/_internal/commands/lock.py +19 -14
  20. pip/_internal/commands/wheel.py +13 -23
  21. pip/_internal/configuration.py +1 -2
  22. pip/_internal/distributions/sdist.py +13 -14
  23. pip/_internal/exceptions.py +96 -6
  24. pip/_internal/index/collector.py +2 -3
  25. pip/_internal/index/package_finder.py +87 -21
  26. pip/_internal/locations/__init__.py +1 -2
  27. pip/_internal/locations/_sysconfig.py +4 -1
  28. pip/_internal/metadata/__init__.py +7 -2
  29. pip/_internal/metadata/importlib/_dists.py +8 -2
  30. pip/_internal/models/link.py +18 -14
  31. pip/_internal/models/release_control.py +92 -0
  32. pip/_internal/models/selection_prefs.py +6 -3
  33. pip/_internal/models/wheel.py +5 -66
  34. pip/_internal/network/auth.py +6 -2
  35. pip/_internal/network/cache.py +6 -11
  36. pip/_internal/network/download.py +4 -5
  37. pip/_internal/network/lazy_wheel.py +5 -3
  38. pip/_internal/network/session.py +14 -10
  39. pip/_internal/operations/build/wheel.py +4 -4
  40. pip/_internal/operations/build/wheel_editable.py +4 -4
  41. pip/_internal/operations/install/wheel.py +1 -2
  42. pip/_internal/operations/prepare.py +9 -4
  43. pip/_internal/pyproject.py +2 -61
  44. pip/_internal/req/__init__.py +1 -3
  45. pip/_internal/req/constructors.py +45 -39
  46. pip/_internal/req/pep723.py +41 -0
  47. pip/_internal/req/req_file.py +10 -2
  48. pip/_internal/req/req_install.py +32 -141
  49. pip/_internal/resolution/resolvelib/candidates.py +20 -11
  50. pip/_internal/resolution/resolvelib/factory.py +43 -1
  51. pip/_internal/resolution/resolvelib/provider.py +9 -0
  52. pip/_internal/resolution/resolvelib/reporter.py +21 -8
  53. pip/_internal/resolution/resolvelib/requirements.py +7 -3
  54. pip/_internal/resolution/resolvelib/resolver.py +2 -6
  55. pip/_internal/self_outdated_check.py +17 -16
  56. pip/_internal/utils/datetime.py +18 -0
  57. pip/_internal/utils/filesystem.py +52 -1
  58. pip/_internal/utils/logging.py +34 -2
  59. pip/_internal/utils/misc.py +18 -12
  60. pip/_internal/utils/pylock.py +116 -0
  61. pip/_internal/utils/unpacking.py +26 -1
  62. pip/_internal/vcs/versioncontrol.py +3 -1
  63. pip/_internal/wheel_builder.py +23 -96
  64. pip/_vendor/README.rst +180 -0
  65. pip/_vendor/cachecontrol/LICENSE.txt +13 -0
  66. pip/_vendor/cachecontrol/__init__.py +6 -3
  67. pip/_vendor/cachecontrol/adapter.py +0 -1
  68. pip/_vendor/cachecontrol/controller.py +1 -1
  69. pip/_vendor/cachecontrol/filewrapper.py +3 -1
  70. pip/_vendor/certifi/LICENSE +20 -0
  71. pip/_vendor/certifi/__init__.py +1 -1
  72. pip/_vendor/certifi/cacert.pem +62 -372
  73. pip/_vendor/dependency_groups/LICENSE.txt +9 -0
  74. pip/_vendor/distlib/LICENSE.txt +284 -0
  75. pip/_vendor/distro/LICENSE +202 -0
  76. pip/_vendor/idna/LICENSE.md +31 -0
  77. pip/_vendor/idna/codec.py +1 -1
  78. pip/_vendor/idna/core.py +1 -1
  79. pip/_vendor/idna/idnadata.py +72 -6
  80. pip/_vendor/idna/package_data.py +1 -1
  81. pip/_vendor/idna/uts46data.py +891 -731
  82. pip/_vendor/msgpack/COPYING +14 -0
  83. pip/_vendor/msgpack/__init__.py +2 -2
  84. pip/_vendor/packaging/LICENSE +3 -0
  85. pip/_vendor/packaging/LICENSE.APACHE +177 -0
  86. pip/_vendor/packaging/LICENSE.BSD +23 -0
  87. pip/_vendor/packaging/__init__.py +1 -1
  88. pip/_vendor/packaging/_elffile.py +0 -1
  89. pip/_vendor/packaging/_manylinux.py +36 -36
  90. pip/_vendor/packaging/_musllinux.py +1 -1
  91. pip/_vendor/packaging/_parser.py +22 -10
  92. pip/_vendor/packaging/_structures.py +8 -0
  93. pip/_vendor/packaging/_tokenizer.py +23 -25
  94. pip/_vendor/packaging/licenses/__init__.py +13 -11
  95. pip/_vendor/packaging/licenses/_spdx.py +41 -1
  96. pip/_vendor/packaging/markers.py +64 -38
  97. pip/_vendor/packaging/metadata.py +143 -27
  98. pip/_vendor/packaging/pylock.py +635 -0
  99. pip/_vendor/packaging/requirements.py +5 -10
  100. pip/_vendor/packaging/specifiers.py +219 -170
  101. pip/_vendor/packaging/tags.py +15 -20
  102. pip/_vendor/packaging/utils.py +19 -24
  103. pip/_vendor/packaging/version.py +315 -105
  104. pip/_vendor/pkg_resources/LICENSE +17 -0
  105. pip/_vendor/platformdirs/LICENSE +21 -0
  106. pip/_vendor/platformdirs/api.py +1 -1
  107. pip/_vendor/platformdirs/macos.py +10 -8
  108. pip/_vendor/platformdirs/version.py +16 -3
  109. pip/_vendor/platformdirs/windows.py +7 -1
  110. pip/_vendor/pygments/LICENSE +25 -0
  111. pip/_vendor/pyproject_hooks/LICENSE +21 -0
  112. pip/_vendor/requests/LICENSE +175 -0
  113. pip/_vendor/requests/__version__.py +2 -2
  114. pip/_vendor/requests/adapters.py +17 -40
  115. pip/_vendor/requests/sessions.py +1 -1
  116. pip/_vendor/resolvelib/LICENSE +13 -0
  117. pip/_vendor/resolvelib/__init__.py +1 -1
  118. pip/_vendor/resolvelib/resolvers/abstract.py +3 -3
  119. pip/_vendor/resolvelib/resolvers/resolution.py +5 -0
  120. pip/_vendor/rich/LICENSE +19 -0
  121. pip/_vendor/rich/style.py +7 -11
  122. pip/_vendor/tomli/LICENSE +21 -0
  123. pip/_vendor/tomli/__init__.py +1 -1
  124. pip/_vendor/tomli/_parser.py +28 -21
  125. pip/_vendor/tomli/_re.py +8 -5
  126. pip/_vendor/tomli_w/LICENSE +21 -0
  127. pip/_vendor/truststore/LICENSE +21 -0
  128. pip/_vendor/truststore/__init__.py +1 -1
  129. pip/_vendor/truststore/_api.py +14 -6
  130. pip/_vendor/truststore/_openssl.py +3 -1
  131. pip/_vendor/urllib3/LICENSE.txt +21 -0
  132. pip/_vendor/vendor.txt +11 -11
  133. {pip-25.2.dist-info → pip-26.0.dist-info}/METADATA +10 -11
  134. {pip-25.2.dist-info → pip-26.0.dist-info}/RECORD +158 -139
  135. {pip-25.2.dist-info → pip-26.0.dist-info}/WHEEL +1 -2
  136. pip-26.0.dist-info/entry_points.txt +4 -0
  137. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/AUTHORS.txt +27 -0
  138. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/idna/LICENSE.md +1 -1
  139. pip/_internal/models/pylock.py +0 -188
  140. pip/_internal/operations/build/metadata_legacy.py +0 -73
  141. pip/_internal/operations/build/wheel_legacy.py +0 -119
  142. pip/_internal/operations/install/editable_legacy.py +0 -48
  143. pip/_internal/utils/setuptools_build.py +0 -149
  144. pip-25.2.dist-info/entry_points.txt +0 -3
  145. pip-25.2.dist-info/licenses/src/pip/_vendor/tomli/LICENSE-HEADER +0 -3
  146. pip-25.2.dist-info/top_level.txt +0 -1
  147. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/LICENSE.txt +0 -0
  148. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/cachecontrol/LICENSE.txt +0 -0
  149. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/certifi/LICENSE +0 -0
  150. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/dependency_groups/LICENSE.txt +0 -0
  151. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/distlib/LICENSE.txt +0 -0
  152. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/distro/LICENSE +0 -0
  153. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/msgpack/COPYING +0 -0
  154. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/packaging/LICENSE +0 -0
  155. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/packaging/LICENSE.APACHE +0 -0
  156. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/packaging/LICENSE.BSD +0 -0
  157. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/pkg_resources/LICENSE +0 -0
  158. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/platformdirs/LICENSE +0 -0
  159. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/pygments/LICENSE +0 -0
  160. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/pyproject_hooks/LICENSE +0 -0
  161. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/requests/LICENSE +0 -0
  162. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/resolvelib/LICENSE +0 -0
  163. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/rich/LICENSE +0 -0
  164. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/tomli/LICENSE +0 -0
  165. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/tomli_w/LICENSE +0 -0
  166. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/truststore/LICENSE +0 -0
  167. {pip-25.2.dist-info → pip-26.0.dist-info}/licenses/src/pip/_vendor/urllib3/LICENSE.txt +0 -0
@@ -1,149 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import sys
4
- import textwrap
5
- from collections.abc import Sequence
6
-
7
- # Shim to wrap setup.py invocation with setuptools
8
- # Note that __file__ is handled via two {!r} *and* %r, to ensure that paths on
9
- # Windows are correctly handled (it should be "C:\\Users" not "C:\Users").
10
- _SETUPTOOLS_SHIM = textwrap.dedent(
11
- """
12
- exec(compile('''
13
- # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
14
- #
15
- # - It imports setuptools before invoking setup.py, to enable projects that directly
16
- # import from `distutils.core` to work with newer packaging standards.
17
- # - It provides a clear error message when setuptools is not installed.
18
- # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
19
- # setuptools doesn't think the script is `-c`. This avoids the following warning:
20
- # manifest_maker: standard file '-c' not found".
21
- # - It generates a shim setup.py, for handling setup.cfg-only projects.
22
- import os, sys, tokenize, traceback
23
-
24
- try:
25
- import setuptools
26
- except ImportError:
27
- print(
28
- "ERROR: Can not execute `setup.py` since setuptools failed to import in "
29
- "the build environment with exception:",
30
- file=sys.stderr,
31
- )
32
- traceback.print_exc()
33
- sys.exit(1)
34
-
35
- __file__ = %r
36
- sys.argv[0] = __file__
37
-
38
- if os.path.exists(__file__):
39
- filename = __file__
40
- with tokenize.open(__file__) as f:
41
- setup_py_code = f.read()
42
- else:
43
- filename = "<auto-generated setuptools caller>"
44
- setup_py_code = "from setuptools import setup; setup()"
45
-
46
- exec(compile(setup_py_code, filename, "exec"))
47
- ''' % ({!r},), "<pip-setuptools-caller>", "exec"))
48
- """
49
- ).rstrip()
50
-
51
-
52
- def make_setuptools_shim_args(
53
- setup_py_path: str,
54
- global_options: Sequence[str] | None = None,
55
- no_user_config: bool = False,
56
- unbuffered_output: bool = False,
57
- ) -> list[str]:
58
- """
59
- Get setuptools command arguments with shim wrapped setup file invocation.
60
-
61
- :param setup_py_path: The path to setup.py to be wrapped.
62
- :param global_options: Additional global options.
63
- :param no_user_config: If True, disables personal user configuration.
64
- :param unbuffered_output: If True, adds the unbuffered switch to the
65
- argument list.
66
- """
67
- args = [sys.executable]
68
- if unbuffered_output:
69
- args += ["-u"]
70
- args += ["-c", _SETUPTOOLS_SHIM.format(setup_py_path)]
71
- if global_options:
72
- args += global_options
73
- if no_user_config:
74
- args += ["--no-user-cfg"]
75
- return args
76
-
77
-
78
- def make_setuptools_bdist_wheel_args(
79
- setup_py_path: str,
80
- global_options: Sequence[str],
81
- build_options: Sequence[str],
82
- destination_dir: str,
83
- ) -> list[str]:
84
- # NOTE: Eventually, we'd want to also -S to the flags here, when we're
85
- # isolating. Currently, it breaks Python in virtualenvs, because it
86
- # relies on site.py to find parts of the standard library outside the
87
- # virtualenv.
88
- args = make_setuptools_shim_args(
89
- setup_py_path, global_options=global_options, unbuffered_output=True
90
- )
91
- args += ["bdist_wheel", "-d", destination_dir]
92
- args += build_options
93
- return args
94
-
95
-
96
- def make_setuptools_clean_args(
97
- setup_py_path: str,
98
- global_options: Sequence[str],
99
- ) -> list[str]:
100
- args = make_setuptools_shim_args(
101
- setup_py_path, global_options=global_options, unbuffered_output=True
102
- )
103
- args += ["clean", "--all"]
104
- return args
105
-
106
-
107
- def make_setuptools_develop_args(
108
- setup_py_path: str,
109
- *,
110
- global_options: Sequence[str],
111
- no_user_config: bool,
112
- prefix: str | None,
113
- home: str | None,
114
- use_user_site: bool,
115
- ) -> list[str]:
116
- assert not (use_user_site and prefix)
117
-
118
- args = make_setuptools_shim_args(
119
- setup_py_path,
120
- global_options=global_options,
121
- no_user_config=no_user_config,
122
- )
123
-
124
- args += ["develop", "--no-deps"]
125
-
126
- if prefix:
127
- args += ["--prefix", prefix]
128
- if home is not None:
129
- args += ["--install-dir", home]
130
-
131
- if use_user_site:
132
- args += ["--user", "--prefix="]
133
-
134
- return args
135
-
136
-
137
- def make_setuptools_egg_info_args(
138
- setup_py_path: str,
139
- egg_info_dir: str | None,
140
- no_user_config: bool,
141
- ) -> list[str]:
142
- args = make_setuptools_shim_args(setup_py_path, no_user_config=no_user_config)
143
-
144
- args += ["egg_info"]
145
-
146
- if egg_info_dir:
147
- args += ["--egg-base", egg_info_dir]
148
-
149
- return args
@@ -1,3 +0,0 @@
1
- [console_scripts]
2
- pip = pip._internal.cli.main:main
3
- pip3 = pip._internal.cli.main:main
@@ -1,3 +0,0 @@
1
- SPDX-License-Identifier: MIT
2
- SPDX-FileCopyrightText: 2021 Taneli Hukkinen
3
- Licensed to PSF under a Contributor Agreement.
@@ -1 +0,0 @@
1
- pip