kaanyarali1 commited on
Commit
65226cd
1 Parent(s): a4e303d

try fastapi

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitignore +3 -0
  2. Dockerfile +1 -1
  3. app.py +7 -148
  4. hfacevenv/bin/Activate.ps1 +241 -0
  5. hfacevenv/bin/activate +66 -0
  6. hfacevenv/bin/activate.csh +25 -0
  7. hfacevenv/bin/activate.fish +64 -0
  8. hfacevenv/bin/pip +8 -0
  9. hfacevenv/bin/pip3 +8 -0
  10. hfacevenv/bin/pip3.9 +8 -0
  11. hfacevenv/bin/python +1 -0
  12. hfacevenv/bin/python3 +1 -0
  13. hfacevenv/bin/python3.9 +1 -0
  14. hfacevenv/lib/python3.9/site-packages/_distutils_hack/__init__.py +128 -0
  15. hfacevenv/lib/python3.9/site-packages/_distutils_hack/override.py +1 -0
  16. hfacevenv/lib/python3.9/site-packages/distutils-precedence.pth +3 -0
  17. hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/INSTALLER +1 -0
  18. hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/LICENSE.txt +20 -0
  19. hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/METADATA +92 -0
  20. hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/RECORD +1053 -0
  21. hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/REQUESTED +0 -0
  22. hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/WHEEL +5 -0
  23. hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/entry_points.txt +5 -0
  24. hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/top_level.txt +1 -0
  25. hfacevenv/lib/python3.9/site-packages/pip/__init__.py +13 -0
  26. hfacevenv/lib/python3.9/site-packages/pip/__main__.py +31 -0
  27. hfacevenv/lib/python3.9/site-packages/pip/_internal/__init__.py +19 -0
  28. hfacevenv/lib/python3.9/site-packages/pip/_internal/build_env.py +296 -0
  29. hfacevenv/lib/python3.9/site-packages/pip/_internal/cache.py +264 -0
  30. hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/__init__.py +4 -0
  31. hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/autocompletion.py +171 -0
  32. hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/base_command.py +223 -0
  33. hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/cmdoptions.py +1018 -0
  34. hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/command_context.py +27 -0
  35. hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/main.py +70 -0
  36. hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/main_parser.py +87 -0
  37. hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/parser.py +292 -0
  38. hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/progress_bars.py +321 -0
  39. hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/req_command.py +506 -0
  40. hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/spinners.py +157 -0
  41. hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/status_codes.py +6 -0
  42. hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/__init__.py +127 -0
  43. hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/cache.py +223 -0
  44. hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/check.py +53 -0
  45. hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/completion.py +96 -0
  46. hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/configuration.py +266 -0
  47. hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/debug.py +202 -0
  48. hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/download.py +140 -0
  49. hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/freeze.py +97 -0
  50. hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/hash.py +59 -0
.gitignore CHANGED
@@ -2,3 +2,6 @@
2
  .venv/
3
  __pycache__
4
  .DS_Store
 
 
 
 
2
  .venv/
3
  __pycache__
4
  .DS_Store
5
+ venv/
6
+ hfacevenv/
7
+ venv/
Dockerfile CHANGED
@@ -10,4 +10,4 @@ COPY . .
10
 
11
  EXPOSE 7860
12
 
13
- CMD ["shiny", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
 
10
 
11
  EXPOSE 7860
12
 
13
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
app.py CHANGED
@@ -1,151 +1,10 @@
1
- from pathlib import Path
2
- from typing import List, Dict, Tuple
3
- import matplotlib.colors as mpl_colors
4
 
5
- import pandas as pd
6
- import seaborn as sns
7
- import shinyswatch
8
 
9
- from shiny import App, Inputs, Outputs, Session, reactive, render, req, ui
 
 
 
10
 
11
- sns.set_theme()
12
-
13
- www_dir = Path(__file__).parent.resolve() / "www"
14
-
15
- df = pd.read_csv(Path(__file__).parent / "penguins.csv", na_values="NA")
16
- numeric_cols: List[str] = df.select_dtypes(include=["float64"]).columns.tolist()
17
- species: List[str] = df["Species"].unique().tolist()
18
- species.sort()
19
-
20
- app_ui = ui.page_fillable(
21
- shinyswatch.theme.minty(),
22
- ui.layout_sidebar(
23
- ui.sidebar(
24
- # Artwork by @allison_horst
25
- ui.input_selectize(
26
- "xvar",
27
- "X variable",
28
- numeric_cols,
29
- selected="Bill Length (mm)",
30
- ),
31
- ui.input_selectize(
32
- "yvar",
33
- "Y variable",
34
- numeric_cols,
35
- selected="Bill Depth (mm)",
36
- ),
37
- ui.input_checkbox_group(
38
- "species", "Filter by species", species, selected=species
39
- ),
40
- ui.hr(),
41
- ui.input_switch("by_species", "Show species", value=True),
42
- ui.input_switch("show_margins", "Show marginal plots", value=True),
43
- ),
44
- ui.output_ui("value_boxes"),
45
- ui.output_plot("scatter", fill=True),
46
- ui.help_text(
47
- "Artwork by ",
48
- ui.a("@allison_horst", href="https://twitter.com/allison_horst"),
49
- class_="text-end",
50
- ),
51
- ),
52
- )
53
-
54
-
55
- def server(input: Inputs, output: Outputs, session: Session):
56
- @reactive.Calc
57
- def filtered_df() -> pd.DataFrame:
58
- """Returns a Pandas data frame that includes only the desired rows"""
59
-
60
- # This calculation "req"uires that at least one species is selected
61
- req(len(input.species()) > 0)
62
-
63
- # Filter the rows so we only include the desired species
64
- return df[df["Species"].isin(input.species())]
65
-
66
- @output
67
- @render.plot
68
- def scatter():
69
- """Generates a plot for Shiny to display to the user"""
70
-
71
- # The plotting function to use depends on whether margins are desired
72
- plotfunc = sns.jointplot if input.show_margins() else sns.scatterplot
73
-
74
- plotfunc(
75
- data=filtered_df(),
76
- x=input.xvar(),
77
- y=input.yvar(),
78
- palette=palette,
79
- hue="Species" if input.by_species() else None,
80
- hue_order=species,
81
- legend=False,
82
- )
83
-
84
- @output
85
- @render.ui
86
- def value_boxes():
87
- df = filtered_df()
88
-
89
- def penguin_value_box(title: str, count: int, bgcol: str, showcase_img: str):
90
- return ui.value_box(
91
- title,
92
- count,
93
- {"class_": "pt-1 pb-0"},
94
- showcase=ui.fill.as_fill_item(
95
- ui.tags.img(
96
- {"style": "object-fit:contain;"},
97
- src=showcase_img,
98
- )
99
- ),
100
- theme_color=None,
101
- style=f"background-color: {bgcol};",
102
- )
103
-
104
- if not input.by_species():
105
- return penguin_value_box(
106
- "Penguins",
107
- len(df.index),
108
- bg_palette["default"],
109
- # Artwork by @allison_horst
110
- showcase_img="penguins.png",
111
- )
112
-
113
- value_boxes = [
114
- penguin_value_box(
115
- name,
116
- len(df[df["Species"] == name]),
117
- bg_palette[name],
118
- # Artwork by @allison_horst
119
- showcase_img=f"{name}.png",
120
- )
121
- for name in species
122
- # Only include boxes for _selected_ species
123
- if name in input.species()
124
- ]
125
-
126
- return ui.layout_column_wrap(*value_boxes, width = 1 / len(value_boxes))
127
-
128
-
129
- # "darkorange", "purple", "cyan4"
130
- colors = [[255, 140, 0], [160, 32, 240], [0, 139, 139]]
131
- colors = [(r / 255.0, g / 255.0, b / 255.0) for r, g, b in colors]
132
-
133
- palette: Dict[str, Tuple[float, float, float]] = {
134
- "Adelie": colors[0],
135
- "Chinstrap": colors[1],
136
- "Gentoo": colors[2],
137
- "default": sns.color_palette()[0], # type: ignore
138
- }
139
-
140
- bg_palette = {}
141
- # Use `sns.set_style("whitegrid")` to help find approx alpha value
142
- for name, col in palette.items():
143
- # Adjusted n_colors until `axe` accessibility did not complain about color contrast
144
- bg_palette[name] = mpl_colors.to_hex(sns.light_palette(col, n_colors=7)[1]) # type: ignore
145
-
146
-
147
- app = App(
148
- app_ui,
149
- server,
150
- static_assets=str(www_dir),
151
- )
 
1
+ from fastapi import FastAPI
 
 
2
 
3
+ # Create an instance of the FastAPI class
4
+ app = FastAPI()
 
5
 
6
+ # Define a route for the root endpoint
7
+ @app.get("/")
8
+ async def read_root():
9
+ return {"message": "Hello, Hugging Face Spaces!"}
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
hfacevenv/bin/Activate.ps1 ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <#
2
+ .Synopsis
3
+ Activate a Python virtual environment for the current PowerShell session.
4
+
5
+ .Description
6
+ Pushes the python executable for a virtual environment to the front of the
7
+ $Env:PATH environment variable and sets the prompt to signify that you are
8
+ in a Python virtual environment. Makes use of the command line switches as
9
+ well as the `pyvenv.cfg` file values present in the virtual environment.
10
+
11
+ .Parameter VenvDir
12
+ Path to the directory that contains the virtual environment to activate. The
13
+ default value for this is the parent of the directory that the Activate.ps1
14
+ script is located within.
15
+
16
+ .Parameter Prompt
17
+ The prompt prefix to display when this virtual environment is activated. By
18
+ default, this prompt is the name of the virtual environment folder (VenvDir)
19
+ surrounded by parentheses and followed by a single space (ie. '(.venv) ').
20
+
21
+ .Example
22
+ Activate.ps1
23
+ Activates the Python virtual environment that contains the Activate.ps1 script.
24
+
25
+ .Example
26
+ Activate.ps1 -Verbose
27
+ Activates the Python virtual environment that contains the Activate.ps1 script,
28
+ and shows extra information about the activation as it executes.
29
+
30
+ .Example
31
+ Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv
32
+ Activates the Python virtual environment located in the specified location.
33
+
34
+ .Example
35
+ Activate.ps1 -Prompt "MyPython"
36
+ Activates the Python virtual environment that contains the Activate.ps1 script,
37
+ and prefixes the current prompt with the specified string (surrounded in
38
+ parentheses) while the virtual environment is active.
39
+
40
+ .Notes
41
+ On Windows, it may be required to enable this Activate.ps1 script by setting the
42
+ execution policy for the user. You can do this by issuing the following PowerShell
43
+ command:
44
+
45
+ PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
46
+
47
+ For more information on Execution Policies:
48
+ https://go.microsoft.com/fwlink/?LinkID=135170
49
+
50
+ #>
51
+ Param(
52
+ [Parameter(Mandatory = $false)]
53
+ [String]
54
+ $VenvDir,
55
+ [Parameter(Mandatory = $false)]
56
+ [String]
57
+ $Prompt
58
+ )
59
+
60
+ <# Function declarations --------------------------------------------------- #>
61
+
62
+ <#
63
+ .Synopsis
64
+ Remove all shell session elements added by the Activate script, including the
65
+ addition of the virtual environment's Python executable from the beginning of
66
+ the PATH variable.
67
+
68
+ .Parameter NonDestructive
69
+ If present, do not remove this function from the global namespace for the
70
+ session.
71
+
72
+ #>
73
+ function global:deactivate ([switch]$NonDestructive) {
74
+ # Revert to original values
75
+
76
+ # The prior prompt:
77
+ if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) {
78
+ Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt
79
+ Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT
80
+ }
81
+
82
+ # The prior PYTHONHOME:
83
+ if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) {
84
+ Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME
85
+ Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME
86
+ }
87
+
88
+ # The prior PATH:
89
+ if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) {
90
+ Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH
91
+ Remove-Item -Path Env:_OLD_VIRTUAL_PATH
92
+ }
93
+
94
+ # Just remove the VIRTUAL_ENV altogether:
95
+ if (Test-Path -Path Env:VIRTUAL_ENV) {
96
+ Remove-Item -Path env:VIRTUAL_ENV
97
+ }
98
+
99
+ # Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether:
100
+ if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) {
101
+ Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force
102
+ }
103
+
104
+ # Leave deactivate function in the global namespace if requested:
105
+ if (-not $NonDestructive) {
106
+ Remove-Item -Path function:deactivate
107
+ }
108
+ }
109
+
110
+ <#
111
+ .Description
112
+ Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the
113
+ given folder, and returns them in a map.
114
+
115
+ For each line in the pyvenv.cfg file, if that line can be parsed into exactly
116
+ two strings separated by `=` (with any amount of whitespace surrounding the =)
117
+ then it is considered a `key = value` line. The left hand string is the key,
118
+ the right hand is the value.
119
+
120
+ If the value starts with a `'` or a `"` then the first and last character is
121
+ stripped from the value before being captured.
122
+
123
+ .Parameter ConfigDir
124
+ Path to the directory that contains the `pyvenv.cfg` file.
125
+ #>
126
+ function Get-PyVenvConfig(
127
+ [String]
128
+ $ConfigDir
129
+ ) {
130
+ Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg"
131
+
132
+ # Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue).
133
+ $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue
134
+
135
+ # An empty map will be returned if no config file is found.
136
+ $pyvenvConfig = @{ }
137
+
138
+ if ($pyvenvConfigPath) {
139
+
140
+ Write-Verbose "File exists, parse `key = value` lines"
141
+ $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath
142
+
143
+ $pyvenvConfigContent | ForEach-Object {
144
+ $keyval = $PSItem -split "\s*=\s*", 2
145
+ if ($keyval[0] -and $keyval[1]) {
146
+ $val = $keyval[1]
147
+
148
+ # Remove extraneous quotations around a string value.
149
+ if ("'""".Contains($val.Substring(0, 1))) {
150
+ $val = $val.Substring(1, $val.Length - 2)
151
+ }
152
+
153
+ $pyvenvConfig[$keyval[0]] = $val
154
+ Write-Verbose "Adding Key: '$($keyval[0])'='$val'"
155
+ }
156
+ }
157
+ }
158
+ return $pyvenvConfig
159
+ }
160
+
161
+
162
+ <# Begin Activate script --------------------------------------------------- #>
163
+
164
+ # Determine the containing directory of this script
165
+ $VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
166
+ $VenvExecDir = Get-Item -Path $VenvExecPath
167
+
168
+ Write-Verbose "Activation script is located in path: '$VenvExecPath'"
169
+ Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)"
170
+ Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)"
171
+
172
+ # Set values required in priority: CmdLine, ConfigFile, Default
173
+ # First, get the location of the virtual environment, it might not be
174
+ # VenvExecDir if specified on the command line.
175
+ if ($VenvDir) {
176
+ Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values"
177
+ }
178
+ else {
179
+ Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir."
180
+ $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/")
181
+ Write-Verbose "VenvDir=$VenvDir"
182
+ }
183
+
184
+ # Next, read the `pyvenv.cfg` file to determine any required value such
185
+ # as `prompt`.
186
+ $pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir
187
+
188
+ # Next, set the prompt from the command line, or the config file, or
189
+ # just use the name of the virtual environment folder.
190
+ if ($Prompt) {
191
+ Write-Verbose "Prompt specified as argument, using '$Prompt'"
192
+ }
193
+ else {
194
+ Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value"
195
+ if ($pyvenvCfg -and $pyvenvCfg['prompt']) {
196
+ Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'"
197
+ $Prompt = $pyvenvCfg['prompt'];
198
+ }
199
+ else {
200
+ Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)"
201
+ Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'"
202
+ $Prompt = Split-Path -Path $venvDir -Leaf
203
+ }
204
+ }
205
+
206
+ Write-Verbose "Prompt = '$Prompt'"
207
+ Write-Verbose "VenvDir='$VenvDir'"
208
+
209
+ # Deactivate any currently active virtual environment, but leave the
210
+ # deactivate function in place.
211
+ deactivate -nondestructive
212
+
213
+ # Now set the environment variable VIRTUAL_ENV, used by many tools to determine
214
+ # that there is an activated venv.
215
+ $env:VIRTUAL_ENV = $VenvDir
216
+
217
+ if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) {
218
+
219
+ Write-Verbose "Setting prompt to '$Prompt'"
220
+
221
+ # Set the prompt to include the env name
222
+ # Make sure _OLD_VIRTUAL_PROMPT is global
223
+ function global:_OLD_VIRTUAL_PROMPT { "" }
224
+ Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT
225
+ New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt
226
+
227
+ function global:prompt {
228
+ Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) "
229
+ _OLD_VIRTUAL_PROMPT
230
+ }
231
+ }
232
+
233
+ # Clear PYTHONHOME
234
+ if (Test-Path -Path Env:PYTHONHOME) {
235
+ Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME
236
+ Remove-Item -Path Env:PYTHONHOME
237
+ }
238
+
239
+ # Add the venv to the PATH
240
+ Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH
241
+ $Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"
hfacevenv/bin/activate ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file must be used with "source bin/activate" *from bash*
2
+ # you cannot run it directly
3
+
4
+ deactivate () {
5
+ # reset old environment variables
6
+ if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
7
+ PATH="${_OLD_VIRTUAL_PATH:-}"
8
+ export PATH
9
+ unset _OLD_VIRTUAL_PATH
10
+ fi
11
+ if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
12
+ PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
13
+ export PYTHONHOME
14
+ unset _OLD_VIRTUAL_PYTHONHOME
15
+ fi
16
+
17
+ # This should detect bash and zsh, which have a hash command that must
18
+ # be called to get it to forget past commands. Without forgetting
19
+ # past commands the $PATH changes we made may not be respected
20
+ if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
21
+ hash -r 2> /dev/null
22
+ fi
23
+
24
+ if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
25
+ PS1="${_OLD_VIRTUAL_PS1:-}"
26
+ export PS1
27
+ unset _OLD_VIRTUAL_PS1
28
+ fi
29
+
30
+ unset VIRTUAL_ENV
31
+ if [ ! "${1:-}" = "nondestructive" ] ; then
32
+ # Self destruct!
33
+ unset -f deactivate
34
+ fi
35
+ }
36
+
37
+ # unset irrelevant variables
38
+ deactivate nondestructive
39
+
40
+ VIRTUAL_ENV="/Users/tazi/Desktop/huggingface/Email_Classification/hfacevenv"
41
+ export VIRTUAL_ENV
42
+
43
+ _OLD_VIRTUAL_PATH="$PATH"
44
+ PATH="$VIRTUAL_ENV/bin:$PATH"
45
+ export PATH
46
+
47
+ # unset PYTHONHOME if set
48
+ # this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
49
+ # could use `if (set -u; : $PYTHONHOME) ;` in bash
50
+ if [ -n "${PYTHONHOME:-}" ] ; then
51
+ _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
52
+ unset PYTHONHOME
53
+ fi
54
+
55
+ if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
56
+ _OLD_VIRTUAL_PS1="${PS1:-}"
57
+ PS1="(hfacevenv) ${PS1:-}"
58
+ export PS1
59
+ fi
60
+
61
+ # This should detect bash and zsh, which have a hash command that must
62
+ # be called to get it to forget past commands. Without forgetting
63
+ # past commands the $PATH changes we made may not be respected
64
+ if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
65
+ hash -r 2> /dev/null
66
+ fi
hfacevenv/bin/activate.csh ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file must be used with "source bin/activate.csh" *from csh*.
2
+ # You cannot run it directly.
3
+ # Created by Davide Di Blasi <[email protected]>.
4
+ # Ported to Python 3.3 venv by Andrew Svetlov <[email protected]>
5
+
6
+ alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate'
7
+
8
+ # Unset irrelevant variables.
9
+ deactivate nondestructive
10
+
11
+ setenv VIRTUAL_ENV "/Users/tazi/Desktop/huggingface/Email_Classification/hfacevenv"
12
+
13
+ set _OLD_VIRTUAL_PATH="$PATH"
14
+ setenv PATH "$VIRTUAL_ENV/bin:$PATH"
15
+
16
+
17
+ set _OLD_VIRTUAL_PROMPT="$prompt"
18
+
19
+ if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
20
+ set prompt = "(hfacevenv) $prompt"
21
+ endif
22
+
23
+ alias pydoc python -m pydoc
24
+
25
+ rehash
hfacevenv/bin/activate.fish ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file must be used with "source <venv>/bin/activate.fish" *from fish*
2
+ # (https://fishshell.com/); you cannot run it directly.
3
+
4
+ function deactivate -d "Exit virtual environment and return to normal shell environment"
5
+ # reset old environment variables
6
+ if test -n "$_OLD_VIRTUAL_PATH"
7
+ set -gx PATH $_OLD_VIRTUAL_PATH
8
+ set -e _OLD_VIRTUAL_PATH
9
+ end
10
+ if test -n "$_OLD_VIRTUAL_PYTHONHOME"
11
+ set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
12
+ set -e _OLD_VIRTUAL_PYTHONHOME
13
+ end
14
+
15
+ if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
16
+ functions -e fish_prompt
17
+ set -e _OLD_FISH_PROMPT_OVERRIDE
18
+ functions -c _old_fish_prompt fish_prompt
19
+ functions -e _old_fish_prompt
20
+ end
21
+
22
+ set -e VIRTUAL_ENV
23
+ if test "$argv[1]" != "nondestructive"
24
+ # Self-destruct!
25
+ functions -e deactivate
26
+ end
27
+ end
28
+
29
+ # Unset irrelevant variables.
30
+ deactivate nondestructive
31
+
32
+ set -gx VIRTUAL_ENV "/Users/tazi/Desktop/huggingface/Email_Classification/hfacevenv"
33
+
34
+ set -gx _OLD_VIRTUAL_PATH $PATH
35
+ set -gx PATH "$VIRTUAL_ENV/bin" $PATH
36
+
37
+ # Unset PYTHONHOME if set.
38
+ if set -q PYTHONHOME
39
+ set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
40
+ set -e PYTHONHOME
41
+ end
42
+
43
+ if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
44
+ # fish uses a function instead of an env var to generate the prompt.
45
+
46
+ # Save the current fish_prompt function as the function _old_fish_prompt.
47
+ functions -c fish_prompt _old_fish_prompt
48
+
49
+ # With the original prompt function renamed, we can override with our own.
50
+ function fish_prompt
51
+ # Save the return status of the last command.
52
+ set -l old_status $status
53
+
54
+ # Output the venv prompt; color taken from the blue of the Python logo.
55
+ printf "%s%s%s" (set_color 4B8BBE) "(hfacevenv) " (set_color normal)
56
+
57
+ # Restore the return status of the previous command.
58
+ echo "exit $old_status" | .
59
+ # Output the original/"old" prompt.
60
+ _old_fish_prompt
61
+ end
62
+
63
+ set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
64
+ end
hfacevenv/bin/pip ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/Users/tazi/Desktop/huggingface/Email_Classification/hfacevenv/bin/python
2
+ # -*- coding: utf-8 -*-
3
+ import re
4
+ import sys
5
+ from pip._internal.cli.main import main
6
+ if __name__ == '__main__':
7
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
+ sys.exit(main())
hfacevenv/bin/pip3 ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/Users/tazi/Desktop/huggingface/Email_Classification/hfacevenv/bin/python
2
+ # -*- coding: utf-8 -*-
3
+ import re
4
+ import sys
5
+ from pip._internal.cli.main import main
6
+ if __name__ == '__main__':
7
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
+ sys.exit(main())
hfacevenv/bin/pip3.9 ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/Users/tazi/Desktop/huggingface/Email_Classification/hfacevenv/bin/python
2
+ # -*- coding: utf-8 -*-
3
+ import re
4
+ import sys
5
+ from pip._internal.cli.main import main
6
+ if __name__ == '__main__':
7
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
+ sys.exit(main())
hfacevenv/bin/python ADDED
@@ -0,0 +1 @@
 
 
1
+ /Users/tazi/opt/anaconda3/bin/python
hfacevenv/bin/python3 ADDED
@@ -0,0 +1 @@
 
 
1
+ python
hfacevenv/bin/python3.9 ADDED
@@ -0,0 +1 @@
 
 
1
+ python
hfacevenv/lib/python3.9/site-packages/_distutils_hack/__init__.py ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ import os
3
+ import re
4
+ import importlib
5
+ import warnings
6
+
7
+
8
+ is_pypy = '__pypy__' in sys.builtin_module_names
9
+
10
+
11
+ warnings.filterwarnings('ignore',
12
+ r'.+ distutils\b.+ deprecated',
13
+ DeprecationWarning)
14
+
15
+
16
+ def warn_distutils_present():
17
+ if 'distutils' not in sys.modules:
18
+ return
19
+ if is_pypy and sys.version_info < (3, 7):
20
+ # PyPy for 3.6 unconditionally imports distutils, so bypass the warning
21
+ # https://foss.heptapod.net/pypy/pypy/-/blob/be829135bc0d758997b3566062999ee8b23872b4/lib-python/3/site.py#L250
22
+ return
23
+ warnings.warn(
24
+ "Distutils was imported before Setuptools, but importing Setuptools "
25
+ "also replaces the `distutils` module in `sys.modules`. This may lead "
26
+ "to undesirable behaviors or errors. To avoid these issues, avoid "
27
+ "using distutils directly, ensure that setuptools is installed in the "
28
+ "traditional way (e.g. not an editable install), and/or make sure "
29
+ "that setuptools is always imported before distutils.")
30
+
31
+
32
+ def clear_distutils():
33
+ if 'distutils' not in sys.modules:
34
+ return
35
+ warnings.warn("Setuptools is replacing distutils.")
36
+ mods = [name for name in sys.modules if re.match(r'distutils\b', name)]
37
+ for name in mods:
38
+ del sys.modules[name]
39
+
40
+
41
+ def enabled():
42
+ """
43
+ Allow selection of distutils by environment variable.
44
+ """
45
+ which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'stdlib')
46
+ return which == 'local'
47
+
48
+
49
+ def ensure_local_distutils():
50
+ clear_distutils()
51
+ distutils = importlib.import_module('setuptools._distutils')
52
+ distutils.__name__ = 'distutils'
53
+ sys.modules['distutils'] = distutils
54
+
55
+ # sanity check that submodules load as expected
56
+ core = importlib.import_module('distutils.core')
57
+ assert '_distutils' in core.__file__, core.__file__
58
+
59
+
60
+ def do_override():
61
+ """
62
+ Ensure that the local copy of distutils is preferred over stdlib.
63
+
64
+ See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401
65
+ for more motivation.
66
+ """
67
+ if enabled():
68
+ warn_distutils_present()
69
+ ensure_local_distutils()
70
+
71
+
72
+ class DistutilsMetaFinder:
73
+ def find_spec(self, fullname, path, target=None):
74
+ if path is not None:
75
+ return
76
+
77
+ method_name = 'spec_for_{fullname}'.format(**locals())
78
+ method = getattr(self, method_name, lambda: None)
79
+ return method()
80
+
81
+ def spec_for_distutils(self):
82
+ import importlib.abc
83
+ import importlib.util
84
+
85
+ class DistutilsLoader(importlib.abc.Loader):
86
+
87
+ def create_module(self, spec):
88
+ return importlib.import_module('setuptools._distutils')
89
+
90
+ def exec_module(self, module):
91
+ pass
92
+
93
+ return importlib.util.spec_from_loader('distutils', DistutilsLoader())
94
+
95
+ def spec_for_pip(self):
96
+ """
97
+ Ensure stdlib distutils when running under pip.
98
+ See pypa/pip#8761 for rationale.
99
+ """
100
+ if self.pip_imported_during_build():
101
+ return
102
+ clear_distutils()
103
+ self.spec_for_distutils = lambda: None
104
+
105
+ @staticmethod
106
+ def pip_imported_during_build():
107
+ """
108
+ Detect if pip is being imported in a build script. Ref #2355.
109
+ """
110
+ import traceback
111
+ return any(
112
+ frame.f_globals['__file__'].endswith('setup.py')
113
+ for frame, line in traceback.walk_stack(None)
114
+ )
115
+
116
+
117
+ DISTUTILS_FINDER = DistutilsMetaFinder()
118
+
119
+
120
+ def add_shim():
121
+ sys.meta_path.insert(0, DISTUTILS_FINDER)
122
+
123
+
124
+ def remove_shim():
125
+ try:
126
+ sys.meta_path.remove(DISTUTILS_FINDER)
127
+ except ValueError:
128
+ pass
hfacevenv/lib/python3.9/site-packages/_distutils_hack/override.py ADDED
@@ -0,0 +1 @@
 
 
1
+ __import__('_distutils_hack').do_override()
hfacevenv/lib/python3.9/site-packages/distutils-precedence.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ea7ffef3fe2a117ee12c68ed6553617f0d7fd2f0590257c25c484959a3b7373
3
+ size 152
hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2008-present The pip developers (see AUTHORS.txt file)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/METADATA ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.1
2
+ Name: pip
3
+ Version: 22.0.4
4
+ Summary: The PyPA recommended tool for installing Python packages.
5
+ Home-page: https://pip.pypa.io/
6
+ Author: The pip developers
7
+ Author-email: [email protected]
8
+ License: MIT
9
+ Project-URL: Documentation, https://pip.pypa.io
10
+ Project-URL: Source, https://github.com/pypa/pip
11
+ Project-URL: Changelog, https://pip.pypa.io/en/stable/news/
12
+ Platform: UNKNOWN
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Topic :: Software Development :: Build Tools
17
+ Classifier: Programming Language :: Python
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.7
21
+ Classifier: Programming Language :: Python :: 3.8
22
+ Classifier: Programming Language :: Python :: 3.9
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: Implementation :: CPython
25
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
26
+ Requires-Python: >=3.7
27
+ License-File: LICENSE.txt
28
+
29
+ pip - The Python Package Installer
30
+ ==================================
31
+
32
+ .. image:: https://img.shields.io/pypi/v/pip.svg
33
+ :target: https://pypi.org/project/pip/
34
+
35
+ .. image:: https://readthedocs.org/projects/pip/badge/?version=latest
36
+ :target: https://pip.pypa.io/en/latest
37
+
38
+ pip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes.
39
+
40
+ Please take a look at our documentation for how to install and use pip:
41
+
42
+ * `Installation`_
43
+ * `Usage`_
44
+
45
+ We release updates regularly, with a new version every 3 months. Find more details in our documentation:
46
+
47
+ * `Release notes`_
48
+ * `Release process`_
49
+
50
+ In pip 20.3, we've `made a big improvement to the heart of pip`_; `learn more`_. We want your input, so `sign up for our user experience research studies`_ to help us do it right.
51
+
52
+ **Note**: pip 21.0, in January 2021, removed Python 2 support, per pip's `Python 2 support policy`_. Please migrate to Python 3.
53
+
54
+ If you find bugs, need help, or want to talk to the developers, please use our mailing lists or chat rooms:
55
+
56
+ * `Issue tracking`_
57
+ * `Discourse channel`_
58
+ * `User IRC`_
59
+
60
+ If you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms:
61
+
62
+ * `GitHub page`_
63
+ * `Development documentation`_
64
+ * `Development mailing list`_
65
+ * `Development IRC`_
66
+
67
+ Code of Conduct
68
+ ---------------
69
+
70
+ Everyone interacting in the pip project's codebases, issue trackers, chat
71
+ rooms, and mailing lists is expected to follow the `PSF Code of Conduct`_.
72
+
73
+ .. _package installer: https://packaging.python.org/guides/tool-recommendations/
74
+ .. _Python Package Index: https://pypi.org
75
+ .. _Installation: https://pip.pypa.io/en/stable/installation/
76
+ .. _Usage: https://pip.pypa.io/en/stable/
77
+ .. _Release notes: https://pip.pypa.io/en/stable/news.html
78
+ .. _Release process: https://pip.pypa.io/en/latest/development/release-process/
79
+ .. _GitHub page: https://github.com/pypa/pip
80
+ .. _Development documentation: https://pip.pypa.io/en/latest/development
81
+ .. _made a big improvement to the heart of pip: https://pyfound.blogspot.com/2020/11/pip-20-3-new-resolver.html
82
+ .. _learn more: https://pip.pypa.io/en/latest/user_guide/#changes-to-the-pip-dependency-resolver-in-20-3-2020
83
+ .. _sign up for our user experience research studies: https://pyfound.blogspot.com/2020/03/new-pip-resolver-to-roll-out-this-year.html
84
+ .. _Python 2 support policy: https://pip.pypa.io/en/latest/development/release-process/#python-2-support
85
+ .. _Issue tracking: https://github.com/pypa/pip/issues
86
+ .. _Discourse channel: https://discuss.python.org/c/packaging
87
+ .. _Development mailing list: https://mail.python.org/mailman3/lists/distutils-sig.python.org/
88
+ .. _User IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa
89
+ .. _Development IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa-dev
90
+ .. _PSF Code of Conduct: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md
91
+
92
+
hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/RECORD ADDED
@@ -0,0 +1,1053 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ../../../bin/pip,sha256=qBhSWYk_-UYKooOvgFtRVUX-Nnp6HuHxtz5G9IsOlBw,278
2
+ ../../../bin/pip3,sha256=qBhSWYk_-UYKooOvgFtRVUX-Nnp6HuHxtz5G9IsOlBw,278
3
+ ../../../bin/pip3.9,sha256=qBhSWYk_-UYKooOvgFtRVUX-Nnp6HuHxtz5G9IsOlBw,278
4
+ pip-22.0.4.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
5
+ pip-22.0.4.dist-info/LICENSE.txt,sha256=Y0MApmnUmurmWxLGxIySTFGkzfPR_whtw0VtyLyqIQQ,1093
6
+ pip-22.0.4.dist-info/METADATA,sha256=bGtDzdgW1AF93Nx32ySc78yQHtHkOrRD146Dvsz85CM,4166
7
+ pip-22.0.4.dist-info/RECORD,,
8
+ pip-22.0.4.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ pip-22.0.4.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
10
+ pip-22.0.4.dist-info/entry_points.txt,sha256=5ExSa1s54zSPNA_1epJn5SX06786S8k5YHwskMvVYzw,125
11
+ pip-22.0.4.dist-info/top_level.txt,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
12
+ pip/__init__.py,sha256=b_avKym1xgWv1_1CobpKDp59sdjm_9nwB7sencJQUEY,357
13
+ pip/__main__.py,sha256=mXwWDftNLMKfwVqKFWGE_uuBZvGSIiUELhLkeysIuZc,1198
14
+ pip/__pycache__/__init__.cpython-39.pyc,,
15
+ pip/__pycache__/__main__.cpython-39.pyc,,
16
+ pip/_internal/__init__.py,sha256=nnFCuxrPMgALrIDxSoy-H6Zj4W4UY60D-uL1aJyq0pc,573
17
+ pip/_internal/__pycache__/__init__.cpython-39.pyc,,
18
+ pip/_internal/__pycache__/build_env.cpython-39.pyc,,
19
+ pip/_internal/__pycache__/cache.cpython-39.pyc,,
20
+ pip/_internal/__pycache__/configuration.cpython-39.pyc,,
21
+ pip/_internal/__pycache__/exceptions.cpython-39.pyc,,
22
+ pip/_internal/__pycache__/main.cpython-39.pyc,,
23
+ pip/_internal/__pycache__/pyproject.cpython-39.pyc,,
24
+ pip/_internal/__pycache__/self_outdated_check.cpython-39.pyc,,
25
+ pip/_internal/__pycache__/wheel_builder.cpython-39.pyc,,
26
+ pip/_internal/build_env.py,sha256=QAsnxJFvj74jS2cZUcxk7zXLvrtAYiRL0EkSPkpSJTo,9739
27
+ pip/_internal/cache.py,sha256=71eaYwrls34HJ6gzbmmYiotiKhPNFTM_tqYJXD5nf3s,9441
28
+ pip/_internal/cli/__init__.py,sha256=FkHBgpxxb-_gd6r1FjnNhfMOzAUYyXoXKJ6abijfcFU,132
29
+ pip/_internal/cli/__pycache__/__init__.cpython-39.pyc,,
30
+ pip/_internal/cli/__pycache__/autocompletion.cpython-39.pyc,,
31
+ pip/_internal/cli/__pycache__/base_command.cpython-39.pyc,,
32
+ pip/_internal/cli/__pycache__/cmdoptions.cpython-39.pyc,,
33
+ pip/_internal/cli/__pycache__/command_context.cpython-39.pyc,,
34
+ pip/_internal/cli/__pycache__/main.cpython-39.pyc,,
35
+ pip/_internal/cli/__pycache__/main_parser.cpython-39.pyc,,
36
+ pip/_internal/cli/__pycache__/parser.cpython-39.pyc,,
37
+ pip/_internal/cli/__pycache__/progress_bars.cpython-39.pyc,,
38
+ pip/_internal/cli/__pycache__/req_command.cpython-39.pyc,,
39
+ pip/_internal/cli/__pycache__/spinners.cpython-39.pyc,,
40
+ pip/_internal/cli/__pycache__/status_codes.cpython-39.pyc,,
41
+ pip/_internal/cli/autocompletion.py,sha256=wY2JPZY2Eji1vhR7bVo-yCBPJ9LCy6P80iOAhZD1Vi8,6676
42
+ pip/_internal/cli/base_command.py,sha256=zYHdQssEkCvWHYf3dtIApaVaxOwAh3maA61nVxaZF2M,8152
43
+ pip/_internal/cli/cmdoptions.py,sha256=TTYO0nxK9YyLwrXk1NHrn7X3dbGoqdV02Yb8kdVoVhc,28526
44
+ pip/_internal/cli/command_context.py,sha256=a1pBBvvGLDiZ1Kw64_4tT6HmRTwYDoYy8JFgG5Czn7s,760
45
+ pip/_internal/cli/main.py,sha256=ioJ8IVlb2K1qLOxR-tXkee9lURhYV89CDM71MKag7YY,2472
46
+ pip/_internal/cli/main_parser.py,sha256=Q9TnytfuC5Z2JSjBFWVGtEdYLFy7rukNIb04movHdAo,2614
47
+ pip/_internal/cli/parser.py,sha256=CDXTuFr2UD8ozOlZYf1KDziQdo9-X_IaYOiUcyJQwrA,10788
48
+ pip/_internal/cli/progress_bars.py,sha256=_52w11WoZrvDSR3oItLWvLrEZFUKAfLf4Y6I6WtOnIU,10339
49
+ pip/_internal/cli/req_command.py,sha256=VwqonOy18QwZsRsVjHhp-6w15fG9x3Ltwoa8yJqQno8,18669
50
+ pip/_internal/cli/spinners.py,sha256=TFhjxtOnLeNJ5YmRvQm4eKPgPbJNkZiqO8jOXuxRaYU,5076
51
+ pip/_internal/cli/status_codes.py,sha256=sEFHUaUJbqv8iArL3HAtcztWZmGOFX01hTesSytDEh0,116
52
+ pip/_internal/commands/__init__.py,sha256=Vc1HjsLEtyCh7506OozPHPKXe2Hk-z9cFkFF3BMj1lM,3736
53
+ pip/_internal/commands/__pycache__/__init__.cpython-39.pyc,,
54
+ pip/_internal/commands/__pycache__/cache.cpython-39.pyc,,
55
+ pip/_internal/commands/__pycache__/check.cpython-39.pyc,,
56
+ pip/_internal/commands/__pycache__/completion.cpython-39.pyc,,
57
+ pip/_internal/commands/__pycache__/configuration.cpython-39.pyc,,
58
+ pip/_internal/commands/__pycache__/debug.cpython-39.pyc,,
59
+ pip/_internal/commands/__pycache__/download.cpython-39.pyc,,
60
+ pip/_internal/commands/__pycache__/freeze.cpython-39.pyc,,
61
+ pip/_internal/commands/__pycache__/hash.cpython-39.pyc,,
62
+ pip/_internal/commands/__pycache__/help.cpython-39.pyc,,
63
+ pip/_internal/commands/__pycache__/index.cpython-39.pyc,,
64
+ pip/_internal/commands/__pycache__/install.cpython-39.pyc,,
65
+ pip/_internal/commands/__pycache__/list.cpython-39.pyc,,
66
+ pip/_internal/commands/__pycache__/search.cpython-39.pyc,,
67
+ pip/_internal/commands/__pycache__/show.cpython-39.pyc,,
68
+ pip/_internal/commands/__pycache__/uninstall.cpython-39.pyc,,
69
+ pip/_internal/commands/__pycache__/wheel.cpython-39.pyc,,
70
+ pip/_internal/commands/cache.py,sha256=p9gvc6W_xgxE2zO0o8NXqO1gGJEinEK42qEC-a7Cnuk,7524
71
+ pip/_internal/commands/check.py,sha256=0gjXR7j36xJT5cs2heYU_dfOfpnFfzX8OoPNNoKhqdM,1685
72
+ pip/_internal/commands/completion.py,sha256=kTG_I1VR3N5kGC4Ma9pQTSoY9Q1URCrNyseHSQ-rCL4,2958
73
+ pip/_internal/commands/configuration.py,sha256=arE8vLstjBg-Ar1krXF-bBmT1qBtnL7Fpk-NVh38a0U,8944
74
+ pip/_internal/commands/debug.py,sha256=krET-y45CnQzXwKR1qA3M_tJE4LE2vnQtm3yfGyDSnE,6629
75
+ pip/_internal/commands/download.py,sha256=gVIAEOcpWolhRj9hl89Qzn52G2b_pcZ8naXhxaXobdo,4942
76
+ pip/_internal/commands/freeze.py,sha256=gCjoD6foBZPBAAYx5t8zZLkJhsF_ZRtnb3dPuD7beO8,2951
77
+ pip/_internal/commands/hash.py,sha256=EVVOuvGtoPEdFi8SNnmdqlCQrhCxV-kJsdwtdcCnXGQ,1703
78
+ pip/_internal/commands/help.py,sha256=gcc6QDkcgHMOuAn5UxaZwAStsRBrnGSn_yxjS57JIoM,1132
79
+ pip/_internal/commands/index.py,sha256=8pYkICUJlccjm3E83b7UuZ5DtOfLh1N7ZHXAgkajjHo,4849
80
+ pip/_internal/commands/install.py,sha256=YVygBF6vfrNi0jmdNBCM6bcoWb7vaALEGG1--8Mmf88,27893
81
+ pip/_internal/commands/list.py,sha256=tTjZ7u0VIh3uhnX231Q9pwt6ObT_zrDfixRQvgpJAvM,12221
82
+ pip/_internal/commands/search.py,sha256=sbBZiARRc050QquOKcCvOr2K3XLsoYebLKZGRi__iUI,5697
83
+ pip/_internal/commands/show.py,sha256=2VicM3jF0YWgn4O1jG_QF5oxOT0ln57VDu1NE6hqWcM,5859
84
+ pip/_internal/commands/uninstall.py,sha256=DNTYAGJNljMO_YYBxrpcwj0FEl7lo_P55_98O6g2TNk,3526
85
+ pip/_internal/commands/wheel.py,sha256=7HAjLclZxIzBrX6JmhmGBVxH5xrjaBYCtSdpQi1pWCE,6206
86
+ pip/_internal/configuration.py,sha256=qmCX3uuVM73PQeAuWQHic22bhops8s31B8k02nFAoiQ,13171
87
+ pip/_internal/distributions/__init__.py,sha256=Hq6kt6gXBgjNit5hTTWLAzeCNOKoB-N0pGYSqehrli8,858
88
+ pip/_internal/distributions/__pycache__/__init__.cpython-39.pyc,,
89
+ pip/_internal/distributions/__pycache__/base.cpython-39.pyc,,
90
+ pip/_internal/distributions/__pycache__/installed.cpython-39.pyc,,
91
+ pip/_internal/distributions/__pycache__/sdist.cpython-39.pyc,,
92
+ pip/_internal/distributions/__pycache__/wheel.cpython-39.pyc,,
93
+ pip/_internal/distributions/base.py,sha256=3FUYD8Gb4YuSu3pggC_FRctZBDbpm5ZK89tPksIUjoE,1172
94
+ pip/_internal/distributions/installed.py,sha256=HzfNRu3smoOm54m8H2iK6LHzBx6_DEnka4OPEsizbXg,680
95
+ pip/_internal/distributions/sdist.py,sha256=0nJvU1RhZtbwaeYtLbzSwYrbGRcY6IgNsWdEhAHROK8,5499
96
+ pip/_internal/distributions/wheel.py,sha256=-NgzdIs-w_hcer_U81yzgpVTljJRg5m79xufqvbjv0s,1115
97
+ pip/_internal/exceptions.py,sha256=U-dV1ixkSz6NAU6Aw9dosKi2EzZ5D3BA7ilYZuTLKeU,20912
98
+ pip/_internal/index/__init__.py,sha256=vpt-JeTZefh8a-FC22ZeBSXFVbuBcXSGiILhQZJaNpQ,30
99
+ pip/_internal/index/__pycache__/__init__.cpython-39.pyc,,
100
+ pip/_internal/index/__pycache__/collector.cpython-39.pyc,,
101
+ pip/_internal/index/__pycache__/package_finder.cpython-39.pyc,,
102
+ pip/_internal/index/__pycache__/sources.cpython-39.pyc,,
103
+ pip/_internal/index/collector.py,sha256=E4yZHzlzPtaXg2BxaugrNg1Jwtwgs4gC-Q_0bzYrBU4,19671
104
+ pip/_internal/index/package_finder.py,sha256=9UVg-7582nYNEWa0cIIl8otzPm4mlfyrQVuozAcssLo,36783
105
+ pip/_internal/index/sources.py,sha256=SVyPitv08-Qalh2_Bk5diAJ9GAA_d-a93koouQodAG0,6557
106
+ pip/_internal/locations/__init__.py,sha256=ergvPwlfNTmQYFmaRYbj--ZwTN5izgTL9KE5d0FB7-8,17362
107
+ pip/_internal/locations/__pycache__/__init__.cpython-39.pyc,,
108
+ pip/_internal/locations/__pycache__/_distutils.cpython-39.pyc,,
109
+ pip/_internal/locations/__pycache__/_sysconfig.cpython-39.pyc,,
110
+ pip/_internal/locations/__pycache__/base.cpython-39.pyc,,
111
+ pip/_internal/locations/_distutils.py,sha256=Sk7tw8ZP1DWMYJ8MibABsa8IME2Ejv1PKeGlYQCBTZc,5871
112
+ pip/_internal/locations/_sysconfig.py,sha256=LQNKTJKyjVqxXaPntlBwdUqTG1xwYf6GVCKMbyRJx5M,7918
113
+ pip/_internal/locations/base.py,sha256=x5D1ONktmPJd8nnUTh-ELsAJ7fiXA-k-0a_vhfi2_Us,1579
114
+ pip/_internal/main.py,sha256=r-UnUe8HLo5XFJz8inTcOOTiu_sxNhgHb6VwlGUllOI,340
115
+ pip/_internal/metadata/__init__.py,sha256=iGoDbe_iTXQTIAEVy9f7dm-VQfZANO8kkwFr1CpqxqI,2036
116
+ pip/_internal/metadata/__pycache__/__init__.cpython-39.pyc,,
117
+ pip/_internal/metadata/__pycache__/base.cpython-39.pyc,,
118
+ pip/_internal/metadata/__pycache__/pkg_resources.cpython-39.pyc,,
119
+ pip/_internal/metadata/base.py,sha256=SCRPtShrtPy0lfFxuaFTgJJHsRXToGFToQUAZoBBbeA,19429
120
+ pip/_internal/metadata/pkg_resources.py,sha256=wAnEtrcgH9YtV996MfoBjR2hGLHvi3uxk0vUOHbqBak,9456
121
+ pip/_internal/models/__init__.py,sha256=3DHUd_qxpPozfzouoqa9g9ts1Czr5qaHfFxbnxriepM,63
122
+ pip/_internal/models/__pycache__/__init__.cpython-39.pyc,,
123
+ pip/_internal/models/__pycache__/candidate.cpython-39.pyc,,
124
+ pip/_internal/models/__pycache__/direct_url.cpython-39.pyc,,
125
+ pip/_internal/models/__pycache__/format_control.cpython-39.pyc,,
126
+ pip/_internal/models/__pycache__/index.cpython-39.pyc,,
127
+ pip/_internal/models/__pycache__/link.cpython-39.pyc,,
128
+ pip/_internal/models/__pycache__/scheme.cpython-39.pyc,,
129
+ pip/_internal/models/__pycache__/search_scope.cpython-39.pyc,,
130
+ pip/_internal/models/__pycache__/selection_prefs.cpython-39.pyc,,
131
+ pip/_internal/models/__pycache__/target_python.cpython-39.pyc,,
132
+ pip/_internal/models/__pycache__/wheel.cpython-39.pyc,,
133
+ pip/_internal/models/candidate.py,sha256=6pcABsaR7CfIHlbJbr2_kMkVJFL_yrYjTx6SVWUnCPQ,990
134
+ pip/_internal/models/direct_url.py,sha256=7XtGQSLLDQb5ZywI2EMnnLcddtf5CJLx44lMtTHPxFw,6350
135
+ pip/_internal/models/format_control.py,sha256=DJpMYjxeYKKQdwNcML2_F0vtAh-qnKTYe-CpTxQe-4g,2520
136
+ pip/_internal/models/index.py,sha256=tYnL8oxGi4aSNWur0mG8DAP7rC6yuha_MwJO8xw0crI,1030
137
+ pip/_internal/models/link.py,sha256=hoT_qsOBAgLBm9GKqpBrNF_mrEXeGXQE-aH_RX2cGgg,9817
138
+ pip/_internal/models/scheme.py,sha256=3EFQp_ICu_shH1-TBqhl0QAusKCPDFOlgHFeN4XowWs,738
139
+ pip/_internal/models/search_scope.py,sha256=LwloG0PJAmtI1hFXIypsD95kWE9xfR5hf_a2v1Vw7sk,4520
140
+ pip/_internal/models/selection_prefs.py,sha256=KZdi66gsR-_RUXUr9uejssk3rmTHrQVJWeNA2sV-VSY,1907
141
+ pip/_internal/models/target_python.py,sha256=qKpZox7J8NAaPmDs5C_aniwfPDxzvpkrCKqfwndG87k,3858
142
+ pip/_internal/models/wheel.py,sha256=hN9Ub-m-cAJCajCcQHyQNsqpcDCbPPDlEzBDwaBMc14,3500
143
+ pip/_internal/network/__init__.py,sha256=jf6Tt5nV_7zkARBrKojIXItgejvoegVJVKUbhAa5Ioc,50
144
+ pip/_internal/network/__pycache__/__init__.cpython-39.pyc,,
145
+ pip/_internal/network/__pycache__/auth.cpython-39.pyc,,
146
+ pip/_internal/network/__pycache__/cache.cpython-39.pyc,,
147
+ pip/_internal/network/__pycache__/download.cpython-39.pyc,,
148
+ pip/_internal/network/__pycache__/lazy_wheel.cpython-39.pyc,,
149
+ pip/_internal/network/__pycache__/session.cpython-39.pyc,,
150
+ pip/_internal/network/__pycache__/utils.cpython-39.pyc,,
151
+ pip/_internal/network/__pycache__/xmlrpc.cpython-39.pyc,,
152
+ pip/_internal/network/auth.py,sha256=a3C7Xaa8kTJjXkdi_wrUjqaySc8Z9Yz7U6QIbXfzMyc,12190
153
+ pip/_internal/network/cache.py,sha256=FJ3uTUo3wgf2KHmeZ3ltN9x3tQoy_0X6qNsRtNXsuL0,2131
154
+ pip/_internal/network/download.py,sha256=12Ef_L7MlhNUN_0-n_3DggozWJER8c9J0us16cbvkKA,6062
155
+ pip/_internal/network/lazy_wheel.py,sha256=1b8ZJ1w4bSBzpGzGwJR_CL2yQ6AFIwWQkS1vbPPw2XU,7627
156
+ pip/_internal/network/session.py,sha256=38IKGKC64MTVUIH5XOR1hr2pOCzp39RccykdmGAvqRU,16729
157
+ pip/_internal/network/utils.py,sha256=igLlTu_-q0LmL8FdJKq-Uj7AT_owrQ-T9FfyarkhK5U,4059
158
+ pip/_internal/network/xmlrpc.py,sha256=AzQgG4GgS152_cqmGr_Oz2MIXsCal-xfsis7fA7nmU0,1791
159
+ pip/_internal/operations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
160
+ pip/_internal/operations/__pycache__/__init__.cpython-39.pyc,,
161
+ pip/_internal/operations/__pycache__/check.cpython-39.pyc,,
162
+ pip/_internal/operations/__pycache__/freeze.cpython-39.pyc,,
163
+ pip/_internal/operations/__pycache__/prepare.cpython-39.pyc,,
164
+ pip/_internal/operations/build/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
165
+ pip/_internal/operations/build/__pycache__/__init__.cpython-39.pyc,,
166
+ pip/_internal/operations/build/__pycache__/metadata.cpython-39.pyc,,
167
+ pip/_internal/operations/build/__pycache__/metadata_editable.cpython-39.pyc,,
168
+ pip/_internal/operations/build/__pycache__/metadata_legacy.cpython-39.pyc,,
169
+ pip/_internal/operations/build/__pycache__/wheel.cpython-39.pyc,,
170
+ pip/_internal/operations/build/__pycache__/wheel_editable.cpython-39.pyc,,
171
+ pip/_internal/operations/build/__pycache__/wheel_legacy.cpython-39.pyc,,
172
+ pip/_internal/operations/build/metadata.py,sha256=ES_uRmAvhrNm_nDTpZxshBfUsvnXtkj-g_4rZrH9Rww,1404
173
+ pip/_internal/operations/build/metadata_editable.py,sha256=_Rai0VZjxoeJUkjkuICrq45LtjwFoDOveosMYH43rKc,1456
174
+ pip/_internal/operations/build/metadata_legacy.py,sha256=o-eU21As175hDC7dluM1fJJ_FqokTIShyWpjKaIpHZw,2198
175
+ pip/_internal/operations/build/wheel.py,sha256=AO9XnTGhTgHtZmU8Dkbfo1OGr41rBuSDjIgAa4zUKgE,1063
176
+ pip/_internal/operations/build/wheel_editable.py,sha256=TVETY-L_M_dSEKBhTIcQOP75zKVXw8tuq1U354Mm30A,1405
177
+ pip/_internal/operations/build/wheel_legacy.py,sha256=C9j6rukgQI1n_JeQLoZGuDdfUwzCXShyIdPTp6edbMQ,3064
178
+ pip/_internal/operations/check.py,sha256=ca4O9CkPt9Em9sLCf3H0iVt1GIcW7M8C0U5XooaBuT4,5109
179
+ pip/_internal/operations/freeze.py,sha256=ZiYw5GlUpLVx4VJHz4S1AP2JFNyvH0iq5kpcYj2ovyw,9770
180
+ pip/_internal/operations/install/__init__.py,sha256=mX7hyD2GNBO2mFGokDQ30r_GXv7Y_PLdtxcUv144e-s,51
181
+ pip/_internal/operations/install/__pycache__/__init__.cpython-39.pyc,,
182
+ pip/_internal/operations/install/__pycache__/editable_legacy.cpython-39.pyc,,
183
+ pip/_internal/operations/install/__pycache__/legacy.cpython-39.pyc,,
184
+ pip/_internal/operations/install/__pycache__/wheel.cpython-39.pyc,,
185
+ pip/_internal/operations/install/editable_legacy.py,sha256=ee4kfJHNuzTdKItbfAsNOSEwq_vD7DRPGkBdK48yBhU,1354
186
+ pip/_internal/operations/install/legacy.py,sha256=x7BG8kBm0K3JO6AR4sBl0zh2LOrfUaz7EdNt-keHBv4,4091
187
+ pip/_internal/operations/install/wheel.py,sha256=QuQyCZE-XjuJjDYRixo40oUt2ucFhNmSrCbcXY7A9aE,27412
188
+ pip/_internal/operations/prepare.py,sha256=LJP97jsuiCAaTGVIRrcINvxc1ntVsB45MoRbyMIukg4,24145
189
+ pip/_internal/pyproject.py,sha256=Wm2ljdT6spC-tSdf1LBRaMYSJaXr1xUxV3OwdHCW9jc,6722
190
+ pip/_internal/req/__init__.py,sha256=A7mUvT1KAcCYP3H7gUOTx2GRMlgoDur3H68Q0OJqM5A,2793
191
+ pip/_internal/req/__pycache__/__init__.cpython-39.pyc,,
192
+ pip/_internal/req/__pycache__/constructors.cpython-39.pyc,,
193
+ pip/_internal/req/__pycache__/req_file.cpython-39.pyc,,
194
+ pip/_internal/req/__pycache__/req_install.cpython-39.pyc,,
195
+ pip/_internal/req/__pycache__/req_set.cpython-39.pyc,,
196
+ pip/_internal/req/__pycache__/req_tracker.cpython-39.pyc,,
197
+ pip/_internal/req/__pycache__/req_uninstall.cpython-39.pyc,,
198
+ pip/_internal/req/constructors.py,sha256=fXmtNI_J77JFP_HRvYcQW-1nKw3AiUu6Q3b1Nm8aMm0,16094
199
+ pip/_internal/req/req_file.py,sha256=5N8OTouPCof-305StC2YK9HBxQMw-xO46skRoBPbkZo,17421
200
+ pip/_internal/req/req_install.py,sha256=jU1HQBT_DnXZean7jY8wPNMhb6_CzdKHcilHFY_o-Fc,32524
201
+ pip/_internal/req/req_set.py,sha256=kHYiLvkKRx21WaLTwOI-54Ng0SSzZZ9SE7FD0PsfvYA,7584
202
+ pip/_internal/req/req_tracker.py,sha256=jK7JDu-Wt73X-gqozrFtgJVlUlnQo0P4IQ4x4_gPlfM,4117
203
+ pip/_internal/req/req_uninstall.py,sha256=K2BHYRRJAfkSpFqcPzc9XfX2EvbhaRtQIPRFmMtUdfo,23814
204
+ pip/_internal/resolution/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
205
+ pip/_internal/resolution/__pycache__/__init__.cpython-39.pyc,,
206
+ pip/_internal/resolution/__pycache__/base.cpython-39.pyc,,
207
+ pip/_internal/resolution/base.py,sha256=qlmh325SBVfvG6Me9gc5Nsh5sdwHBwzHBq6aEXtKsLA,583
208
+ pip/_internal/resolution/legacy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
209
+ pip/_internal/resolution/legacy/__pycache__/__init__.cpython-39.pyc,,
210
+ pip/_internal/resolution/legacy/__pycache__/resolver.cpython-39.pyc,,
211
+ pip/_internal/resolution/legacy/resolver.py,sha256=b7bf5qL1ROg73sl8dhTvLdD1w5XF8xybBAF6eF_kz7c,18288
212
+ pip/_internal/resolution/resolvelib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
213
+ pip/_internal/resolution/resolvelib/__pycache__/__init__.cpython-39.pyc,,
214
+ pip/_internal/resolution/resolvelib/__pycache__/base.cpython-39.pyc,,
215
+ pip/_internal/resolution/resolvelib/__pycache__/candidates.cpython-39.pyc,,
216
+ pip/_internal/resolution/resolvelib/__pycache__/factory.cpython-39.pyc,,
217
+ pip/_internal/resolution/resolvelib/__pycache__/found_candidates.cpython-39.pyc,,
218
+ pip/_internal/resolution/resolvelib/__pycache__/provider.cpython-39.pyc,,
219
+ pip/_internal/resolution/resolvelib/__pycache__/reporter.cpython-39.pyc,,
220
+ pip/_internal/resolution/resolvelib/__pycache__/requirements.cpython-39.pyc,,
221
+ pip/_internal/resolution/resolvelib/__pycache__/resolver.cpython-39.pyc,,
222
+ pip/_internal/resolution/resolvelib/base.py,sha256=u1O4fkvCO4mhmu5i32xrDv9AX5NgUci_eYVyBDQhTIM,5220
223
+ pip/_internal/resolution/resolvelib/candidates.py,sha256=KR5jxZRSahByOABXbwrX-zNoawa7Gm9Iss-HrvrcvNw,18357
224
+ pip/_internal/resolution/resolvelib/factory.py,sha256=0bbxnUSSjaeTmtIEgeeKtEqhEFfNhv3xpq7j9IaMq2c,28298
225
+ pip/_internal/resolution/resolvelib/found_candidates.py,sha256=hvL3Hoa9VaYo-qEOZkBi2Iqw251UDxPz-uMHVaWmLpE,5705
226
+ pip/_internal/resolution/resolvelib/provider.py,sha256=LzQQyzMVaZYAwLgKInbq-it6mbQL1gX0hGohz5Cr5wg,9915
227
+ pip/_internal/resolution/resolvelib/reporter.py,sha256=3ZVVYrs5PqvLFJkGLcuXoMK5mTInFzl31xjUpDBpZZk,2526
228
+ pip/_internal/resolution/resolvelib/requirements.py,sha256=B1ndvKPSuyyyTEXt9sKhbwminViSWnBrJa7qO2ln4Z0,5455
229
+ pip/_internal/resolution/resolvelib/resolver.py,sha256=UsWuwuTu9aYHIfEBnEb7e1r3tXGgJbSA5LVgQqdVZ2w,11633
230
+ pip/_internal/self_outdated_check.py,sha256=GKSatNlt2cz_CMGxu72FbUzuPaXpWOnIVKOOYIk0gvY,6849
231
+ pip/_internal/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
232
+ pip/_internal/utils/__pycache__/__init__.cpython-39.pyc,,
233
+ pip/_internal/utils/__pycache__/_log.cpython-39.pyc,,
234
+ pip/_internal/utils/__pycache__/appdirs.cpython-39.pyc,,
235
+ pip/_internal/utils/__pycache__/compat.cpython-39.pyc,,
236
+ pip/_internal/utils/__pycache__/compatibility_tags.cpython-39.pyc,,
237
+ pip/_internal/utils/__pycache__/datetime.cpython-39.pyc,,
238
+ pip/_internal/utils/__pycache__/deprecation.cpython-39.pyc,,
239
+ pip/_internal/utils/__pycache__/direct_url_helpers.cpython-39.pyc,,
240
+ pip/_internal/utils/__pycache__/distutils_args.cpython-39.pyc,,
241
+ pip/_internal/utils/__pycache__/egg_link.cpython-39.pyc,,
242
+ pip/_internal/utils/__pycache__/encoding.cpython-39.pyc,,
243
+ pip/_internal/utils/__pycache__/entrypoints.cpython-39.pyc,,
244
+ pip/_internal/utils/__pycache__/filesystem.cpython-39.pyc,,
245
+ pip/_internal/utils/__pycache__/filetypes.cpython-39.pyc,,
246
+ pip/_internal/utils/__pycache__/glibc.cpython-39.pyc,,
247
+ pip/_internal/utils/__pycache__/hashes.cpython-39.pyc,,
248
+ pip/_internal/utils/__pycache__/inject_securetransport.cpython-39.pyc,,
249
+ pip/_internal/utils/__pycache__/logging.cpython-39.pyc,,
250
+ pip/_internal/utils/__pycache__/misc.cpython-39.pyc,,
251
+ pip/_internal/utils/__pycache__/models.cpython-39.pyc,,
252
+ pip/_internal/utils/__pycache__/packaging.cpython-39.pyc,,
253
+ pip/_internal/utils/__pycache__/setuptools_build.cpython-39.pyc,,
254
+ pip/_internal/utils/__pycache__/subprocess.cpython-39.pyc,,
255
+ pip/_internal/utils/__pycache__/temp_dir.cpython-39.pyc,,
256
+ pip/_internal/utils/__pycache__/unpacking.cpython-39.pyc,,
257
+ pip/_internal/utils/__pycache__/urls.cpython-39.pyc,,
258
+ pip/_internal/utils/__pycache__/virtualenv.cpython-39.pyc,,
259
+ pip/_internal/utils/__pycache__/wheel.cpython-39.pyc,,
260
+ pip/_internal/utils/_log.py,sha256=-jHLOE_THaZz5BFcCnoSL9EYAtJ0nXem49s9of4jvKw,1015
261
+ pip/_internal/utils/appdirs.py,sha256=swgcTKOm3daLeXTW6v5BUS2Ti2RvEnGRQYH_yDXklAo,1665
262
+ pip/_internal/utils/compat.py,sha256=ACyBfLgj3_XG-iA5omEDrXqDM0cQKzi8h8HRBInzG6Q,1884
263
+ pip/_internal/utils/compatibility_tags.py,sha256=ydin8QG8BHqYRsPY4OL6cmb44CbqXl1T0xxS97VhHkk,5377
264
+ pip/_internal/utils/datetime.py,sha256=m21Y3wAtQc-ji6Veb6k_M5g6A0ZyFI4egchTdnwh-pQ,242
265
+ pip/_internal/utils/deprecation.py,sha256=NKo8VqLioJ4nnXXGmW4KdasxF90EFHkZaHeX1fT08C8,3627
266
+ pip/_internal/utils/direct_url_helpers.py,sha256=6F1tc2rcKaCZmgfVwsE6ObIe_Pux23mUVYA-2D9wCFc,3206
267
+ pip/_internal/utils/distutils_args.py,sha256=mcAscyp80vTt3xAGTipnpgc83V-_wCvydNELVXLq7JI,1249
268
+ pip/_internal/utils/egg_link.py,sha256=5MVlpz5LirT4iLQq86OYzjXaYF0D4Qk1dprEI7ThST4,2203
269
+ pip/_internal/utils/encoding.py,sha256=bdZ3YgUpaOEBI5MP4-DEXiQarCW3V0rxw1kRz-TaU1Q,1169
270
+ pip/_internal/utils/entrypoints.py,sha256=aPvCnQVi9Hdk35Kloww_D5ibjUpqxgqcJP8O9VuMZek,1055
271
+ pip/_internal/utils/filesystem.py,sha256=rrl-rY1w8TYyKYndUyZlE9ffkQyA4-jI9x_59zXkn5s,5893
272
+ pip/_internal/utils/filetypes.py,sha256=i8XAQ0eFCog26Fw9yV0Yb1ygAqKYB1w9Cz9n0fj8gZU,716
273
+ pip/_internal/utils/glibc.py,sha256=tDfwVYnJCOC0BNVpItpy8CGLP9BjkxFHdl0mTS0J7fc,3110
274
+ pip/_internal/utils/hashes.py,sha256=anpZfFGIT6HcIj2td9NHtE8AWg6GeAIhwpP8GPvZE0E,4811
275
+ pip/_internal/utils/inject_securetransport.py,sha256=o-QRVMGiENrTJxw3fAhA7uxpdEdw6M41TjHYtSVRrcg,795
276
+ pip/_internal/utils/logging.py,sha256=Rvght-fDXL70VWib1cpgZ3iU-kXODV98bNeLUlbqVto,11522
277
+ pip/_internal/utils/misc.py,sha256=yLQuNWaRGtSGQqK7GT-Kj2mO7oXnPcJZkr5-9Q7AGwE,18392
278
+ pip/_internal/utils/models.py,sha256=5GoYU586SrxURMvDn_jBMJInitviJg4O5-iOU-6I0WY,1193
279
+ pip/_internal/utils/packaging.py,sha256=5Wm6_x7lKrlqVjPI5MBN_RurcRHwVYoQ7Ksrs84de7s,2108
280
+ pip/_internal/utils/setuptools_build.py,sha256=vNH9hQB9wT6d-h1hVQhBKw91jNeT42meHpVeii-urOI,5652
281
+ pip/_internal/utils/subprocess.py,sha256=vIWGpet5ARBmZ2Qn4NEHNgzCOduqbPIuByZmhhmr6mM,9182
282
+ pip/_internal/utils/temp_dir.py,sha256=zob3PYMVevONkheOMUp_4jDofrEY3HIu5DHK78cSspI,7662
283
+ pip/_internal/utils/unpacking.py,sha256=HUFlMEyCa9dPwdLh6sWeh95DeKytV8rsOyKShEw9y6g,8906
284
+ pip/_internal/utils/urls.py,sha256=AhaesUGl-9it6uvG6fsFPOr9ynFpGaTMk4t5XTX7Z_Q,1759
285
+ pip/_internal/utils/virtualenv.py,sha256=4_48qMzCwB_F5jIK5BC_ua7uiAMVifmQWU9NdaGUoVA,3459
286
+ pip/_internal/utils/wheel.py,sha256=lXOgZyTlOm5HmK8tw5iw0A3_5A6wRzsXHOaQkIvvloU,4549
287
+ pip/_internal/vcs/__init__.py,sha256=UAqvzpbi0VbZo3Ub6skEeZAw-ooIZR-zX_WpCbxyCoU,596
288
+ pip/_internal/vcs/__pycache__/__init__.cpython-39.pyc,,
289
+ pip/_internal/vcs/__pycache__/bazaar.cpython-39.pyc,,
290
+ pip/_internal/vcs/__pycache__/git.cpython-39.pyc,,
291
+ pip/_internal/vcs/__pycache__/mercurial.cpython-39.pyc,,
292
+ pip/_internal/vcs/__pycache__/subversion.cpython-39.pyc,,
293
+ pip/_internal/vcs/__pycache__/versioncontrol.cpython-39.pyc,,
294
+ pip/_internal/vcs/bazaar.py,sha256=IGb5ca1xSZfgegRD2_JeyoZPrQQHs7lEYEIgpVsKpoU,3047
295
+ pip/_internal/vcs/git.py,sha256=mjhwudCx9WlLNkxZ6_kOKmueF0rLoU2i1xeASKF6yiQ,18116
296
+ pip/_internal/vcs/mercurial.py,sha256=Bzbd518Jsx-EJI0IhIobiQqiRsUv5TWYnrmRIFWE0Gw,5238
297
+ pip/_internal/vcs/subversion.py,sha256=TEMRdwECvMcXakZX0pTNUep79kmBYkWDkWFkrYmcmac,11718
298
+ pip/_internal/vcs/versioncontrol.py,sha256=KUOc-hN51em9jrqxKwUR3JnkgSE-xSOqMiiJcSaL6B8,22811
299
+ pip/_internal/wheel_builder.py,sha256=65rOA8FSYt3c3HyqEw17uujjlCgqmoKEIv6rv9xN2NM,12307
300
+ pip/_vendor/__init__.py,sha256=xjcBX0EP50pkaMdCssrsBXoZgo2hTtYxlcH1CIyA3T4,4708
301
+ pip/_vendor/__pycache__/__init__.cpython-39.pyc,,
302
+ pip/_vendor/__pycache__/distro.cpython-39.pyc,,
303
+ pip/_vendor/__pycache__/six.cpython-39.pyc,,
304
+ pip/_vendor/__pycache__/typing_extensions.cpython-39.pyc,,
305
+ pip/_vendor/cachecontrol/__init__.py,sha256=1j_YQfjmiix6YyouLrftC6NzksAm8e8xGSjMKMRPIkM,465
306
+ pip/_vendor/cachecontrol/__pycache__/__init__.cpython-39.pyc,,
307
+ pip/_vendor/cachecontrol/__pycache__/_cmd.cpython-39.pyc,,
308
+ pip/_vendor/cachecontrol/__pycache__/adapter.cpython-39.pyc,,
309
+ pip/_vendor/cachecontrol/__pycache__/cache.cpython-39.pyc,,
310
+ pip/_vendor/cachecontrol/__pycache__/compat.cpython-39.pyc,,
311
+ pip/_vendor/cachecontrol/__pycache__/controller.cpython-39.pyc,,
312
+ pip/_vendor/cachecontrol/__pycache__/filewrapper.cpython-39.pyc,,
313
+ pip/_vendor/cachecontrol/__pycache__/heuristics.cpython-39.pyc,,
314
+ pip/_vendor/cachecontrol/__pycache__/serialize.cpython-39.pyc,,
315
+ pip/_vendor/cachecontrol/__pycache__/wrapper.cpython-39.pyc,,
316
+ pip/_vendor/cachecontrol/_cmd.py,sha256=lxUXqfNTVx84zf6tcWbkLZHA6WVBRtJRpfeA9ZqhaAY,1379
317
+ pip/_vendor/cachecontrol/adapter.py,sha256=ew9OYEQHEOjvGl06ZsuX8W3DAvHWsQKHwWAxISyGug8,5033
318
+ pip/_vendor/cachecontrol/cache.py,sha256=eMS9Bn9JWQkHiIYA5GPRBqKVU95uS-yXkxrzpoafRig,917
319
+ pip/_vendor/cachecontrol/caches/__init__.py,sha256=gGFOtIH8QDRvkP4YAfGIh-u9YYcGZVxwLM1-6e1mPNI,170
320
+ pip/_vendor/cachecontrol/caches/__pycache__/__init__.cpython-39.pyc,,
321
+ pip/_vendor/cachecontrol/caches/__pycache__/file_cache.cpython-39.pyc,,
322
+ pip/_vendor/cachecontrol/caches/__pycache__/redis_cache.cpython-39.pyc,,
323
+ pip/_vendor/cachecontrol/caches/file_cache.py,sha256=P2KHcNXiqxEW7fCq5KC-NYHGSk0nNR9NIKuN-vBTn-E,4251
324
+ pip/_vendor/cachecontrol/caches/redis_cache.py,sha256=tu_YBV7EV8vdBRGazUErkoRqYYjSBmNcB8dZ7BNomqk,940
325
+ pip/_vendor/cachecontrol/compat.py,sha256=LNx7vqBndYdHU8YuJt53ab_8rzMGTXVrvMb7CZJkxG0,778
326
+ pip/_vendor/cachecontrol/controller.py,sha256=9DSEiV58Gx7Ce69fLCrRcpN-_sHzXTY4ol9bEviatR0,15625
327
+ pip/_vendor/cachecontrol/filewrapper.py,sha256=X4BAQOO26GNOR7nH_fhTzAfeuct2rBQcx_15MyFBpcs,3946
328
+ pip/_vendor/cachecontrol/heuristics.py,sha256=8kAyuZLSCyEIgQr6vbUwfhpqg9ows4mM0IV6DWazevI,4154
329
+ pip/_vendor/cachecontrol/serialize.py,sha256=dlySaeA5U7Q5eHvjiObgo1M8j8_huVjfWjid7Aq-r8c,6783
330
+ pip/_vendor/cachecontrol/wrapper.py,sha256=X3-KMZ20Ho3VtqyVaXclpeQpFzokR5NE8tZSfvKVaB8,774
331
+ pip/_vendor/certifi/__init__.py,sha256=xWdRgntT3j1V95zkRipGOg_A1UfEju2FcpujhysZLRI,62
332
+ pip/_vendor/certifi/__main__.py,sha256=1k3Cr95vCxxGRGDljrW3wMdpZdL3Nhf0u1n-k2qdsCY,255
333
+ pip/_vendor/certifi/__pycache__/__init__.cpython-39.pyc,,
334
+ pip/_vendor/certifi/__pycache__/__main__.cpython-39.pyc,,
335
+ pip/_vendor/certifi/__pycache__/core.cpython-39.pyc,,
336
+ pip/_vendor/certifi/cacert.pem,sha256=-og4Keu4zSpgL5shwfhd4kz0eUnVILzrGCi0zRy2kGw,265969
337
+ pip/_vendor/certifi/core.py,sha256=gOFd0zHYlx4krrLEn982esOtmz3djiG0BFSDhgjlvcI,2840
338
+ pip/_vendor/chardet/__init__.py,sha256=mWZaWmvZkhwfBEAT9O1Y6nRTfKzhT7FHhQTTAujbqUA,3271
339
+ pip/_vendor/chardet/__pycache__/__init__.cpython-39.pyc,,
340
+ pip/_vendor/chardet/__pycache__/big5freq.cpython-39.pyc,,
341
+ pip/_vendor/chardet/__pycache__/big5prober.cpython-39.pyc,,
342
+ pip/_vendor/chardet/__pycache__/chardistribution.cpython-39.pyc,,
343
+ pip/_vendor/chardet/__pycache__/charsetgroupprober.cpython-39.pyc,,
344
+ pip/_vendor/chardet/__pycache__/charsetprober.cpython-39.pyc,,
345
+ pip/_vendor/chardet/__pycache__/codingstatemachine.cpython-39.pyc,,
346
+ pip/_vendor/chardet/__pycache__/compat.cpython-39.pyc,,
347
+ pip/_vendor/chardet/__pycache__/cp949prober.cpython-39.pyc,,
348
+ pip/_vendor/chardet/__pycache__/enums.cpython-39.pyc,,
349
+ pip/_vendor/chardet/__pycache__/escprober.cpython-39.pyc,,
350
+ pip/_vendor/chardet/__pycache__/escsm.cpython-39.pyc,,
351
+ pip/_vendor/chardet/__pycache__/eucjpprober.cpython-39.pyc,,
352
+ pip/_vendor/chardet/__pycache__/euckrfreq.cpython-39.pyc,,
353
+ pip/_vendor/chardet/__pycache__/euckrprober.cpython-39.pyc,,
354
+ pip/_vendor/chardet/__pycache__/euctwfreq.cpython-39.pyc,,
355
+ pip/_vendor/chardet/__pycache__/euctwprober.cpython-39.pyc,,
356
+ pip/_vendor/chardet/__pycache__/gb2312freq.cpython-39.pyc,,
357
+ pip/_vendor/chardet/__pycache__/gb2312prober.cpython-39.pyc,,
358
+ pip/_vendor/chardet/__pycache__/hebrewprober.cpython-39.pyc,,
359
+ pip/_vendor/chardet/__pycache__/jisfreq.cpython-39.pyc,,
360
+ pip/_vendor/chardet/__pycache__/jpcntx.cpython-39.pyc,,
361
+ pip/_vendor/chardet/__pycache__/langbulgarianmodel.cpython-39.pyc,,
362
+ pip/_vendor/chardet/__pycache__/langgreekmodel.cpython-39.pyc,,
363
+ pip/_vendor/chardet/__pycache__/langhebrewmodel.cpython-39.pyc,,
364
+ pip/_vendor/chardet/__pycache__/langhungarianmodel.cpython-39.pyc,,
365
+ pip/_vendor/chardet/__pycache__/langrussianmodel.cpython-39.pyc,,
366
+ pip/_vendor/chardet/__pycache__/langthaimodel.cpython-39.pyc,,
367
+ pip/_vendor/chardet/__pycache__/langturkishmodel.cpython-39.pyc,,
368
+ pip/_vendor/chardet/__pycache__/latin1prober.cpython-39.pyc,,
369
+ pip/_vendor/chardet/__pycache__/mbcharsetprober.cpython-39.pyc,,
370
+ pip/_vendor/chardet/__pycache__/mbcsgroupprober.cpython-39.pyc,,
371
+ pip/_vendor/chardet/__pycache__/mbcssm.cpython-39.pyc,,
372
+ pip/_vendor/chardet/__pycache__/sbcharsetprober.cpython-39.pyc,,
373
+ pip/_vendor/chardet/__pycache__/sbcsgroupprober.cpython-39.pyc,,
374
+ pip/_vendor/chardet/__pycache__/sjisprober.cpython-39.pyc,,
375
+ pip/_vendor/chardet/__pycache__/universaldetector.cpython-39.pyc,,
376
+ pip/_vendor/chardet/__pycache__/utf8prober.cpython-39.pyc,,
377
+ pip/_vendor/chardet/__pycache__/version.cpython-39.pyc,,
378
+ pip/_vendor/chardet/big5freq.py,sha256=D_zK5GyzoVsRes0HkLJziltFQX0bKCLOrFe9_xDvO_8,31254
379
+ pip/_vendor/chardet/big5prober.py,sha256=kBxHbdetBpPe7xrlb-e990iot64g_eGSLd32lB7_h3M,1757
380
+ pip/_vendor/chardet/chardistribution.py,sha256=3woWS62KrGooKyqz4zQSnjFbJpa6V7g02daAibTwcl8,9411
381
+ pip/_vendor/chardet/charsetgroupprober.py,sha256=GZLReHP6FRRn43hvSOoGCxYamErKzyp6RgOQxVeC3kg,3839
382
+ pip/_vendor/chardet/charsetprober.py,sha256=KSmwJErjypyj0bRZmC5F5eM7c8YQgLYIjZXintZNstg,5110
383
+ pip/_vendor/chardet/cli/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
384
+ pip/_vendor/chardet/cli/__pycache__/__init__.cpython-39.pyc,,
385
+ pip/_vendor/chardet/cli/__pycache__/chardetect.cpython-39.pyc,,
386
+ pip/_vendor/chardet/cli/chardetect.py,sha256=XK5zqjUG2a4-y6eLHZ8ThYcp6WWUrdlmELxNypcc2SE,2747
387
+ pip/_vendor/chardet/codingstatemachine.py,sha256=VYp_6cyyki5sHgXDSZnXW4q1oelHc3cu9AyQTX7uug8,3590
388
+ pip/_vendor/chardet/compat.py,sha256=40zr6wICZwknxyuLGGcIOPyve8DTebBCbbvttvnmp5Q,1200
389
+ pip/_vendor/chardet/cp949prober.py,sha256=TZ434QX8zzBsnUvL_8wm4AQVTZ2ZkqEEQL_lNw9f9ow,1855
390
+ pip/_vendor/chardet/enums.py,sha256=Aimwdb9as1dJKZaFNUH2OhWIVBVd6ZkJJ_WK5sNY8cU,1661
391
+ pip/_vendor/chardet/escprober.py,sha256=kkyqVg1Yw3DIOAMJ2bdlyQgUFQhuHAW8dUGskToNWSc,3950
392
+ pip/_vendor/chardet/escsm.py,sha256=RuXlgNvTIDarndvllNCk5WZBIpdCxQ0kcd9EAuxUh84,10510
393
+ pip/_vendor/chardet/eucjpprober.py,sha256=iD8Jdp0ISRjgjiVN7f0e8xGeQJ5GM2oeZ1dA8nbSeUw,3749
394
+ pip/_vendor/chardet/euckrfreq.py,sha256=-7GdmvgWez4-eO4SuXpa7tBiDi5vRXQ8WvdFAzVaSfo,13546
395
+ pip/_vendor/chardet/euckrprober.py,sha256=MqFMTQXxW4HbzIpZ9lKDHB3GN8SP4yiHenTmf8g_PxY,1748
396
+ pip/_vendor/chardet/euctwfreq.py,sha256=No1WyduFOgB5VITUA7PLyC5oJRNzRyMbBxaKI1l16MA,31621
397
+ pip/_vendor/chardet/euctwprober.py,sha256=13p6EP4yRaxqnP4iHtxHOJ6R2zxHq1_m8hTRjzVZ95c,1747
398
+ pip/_vendor/chardet/gb2312freq.py,sha256=JX8lsweKLmnCwmk8UHEQsLgkr_rP_kEbvivC4qPOrlc,20715
399
+ pip/_vendor/chardet/gb2312prober.py,sha256=gGvIWi9WhDjE-xQXHvNIyrnLvEbMAYgyUSZ65HUfylw,1754
400
+ pip/_vendor/chardet/hebrewprober.py,sha256=c3SZ-K7hvyzGY6JRAZxJgwJ_sUS9k0WYkvMY00YBYFo,13838
401
+ pip/_vendor/chardet/jisfreq.py,sha256=vpmJv2Bu0J8gnMVRPHMFefTRvo_ha1mryLig8CBwgOg,25777
402
+ pip/_vendor/chardet/jpcntx.py,sha256=PYlNqRUQT8LM3cT5FmHGP0iiscFlTWED92MALvBungo,19643
403
+ pip/_vendor/chardet/langbulgarianmodel.py,sha256=rk9CJpuxO0bObboJcv6gNgWuosYZmd8qEEds5y7DS_Y,105697
404
+ pip/_vendor/chardet/langgreekmodel.py,sha256=S-uNQ1ihC75yhBvSux24gLFZv3QyctMwC6OxLJdX-bw,99571
405
+ pip/_vendor/chardet/langhebrewmodel.py,sha256=DzPP6TPGG_-PV7tqspu_d8duueqm7uN-5eQ0aHUw1Gg,98776
406
+ pip/_vendor/chardet/langhungarianmodel.py,sha256=RtJH7DZdsmaHqyK46Kkmnk5wQHiJwJPPJSqqIlpeZRc,102498
407
+ pip/_vendor/chardet/langrussianmodel.py,sha256=THqJOhSxiTQcHboDNSc5yofc2koXXQFHFyjtyuntUfM,131180
408
+ pip/_vendor/chardet/langthaimodel.py,sha256=R1wXHnUMtejpw0JnH_JO8XdYasME6wjVqp1zP7TKLgg,103312
409
+ pip/_vendor/chardet/langturkishmodel.py,sha256=rfwanTptTwSycE4-P-QasPmzd-XVYgevytzjlEzBBu8,95946
410
+ pip/_vendor/chardet/latin1prober.py,sha256=S2IoORhFk39FEFOlSFWtgVybRiP6h7BlLldHVclNkU8,5370
411
+ pip/_vendor/chardet/mbcharsetprober.py,sha256=AR95eFH9vuqSfvLQZN-L5ijea25NOBCoXqw8s5O9xLQ,3413
412
+ pip/_vendor/chardet/mbcsgroupprober.py,sha256=h6TRnnYq2OxG1WdD5JOyxcdVpn7dG0q-vB8nWr5mbh4,2012
413
+ pip/_vendor/chardet/mbcssm.py,sha256=SY32wVIF3HzcjY3BaEspy9metbNSKxIIB0RKPn7tjpI,25481
414
+ pip/_vendor/chardet/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
415
+ pip/_vendor/chardet/metadata/__pycache__/__init__.cpython-39.pyc,,
416
+ pip/_vendor/chardet/metadata/__pycache__/languages.cpython-39.pyc,,
417
+ pip/_vendor/chardet/metadata/languages.py,sha256=41tLq3eLSrBEbEVVQpVGFq9K7o1ln9b1HpY1l0hCUQo,19474
418
+ pip/_vendor/chardet/sbcharsetprober.py,sha256=nmyMyuxzG87DN6K3Rk2MUzJLMLR69MrWpdnHzOwVUwQ,6136
419
+ pip/_vendor/chardet/sbcsgroupprober.py,sha256=hqefQuXmiFyDBArOjujH6hd6WFXlOD1kWCsxDhjx5Vc,4309
420
+ pip/_vendor/chardet/sjisprober.py,sha256=IIt-lZj0WJqK4rmUZzKZP4GJlE8KUEtFYVuY96ek5MQ,3774
421
+ pip/_vendor/chardet/universaldetector.py,sha256=DpZTXCX0nUHXxkQ9sr4GZxGB_hveZ6hWt3uM94cgWKs,12503
422
+ pip/_vendor/chardet/utf8prober.py,sha256=IdD8v3zWOsB8OLiyPi-y_fqwipRFxV9Nc1eKBLSuIEw,2766
423
+ pip/_vendor/chardet/version.py,sha256=A4CILFAd8MRVG1HoXPp45iK9RLlWyV73a1EtwE8Tvn8,242
424
+ pip/_vendor/colorama/__init__.py,sha256=pCdErryzLSzDW5P-rRPBlPLqbBtIRNJB6cMgoeJns5k,239
425
+ pip/_vendor/colorama/__pycache__/__init__.cpython-39.pyc,,
426
+ pip/_vendor/colorama/__pycache__/ansi.cpython-39.pyc,,
427
+ pip/_vendor/colorama/__pycache__/ansitowin32.cpython-39.pyc,,
428
+ pip/_vendor/colorama/__pycache__/initialise.cpython-39.pyc,,
429
+ pip/_vendor/colorama/__pycache__/win32.cpython-39.pyc,,
430
+ pip/_vendor/colorama/__pycache__/winterm.cpython-39.pyc,,
431
+ pip/_vendor/colorama/ansi.py,sha256=Top4EeEuaQdBWdteKMEcGOTeKeF19Q-Wo_6_Cj5kOzQ,2522
432
+ pip/_vendor/colorama/ansitowin32.py,sha256=yV7CEmCb19MjnJKODZEEvMH_fnbJhwnpzo4sxZuGXmA,10517
433
+ pip/_vendor/colorama/initialise.py,sha256=PprovDNxMTrvoNHFcL2NZjpH2XzDc8BLxLxiErfUl4k,1915
434
+ pip/_vendor/colorama/win32.py,sha256=bJ8Il9jwaBN5BJ8bmN6FoYZ1QYuMKv2j8fGrXh7TJjw,5404
435
+ pip/_vendor/colorama/winterm.py,sha256=2y_2b7Zsv34feAsP67mLOVc-Bgq51mdYGo571VprlrM,6438
436
+ pip/_vendor/distlib/__init__.py,sha256=HTGLP7dnTRTQCbEZNGUxBq-0sobr0KQUMn3yd6uEObA,581
437
+ pip/_vendor/distlib/__pycache__/__init__.cpython-39.pyc,,
438
+ pip/_vendor/distlib/__pycache__/compat.cpython-39.pyc,,
439
+ pip/_vendor/distlib/__pycache__/database.cpython-39.pyc,,
440
+ pip/_vendor/distlib/__pycache__/index.cpython-39.pyc,,
441
+ pip/_vendor/distlib/__pycache__/locators.cpython-39.pyc,,
442
+ pip/_vendor/distlib/__pycache__/manifest.cpython-39.pyc,,
443
+ pip/_vendor/distlib/__pycache__/markers.cpython-39.pyc,,
444
+ pip/_vendor/distlib/__pycache__/metadata.cpython-39.pyc,,
445
+ pip/_vendor/distlib/__pycache__/resources.cpython-39.pyc,,
446
+ pip/_vendor/distlib/__pycache__/scripts.cpython-39.pyc,,
447
+ pip/_vendor/distlib/__pycache__/util.cpython-39.pyc,,
448
+ pip/_vendor/distlib/__pycache__/version.cpython-39.pyc,,
449
+ pip/_vendor/distlib/__pycache__/wheel.cpython-39.pyc,,
450
+ pip/_vendor/distlib/_backport/__init__.py,sha256=bqS_dTOH6uW9iGgd0uzfpPjo6vZ4xpPZ7kyfZJ2vNaw,274
451
+ pip/_vendor/distlib/_backport/__pycache__/__init__.cpython-39.pyc,,
452
+ pip/_vendor/distlib/_backport/__pycache__/misc.cpython-39.pyc,,
453
+ pip/_vendor/distlib/_backport/__pycache__/shutil.cpython-39.pyc,,
454
+ pip/_vendor/distlib/_backport/__pycache__/sysconfig.cpython-39.pyc,,
455
+ pip/_vendor/distlib/_backport/__pycache__/tarfile.cpython-39.pyc,,
456
+ pip/_vendor/distlib/_backport/misc.py,sha256=KWecINdbFNOxSOP1fGF680CJnaC6S4fBRgEtaYTw0ig,971
457
+ pip/_vendor/distlib/_backport/shutil.py,sha256=IX_G2NPqwecJibkIDje04bqu0xpHkfSQ2GaGdEVqM5Y,25707
458
+ pip/_vendor/distlib/_backport/sysconfig.cfg,sha256=swZKxq9RY5e9r3PXCrlvQPMsvOdiWZBTHLEbqS8LJLU,2617
459
+ pip/_vendor/distlib/_backport/sysconfig.py,sha256=BQHFlb6pubCl_dvT1NjtzIthylofjKisox239stDg0U,26854
460
+ pip/_vendor/distlib/_backport/tarfile.py,sha256=Ihp7rXRcjbIKw8COm9wSePV9ARGXbSF9gGXAMn2Q-KU,92628
461
+ pip/_vendor/distlib/compat.py,sha256=fbsxc5PfJ2wBx1K4k6mQ2goAYs-GZW0tcOPIlE_vf0I,41495
462
+ pip/_vendor/distlib/database.py,sha256=Kl0YvPQKc4OcpVi7k5cFziydM1xOK8iqdxLGXgbZHV4,51059
463
+ pip/_vendor/distlib/index.py,sha256=UfcimNW19AB7IKWam4VaJbXuCBvArKfSxhV16EwavzE,20739
464
+ pip/_vendor/distlib/locators.py,sha256=AKlB3oZvfOTg4E0CtfwOzujFL19X5V4XUA4eHdKOu44,51965
465
+ pip/_vendor/distlib/manifest.py,sha256=nQEhYmgoreaBZzyFzwYsXxJARu3fo4EkunU163U16iE,14811
466
+ pip/_vendor/distlib/markers.py,sha256=9c70ISEKwBjmUOHuIdOygVnRVESOKdNYp9a2TVn4qrI,4989
467
+ pip/_vendor/distlib/metadata.py,sha256=vatoxFdmBr6ie-sTVXVNPOPG3uwMDWJTnEECnm7xDCw,39109
468
+ pip/_vendor/distlib/resources.py,sha256=LwbPksc0A1JMbi6XnuPdMBUn83X7BPuFNWqPGEKI698,10820
469
+ pip/_vendor/distlib/scripts.py,sha256=tjSwENINeV91ROZxec5zTSMRg2jEeKc4enyCHDzNvEE,17720
470
+ pip/_vendor/distlib/t32.exe,sha256=NS3xBCVAld35JVFNmb-1QRyVtThukMrwZVeXn4LhaEQ,96768
471
+ pip/_vendor/distlib/t64-arm.exe,sha256=8WGDh6aI8WJAjngRNQpyJpB21Sv20PCYYFSNW1fWd6w,180736
472
+ pip/_vendor/distlib/t64.exe,sha256=oAqHes78rUWVM0OtVqIhUvequl_PKhAhXYQWnUf7zR0,105984
473
+ pip/_vendor/distlib/util.py,sha256=0Uq_qa63FCLtdyNdWvMnmPbiSvVa-ykHM2E8HT7LSIU,67766
474
+ pip/_vendor/distlib/version.py,sha256=WG__LyAa2GwmA6qSoEJtvJE8REA1LZpbSizy8WvhJLk,23513
475
+ pip/_vendor/distlib/w32.exe,sha256=lJtnZdeUxTZWya_EW5DZos_K5rswRECGspIl8ZJCIXs,90112
476
+ pip/_vendor/distlib/w64-arm.exe,sha256=Q_HdzVu9zxYdaBa3m0iJ5_ddLOEqtPe8x30WADoXza8,166400
477
+ pip/_vendor/distlib/w64.exe,sha256=0aRzoN2BO9NWW4ENy4_4vHkHR4qZTFZNVSAJJYlODTI,99840
478
+ pip/_vendor/distlib/wheel.py,sha256=pj5VVCjqZMcHvgizORWwAFPS7hOk61CZ59dxP8laQ4E,42943
479
+ pip/_vendor/distro.py,sha256=O1EeHMq1-xAO373JI2_6pYEtd09yEkxtmrYkdY-9S-w,48414
480
+ pip/_vendor/html5lib/__init__.py,sha256=BYzcKCqeEii52xDrqBFruhnmtmkiuHXFyFh-cglQ8mk,1160
481
+ pip/_vendor/html5lib/__pycache__/__init__.cpython-39.pyc,,
482
+ pip/_vendor/html5lib/__pycache__/_ihatexml.cpython-39.pyc,,
483
+ pip/_vendor/html5lib/__pycache__/_inputstream.cpython-39.pyc,,
484
+ pip/_vendor/html5lib/__pycache__/_tokenizer.cpython-39.pyc,,
485
+ pip/_vendor/html5lib/__pycache__/_utils.cpython-39.pyc,,
486
+ pip/_vendor/html5lib/__pycache__/constants.cpython-39.pyc,,
487
+ pip/_vendor/html5lib/__pycache__/html5parser.cpython-39.pyc,,
488
+ pip/_vendor/html5lib/__pycache__/serializer.cpython-39.pyc,,
489
+ pip/_vendor/html5lib/_ihatexml.py,sha256=ifOwF7pXqmyThIXc3boWc96s4MDezqRrRVp7FwDYUFs,16728
490
+ pip/_vendor/html5lib/_inputstream.py,sha256=jErNASMlkgs7MpOM9Ve_VdLDJyFFweAjLuhVutZz33U,32353
491
+ pip/_vendor/html5lib/_tokenizer.py,sha256=04mgA2sNTniutl2fxFv-ei5bns4iRaPxVXXHh_HrV_4,77040
492
+ pip/_vendor/html5lib/_trie/__init__.py,sha256=nqfgO910329BEVJ5T4psVwQtjd2iJyEXQ2-X8c1YxwU,109
493
+ pip/_vendor/html5lib/_trie/__pycache__/__init__.cpython-39.pyc,,
494
+ pip/_vendor/html5lib/_trie/__pycache__/_base.cpython-39.pyc,,
495
+ pip/_vendor/html5lib/_trie/__pycache__/py.cpython-39.pyc,,
496
+ pip/_vendor/html5lib/_trie/_base.py,sha256=CaybYyMro8uERQYjby2tTeSUatnWDfWroUN9N7ety5w,1013
497
+ pip/_vendor/html5lib/_trie/py.py,sha256=wXmQLrZRf4MyWNyg0m3h81m9InhLR7GJ002mIIZh-8o,1775
498
+ pip/_vendor/html5lib/_utils.py,sha256=Dx9AKntksRjFT1veBj7I362pf5OgIaT0zglwq43RnfU,4931
499
+ pip/_vendor/html5lib/constants.py,sha256=Ll-yzLU_jcjyAI_h57zkqZ7aQWE5t5xA4y_jQgoUUhw,83464
500
+ pip/_vendor/html5lib/filters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
501
+ pip/_vendor/html5lib/filters/__pycache__/__init__.cpython-39.pyc,,
502
+ pip/_vendor/html5lib/filters/__pycache__/alphabeticalattributes.cpython-39.pyc,,
503
+ pip/_vendor/html5lib/filters/__pycache__/base.cpython-39.pyc,,
504
+ pip/_vendor/html5lib/filters/__pycache__/inject_meta_charset.cpython-39.pyc,,
505
+ pip/_vendor/html5lib/filters/__pycache__/lint.cpython-39.pyc,,
506
+ pip/_vendor/html5lib/filters/__pycache__/optionaltags.cpython-39.pyc,,
507
+ pip/_vendor/html5lib/filters/__pycache__/sanitizer.cpython-39.pyc,,
508
+ pip/_vendor/html5lib/filters/__pycache__/whitespace.cpython-39.pyc,,
509
+ pip/_vendor/html5lib/filters/alphabeticalattributes.py,sha256=lViZc2JMCclXi_5gduvmdzrRxtO5Xo9ONnbHBVCsykU,919
510
+ pip/_vendor/html5lib/filters/base.py,sha256=z-IU9ZAYjpsVsqmVt7kuWC63jR11hDMr6CVrvuao8W0,286
511
+ pip/_vendor/html5lib/filters/inject_meta_charset.py,sha256=egDXUEHXmAG9504xz0K6ALDgYkvUrC2q15YUVeNlVQg,2945
512
+ pip/_vendor/html5lib/filters/lint.py,sha256=jk6q56xY0ojiYfvpdP-OZSm9eTqcAdRqhCoPItemPYA,3643
513
+ pip/_vendor/html5lib/filters/optionaltags.py,sha256=8lWT75J0aBOHmPgfmqTHSfPpPMp01T84NKu0CRedxcE,10588
514
+ pip/_vendor/html5lib/filters/sanitizer.py,sha256=m6oGmkBhkGAnn2nV6D4hE78SCZ6WEnK9rKdZB3uXBIc,26897
515
+ pip/_vendor/html5lib/filters/whitespace.py,sha256=8eWqZxd4UC4zlFGW6iyY6f-2uuT8pOCSALc3IZt7_t4,1214
516
+ pip/_vendor/html5lib/html5parser.py,sha256=anr-aXre_ImfrkQ35c_rftKXxC80vJCREKe06Tq15HA,117186
517
+ pip/_vendor/html5lib/serializer.py,sha256=_PpvcZF07cwE7xr9uKkZqh5f4UEaI8ltCU2xPJzaTpk,15759
518
+ pip/_vendor/html5lib/treeadapters/__init__.py,sha256=A0rY5gXIe4bJOiSGRO_j_tFhngRBO8QZPzPtPw5dFzo,679
519
+ pip/_vendor/html5lib/treeadapters/__pycache__/__init__.cpython-39.pyc,,
520
+ pip/_vendor/html5lib/treeadapters/__pycache__/genshi.cpython-39.pyc,,
521
+ pip/_vendor/html5lib/treeadapters/__pycache__/sax.cpython-39.pyc,,
522
+ pip/_vendor/html5lib/treeadapters/genshi.py,sha256=CH27pAsDKmu4ZGkAUrwty7u0KauGLCZRLPMzaO3M5vo,1715
523
+ pip/_vendor/html5lib/treeadapters/sax.py,sha256=BKS8woQTnKiqeffHsxChUqL4q2ZR_wb5fc9MJ3zQC8s,1776
524
+ pip/_vendor/html5lib/treebuilders/__init__.py,sha256=AysSJyvPfikCMMsTVvaxwkgDieELD5dfR8FJIAuq7hY,3592
525
+ pip/_vendor/html5lib/treebuilders/__pycache__/__init__.cpython-39.pyc,,
526
+ pip/_vendor/html5lib/treebuilders/__pycache__/base.cpython-39.pyc,,
527
+ pip/_vendor/html5lib/treebuilders/__pycache__/dom.cpython-39.pyc,,
528
+ pip/_vendor/html5lib/treebuilders/__pycache__/etree.cpython-39.pyc,,
529
+ pip/_vendor/html5lib/treebuilders/__pycache__/etree_lxml.cpython-39.pyc,,
530
+ pip/_vendor/html5lib/treebuilders/base.py,sha256=z-o51vt9r_l2IDG5IioTOKGzZne4Fy3_Fc-7ztrOh4I,14565
531
+ pip/_vendor/html5lib/treebuilders/dom.py,sha256=22whb0C71zXIsai5mamg6qzBEiigcBIvaDy4Asw3at0,8925
532
+ pip/_vendor/html5lib/treebuilders/etree.py,sha256=w5ZFpKk6bAxnrwD2_BrF5EVC7vzz0L3LMi9Sxrbc_8w,12836
533
+ pip/_vendor/html5lib/treebuilders/etree_lxml.py,sha256=9gqDjs-IxsPhBYa5cpvv2FZ1KZlG83Giusy2lFmvIkE,14766
534
+ pip/_vendor/html5lib/treewalkers/__init__.py,sha256=OBPtc1TU5mGyy18QDMxKEyYEz0wxFUUNj5v0-XgmYhY,5719
535
+ pip/_vendor/html5lib/treewalkers/__pycache__/__init__.cpython-39.pyc,,
536
+ pip/_vendor/html5lib/treewalkers/__pycache__/base.cpython-39.pyc,,
537
+ pip/_vendor/html5lib/treewalkers/__pycache__/dom.cpython-39.pyc,,
538
+ pip/_vendor/html5lib/treewalkers/__pycache__/etree.cpython-39.pyc,,
539
+ pip/_vendor/html5lib/treewalkers/__pycache__/etree_lxml.cpython-39.pyc,,
540
+ pip/_vendor/html5lib/treewalkers/__pycache__/genshi.cpython-39.pyc,,
541
+ pip/_vendor/html5lib/treewalkers/base.py,sha256=ouiOsuSzvI0KgzdWP8PlxIaSNs9falhbiinAEc_UIJY,7476
542
+ pip/_vendor/html5lib/treewalkers/dom.py,sha256=EHyFR8D8lYNnyDU9lx_IKigVJRyecUGua0mOi7HBukc,1413
543
+ pip/_vendor/html5lib/treewalkers/etree.py,sha256=xo1L5m9VtkfpFJK0pFmkLVajhqYYVisVZn3k9kYpPkI,4551
544
+ pip/_vendor/html5lib/treewalkers/etree_lxml.py,sha256=_b0LAVWLcVu9WaU_-w3D8f0IRSpCbjf667V-3NRdhTw,6357
545
+ pip/_vendor/html5lib/treewalkers/genshi.py,sha256=4D2PECZ5n3ZN3qu3jMl9yY7B81jnQApBQSVlfaIuYbA,2309
546
+ pip/_vendor/idna/__init__.py,sha256=KJQN1eQBr8iIK5SKrJ47lXvxG0BJ7Lm38W4zT0v_8lk,849
547
+ pip/_vendor/idna/__pycache__/__init__.cpython-39.pyc,,
548
+ pip/_vendor/idna/__pycache__/codec.cpython-39.pyc,,
549
+ pip/_vendor/idna/__pycache__/compat.cpython-39.pyc,,
550
+ pip/_vendor/idna/__pycache__/core.cpython-39.pyc,,
551
+ pip/_vendor/idna/__pycache__/idnadata.cpython-39.pyc,,
552
+ pip/_vendor/idna/__pycache__/intranges.cpython-39.pyc,,
553
+ pip/_vendor/idna/__pycache__/package_data.cpython-39.pyc,,
554
+ pip/_vendor/idna/__pycache__/uts46data.cpython-39.pyc,,
555
+ pip/_vendor/idna/codec.py,sha256=6ly5odKfqrytKT9_7UrlGklHnf1DSK2r9C6cSM4sa28,3374
556
+ pip/_vendor/idna/compat.py,sha256=0_sOEUMT4CVw9doD3vyRhX80X19PwqFoUBs7gWsFME4,321
557
+ pip/_vendor/idna/core.py,sha256=RFIkY-HhFZaDoBEFjGwyGd_vWI04uOAQjnzueMWqwOU,12795
558
+ pip/_vendor/idna/idnadata.py,sha256=fzMzkCea2xieVxcrjngJ-2pLsKQNejPCZFlBajIuQdw,44025
559
+ pip/_vendor/idna/intranges.py,sha256=YBr4fRYuWH7kTKS2tXlFjM24ZF1Pdvcir-aywniInqg,1881
560
+ pip/_vendor/idna/package_data.py,sha256=szxQhV0ZD0nKJ84Kuobw3l8q4_KeCyXjFRdpwIpKZmw,21
561
+ pip/_vendor/idna/uts46data.py,sha256=o-D7V-a0fOLZNd7tvxof6MYfUd0TBZzE2bLR5XO67xU,204400
562
+ pip/_vendor/msgpack/__init__.py,sha256=2gJwcsTIaAtCM0GMi2rU-_Y6kILeeQuqRkrQ22jSANc,1118
563
+ pip/_vendor/msgpack/__pycache__/__init__.cpython-39.pyc,,
564
+ pip/_vendor/msgpack/__pycache__/_version.cpython-39.pyc,,
565
+ pip/_vendor/msgpack/__pycache__/exceptions.cpython-39.pyc,,
566
+ pip/_vendor/msgpack/__pycache__/ext.cpython-39.pyc,,
567
+ pip/_vendor/msgpack/__pycache__/fallback.cpython-39.pyc,,
568
+ pip/_vendor/msgpack/_version.py,sha256=JpTcnRd3YUioA24NDtDZbLW0Nhl2yA-N1Rq2lLDBB-g,20
569
+ pip/_vendor/msgpack/exceptions.py,sha256=dCTWei8dpkrMsQDcjQk74ATl9HsIBH0ybt8zOPNqMYc,1081
570
+ pip/_vendor/msgpack/ext.py,sha256=4l356Y4sVEcvCla2dh_cL57vh4GMhZfa3kuWHFHYz6A,6088
571
+ pip/_vendor/msgpack/fallback.py,sha256=L5jriXysURbf6rPbbHbvXgvoFrKZiryIBmujMTcrf3A,34475
572
+ pip/_vendor/packaging/__about__.py,sha256=ugASIO2w1oUyH8_COqQ2X_s0rDhjbhQC3yJocD03h2c,661
573
+ pip/_vendor/packaging/__init__.py,sha256=b9Kk5MF7KxhhLgcDmiUWukN-LatWFxPdNug0joPhHSk,497
574
+ pip/_vendor/packaging/__pycache__/__about__.cpython-39.pyc,,
575
+ pip/_vendor/packaging/__pycache__/__init__.cpython-39.pyc,,
576
+ pip/_vendor/packaging/__pycache__/_manylinux.cpython-39.pyc,,
577
+ pip/_vendor/packaging/__pycache__/_musllinux.cpython-39.pyc,,
578
+ pip/_vendor/packaging/__pycache__/_structures.cpython-39.pyc,,
579
+ pip/_vendor/packaging/__pycache__/markers.cpython-39.pyc,,
580
+ pip/_vendor/packaging/__pycache__/requirements.cpython-39.pyc,,
581
+ pip/_vendor/packaging/__pycache__/specifiers.cpython-39.pyc,,
582
+ pip/_vendor/packaging/__pycache__/tags.cpython-39.pyc,,
583
+ pip/_vendor/packaging/__pycache__/utils.cpython-39.pyc,,
584
+ pip/_vendor/packaging/__pycache__/version.cpython-39.pyc,,
585
+ pip/_vendor/packaging/_manylinux.py,sha256=XcbiXB-qcjv3bcohp6N98TMpOP4_j3m-iOA8ptK2GWY,11488
586
+ pip/_vendor/packaging/_musllinux.py,sha256=_KGgY_qc7vhMGpoqss25n2hiLCNKRtvz9mCrS7gkqyc,4378
587
+ pip/_vendor/packaging/_structures.py,sha256=q3eVNmbWJGG_S0Dit_S3Ao8qQqz_5PYTXFAKBZe5yr4,1431
588
+ pip/_vendor/packaging/markers.py,sha256=AJBOcY8Oq0kYc570KuuPTkvuqjAlhufaE2c9sCUbm64,8487
589
+ pip/_vendor/packaging/requirements.py,sha256=NtDlPBtojpn1IUC85iMjPNsUmufjpSlwnNA-Xb4m5NA,4676
590
+ pip/_vendor/packaging/specifiers.py,sha256=LRQ0kFsHrl5qfcFNEEJrIFYsnIHQUJXY9fIsakTrrqE,30110
591
+ pip/_vendor/packaging/tags.py,sha256=lmsnGNiJ8C4D_Pf9PbM0qgbZvD9kmB9lpZBQUZa3R_Y,15699
592
+ pip/_vendor/packaging/utils.py,sha256=dJjeat3BS-TYn1RrUFVwufUMasbtzLfYRoy_HXENeFQ,4200
593
+ pip/_vendor/packaging/version.py,sha256=_fLRNrFrxYcHVfyo8vk9j8s6JM8N_xsSxVFr6RJyco8,14665
594
+ pip/_vendor/pep517/__init__.py,sha256=Y1bATL2qbFNN6M_DQa4yyrwqjpIiL-j9T6kBmR0DS14,130
595
+ pip/_vendor/pep517/__pycache__/__init__.cpython-39.pyc,,
596
+ pip/_vendor/pep517/__pycache__/build.cpython-39.pyc,,
597
+ pip/_vendor/pep517/__pycache__/check.cpython-39.pyc,,
598
+ pip/_vendor/pep517/__pycache__/colorlog.cpython-39.pyc,,
599
+ pip/_vendor/pep517/__pycache__/compat.cpython-39.pyc,,
600
+ pip/_vendor/pep517/__pycache__/dirtools.cpython-39.pyc,,
601
+ pip/_vendor/pep517/__pycache__/envbuild.cpython-39.pyc,,
602
+ pip/_vendor/pep517/__pycache__/meta.cpython-39.pyc,,
603
+ pip/_vendor/pep517/__pycache__/wrappers.cpython-39.pyc,,
604
+ pip/_vendor/pep517/build.py,sha256=2bar6EdjwIz2Dlfy94qdxn3oA9mVnnny40mfoT5f-qI,3457
605
+ pip/_vendor/pep517/check.py,sha256=bCORq1WrHjhpTONa-zpAqG0EB9rHNuhO1ORu6DsDuL8,6084
606
+ pip/_vendor/pep517/colorlog.py,sha256=Tk9AuYm_cLF3BKTBoSTJt9bRryn0aFojIQOwbfVUTxQ,4098
607
+ pip/_vendor/pep517/compat.py,sha256=NmLImE5oiDT3gbEhJ4w7xeoMFcpAPrGu_NltBytSJUY,1253
608
+ pip/_vendor/pep517/dirtools.py,sha256=2mkAkAL0mRz_elYFjRKuekTJVipH1zTn4tbf1EDev84,1129
609
+ pip/_vendor/pep517/envbuild.py,sha256=zFde--rmzjXMLXcm7SA_3hDtgk5VCTA8hjpk88RbF6E,6100
610
+ pip/_vendor/pep517/in_process/__init__.py,sha256=MyWoAi8JHdcBv7yXuWpUSVADbx6LSB9rZh7kTIgdA8Y,563
611
+ pip/_vendor/pep517/in_process/__pycache__/__init__.cpython-39.pyc,,
612
+ pip/_vendor/pep517/in_process/__pycache__/_in_process.cpython-39.pyc,,
613
+ pip/_vendor/pep517/in_process/_in_process.py,sha256=D3waguyNSGcwosociD5USfcycYr2RCzCjYtxX5UHQmQ,11201
614
+ pip/_vendor/pep517/meta.py,sha256=8mnM5lDnT4zXQpBTliJbRGfesH7iioHwozbDxALPS9Y,2463
615
+ pip/_vendor/pep517/wrappers.py,sha256=impq7Cz_LL1iDF1iiOzYWB4MaEu6O6Gps7TJ5qsJz1Q,13429
616
+ pip/_vendor/pkg_resources/__init__.py,sha256=NnpQ3g6BCHzpMgOR_OLBmYtniY4oOzdKpwqghfq_6ug,108287
617
+ pip/_vendor/pkg_resources/__pycache__/__init__.cpython-39.pyc,,
618
+ pip/_vendor/pkg_resources/__pycache__/py31compat.cpython-39.pyc,,
619
+ pip/_vendor/pkg_resources/py31compat.py,sha256=CRk8fkiPRDLsbi5pZcKsHI__Pbmh_94L8mr9Qy9Ab2U,562
620
+ pip/_vendor/platformdirs/__init__.py,sha256=Aizpxewwd4nY63Gqw-Od1Rso9Ah4bSoc6rkx-GBRu2Y,12676
621
+ pip/_vendor/platformdirs/__main__.py,sha256=ZmsnTxEOxtTvwa-Y_Vfab_JN3X4XCVeN8X0yyy9-qnc,1176
622
+ pip/_vendor/platformdirs/__pycache__/__init__.cpython-39.pyc,,
623
+ pip/_vendor/platformdirs/__pycache__/__main__.cpython-39.pyc,,
624
+ pip/_vendor/platformdirs/__pycache__/android.cpython-39.pyc,,
625
+ pip/_vendor/platformdirs/__pycache__/api.cpython-39.pyc,,
626
+ pip/_vendor/platformdirs/__pycache__/macos.cpython-39.pyc,,
627
+ pip/_vendor/platformdirs/__pycache__/unix.cpython-39.pyc,,
628
+ pip/_vendor/platformdirs/__pycache__/version.cpython-39.pyc,,
629
+ pip/_vendor/platformdirs/__pycache__/windows.cpython-39.pyc,,
630
+ pip/_vendor/platformdirs/android.py,sha256=xhlD4NmrKCARe5lgnpBGYo4lOYxEOBOByNDNYy91gEE,4012
631
+ pip/_vendor/platformdirs/api.py,sha256=MXKHXOL3eh_-trSok-JUTjAR_zjmmKF3rjREVABjP8s,4910
632
+ pip/_vendor/platformdirs/macos.py,sha256=-3UXQewbT0yMhMdkzRXfXGAntmLIH7Qt4a9Hlf8I5_Y,2655
633
+ pip/_vendor/platformdirs/unix.py,sha256=b4aVYTz0qZ50HntwOXo8r6tp82jAa3qTjxw-WlnC2yc,6910
634
+ pip/_vendor/platformdirs/version.py,sha256=bXzLJCe23FNQRQrf7ZRWKejxWnct_wft7dxdkMGT33E,80
635
+ pip/_vendor/platformdirs/windows.py,sha256=ISruopR5UGBePC0BxCxXevkZYfjJsIZc49YWU5iYfQ4,6439
636
+ pip/_vendor/progress/__init__.py,sha256=1HejNZtv2ouUNQeStUDAtZrtwkz_3FmYKQ476hJ7zOs,5294
637
+ pip/_vendor/progress/__pycache__/__init__.cpython-39.pyc,,
638
+ pip/_vendor/progress/__pycache__/bar.cpython-39.pyc,,
639
+ pip/_vendor/progress/__pycache__/colors.cpython-39.pyc,,
640
+ pip/_vendor/progress/__pycache__/counter.cpython-39.pyc,,
641
+ pip/_vendor/progress/__pycache__/spinner.cpython-39.pyc,,
642
+ pip/_vendor/progress/bar.py,sha256=GbedY0oZ-Q1duXjmvVLO0tSf-uTSH7hJ3zzyI91Esws,2942
643
+ pip/_vendor/progress/colors.py,sha256=cCYXQnYFYVmQKKmYEbQ_lj6SPSFzdw4FN98F2x2kR-U,2655
644
+ pip/_vendor/progress/counter.py,sha256=zYt9DWH0_05s8Q9TrJwHVud-WwsyyaR3PwYtk5hxwwQ,1613
645
+ pip/_vendor/progress/spinner.py,sha256=u5ElzW94XEiLGH-aAlr54VJtKfeK745xr6UfGvvflzU,1461
646
+ pip/_vendor/pygments/__init__.py,sha256=CAmA9UthykwxvtutUcH0IxqtiyQcSg6CmYdM-jKlcRY,3002
647
+ pip/_vendor/pygments/__main__.py,sha256=X7rGLMUC54EXgO14FZ9goKXZDmhPzKXTsUglmb_McIU,353
648
+ pip/_vendor/pygments/__pycache__/__init__.cpython-39.pyc,,
649
+ pip/_vendor/pygments/__pycache__/__main__.cpython-39.pyc,,
650
+ pip/_vendor/pygments/__pycache__/cmdline.cpython-39.pyc,,
651
+ pip/_vendor/pygments/__pycache__/console.cpython-39.pyc,,
652
+ pip/_vendor/pygments/__pycache__/filter.cpython-39.pyc,,
653
+ pip/_vendor/pygments/__pycache__/formatter.cpython-39.pyc,,
654
+ pip/_vendor/pygments/__pycache__/lexer.cpython-39.pyc,,
655
+ pip/_vendor/pygments/__pycache__/modeline.cpython-39.pyc,,
656
+ pip/_vendor/pygments/__pycache__/plugin.cpython-39.pyc,,
657
+ pip/_vendor/pygments/__pycache__/regexopt.cpython-39.pyc,,
658
+ pip/_vendor/pygments/__pycache__/scanner.cpython-39.pyc,,
659
+ pip/_vendor/pygments/__pycache__/sphinxext.cpython-39.pyc,,
660
+ pip/_vendor/pygments/__pycache__/style.cpython-39.pyc,,
661
+ pip/_vendor/pygments/__pycache__/token.cpython-39.pyc,,
662
+ pip/_vendor/pygments/__pycache__/unistring.cpython-39.pyc,,
663
+ pip/_vendor/pygments/__pycache__/util.cpython-39.pyc,,
664
+ pip/_vendor/pygments/cmdline.py,sha256=XpsyWgErcSqHC7rXiYKLF3Y61Uy8SR2DNQDDhZGuezg,23408
665
+ pip/_vendor/pygments/console.py,sha256=QZXBUAkyl4dPLQ1e6XHjQu3mmXBWvuGQwsQT2q1mtCY,1697
666
+ pip/_vendor/pygments/filter.py,sha256=35iMZiB1rcuogxokm92kViB2DPXPp_wWoxWuMmwvvzY,1938
667
+ pip/_vendor/pygments/filters/__init__.py,sha256=-veOimzCyYGEARru2Dfo6ofSYcZ8tGsIVuMprtaZQ24,40292
668
+ pip/_vendor/pygments/filters/__pycache__/__init__.cpython-39.pyc,,
669
+ pip/_vendor/pygments/formatter.py,sha256=zSBbX2U_OOriy7SJvSTK6OAxjuXtROWxQlNpJEJZjBA,2917
670
+ pip/_vendor/pygments/formatters/__init__.py,sha256=fjkYDy5-F998XczKi0ymHFayr5ObIRLHF8cgp9k8kpA,5119
671
+ pip/_vendor/pygments/formatters/__pycache__/__init__.cpython-39.pyc,,
672
+ pip/_vendor/pygments/formatters/__pycache__/_mapping.cpython-39.pyc,,
673
+ pip/_vendor/pygments/formatters/__pycache__/bbcode.cpython-39.pyc,,
674
+ pip/_vendor/pygments/formatters/__pycache__/groff.cpython-39.pyc,,
675
+ pip/_vendor/pygments/formatters/__pycache__/html.cpython-39.pyc,,
676
+ pip/_vendor/pygments/formatters/__pycache__/img.cpython-39.pyc,,
677
+ pip/_vendor/pygments/formatters/__pycache__/irc.cpython-39.pyc,,
678
+ pip/_vendor/pygments/formatters/__pycache__/latex.cpython-39.pyc,,
679
+ pip/_vendor/pygments/formatters/__pycache__/other.cpython-39.pyc,,
680
+ pip/_vendor/pygments/formatters/__pycache__/pangomarkup.cpython-39.pyc,,
681
+ pip/_vendor/pygments/formatters/__pycache__/rtf.cpython-39.pyc,,
682
+ pip/_vendor/pygments/formatters/__pycache__/svg.cpython-39.pyc,,
683
+ pip/_vendor/pygments/formatters/__pycache__/terminal.cpython-39.pyc,,
684
+ pip/_vendor/pygments/formatters/__pycache__/terminal256.cpython-39.pyc,,
685
+ pip/_vendor/pygments/formatters/_mapping.py,sha256=3A1rYSjYN9MLduCFWy2_mYhllPVpwlw55anRYnPXX8w,6516
686
+ pip/_vendor/pygments/formatters/bbcode.py,sha256=cSKMOioUnE4TzvCCsK4IbJ6G78W07ZwHtkz4V1Wte0U,3314
687
+ pip/_vendor/pygments/formatters/groff.py,sha256=ULgMKvGeLswX0KZn3IBp0p0U3rruiSHBtpl6O5qbqLs,5005
688
+ pip/_vendor/pygments/formatters/html.py,sha256=0jM7Jc4xA4tsjmPq35uklm_En_OVdcNb0__SEXp2pDQ,35330
689
+ pip/_vendor/pygments/formatters/img.py,sha256=r4iag_jCfyv_LhIt-1fRDeVEEoAfVJzkD9nZChIwiS8,21819
690
+ pip/_vendor/pygments/formatters/irc.py,sha256=gi_IeIZeNaTfTMtvseLigZdS6lNicN7r7O7rnI6myo0,5871
691
+ pip/_vendor/pygments/formatters/latex.py,sha256=qZUerrHt2Nn2aB4gJcdqj99qBkIxl_1v1ukYsf230Gk,18930
692
+ pip/_vendor/pygments/formatters/other.py,sha256=Q01LtkqPZ8m_EYdgMVzXPUGjHoL00lXI3By97wzytYU,5073
693
+ pip/_vendor/pygments/formatters/pangomarkup.py,sha256=ZpjALTSuGFwviJd5kOYwr-1NgqxCX3XRJrjXC7x1UbQ,2212
694
+ pip/_vendor/pygments/formatters/rtf.py,sha256=qh7-z_wbUsTY6z7fZUGrYECYBlWB0wEdBwIZVEVybL0,5014
695
+ pip/_vendor/pygments/formatters/svg.py,sha256=T7Jj004I3JUPOr48aAhQ368K2qWCciUyMQ2tdU-LB-4,7335
696
+ pip/_vendor/pygments/formatters/terminal.py,sha256=cRD5hitINOkYlGZo9ma252vpJYPSGNgLivrsm6zGyec,4674
697
+ pip/_vendor/pygments/formatters/terminal256.py,sha256=Bvz9zZL3UWc94TDm1GhKMI4x0BTit0XplhyRL0zmtkw,11753
698
+ pip/_vendor/pygments/lexer.py,sha256=ECXWlEsbRnKs_njozZns6BGQ4riTMzct_BzAr3zV6dY,31937
699
+ pip/_vendor/pygments/lexers/__init__.py,sha256=6Ds0GVBP3jrIU02wmjRdpoL4eFGhwT2IVD1zf3cV5_Y,11307
700
+ pip/_vendor/pygments/lexers/__pycache__/__init__.cpython-39.pyc,,
701
+ pip/_vendor/pygments/lexers/__pycache__/_mapping.cpython-39.pyc,,
702
+ pip/_vendor/pygments/lexers/__pycache__/python.cpython-39.pyc,,
703
+ pip/_vendor/pygments/lexers/_mapping.py,sha256=jAxmvh5wvNkD-p3Fh6E7hY_B0sGbcxWRfseT6iq7ex4,70032
704
+ pip/_vendor/pygments/lexers/python.py,sha256=LXnk43Lcngqn9xj6eRqdk2f73oF4kHZWiwgHMM_RlVM,52776
705
+ pip/_vendor/pygments/modeline.py,sha256=37fen3cf1moCz4vMVJqX41eAQCmj8pzUchikgPcHp-U,986
706
+ pip/_vendor/pygments/plugin.py,sha256=zGSig3S7QX-3o6RDxd4_Uvice_t25l_BN9aQQ9k8vmU,1727
707
+ pip/_vendor/pygments/regexopt.py,sha256=mj8Fgu3sT0d5PZwRwDLexEvVOQbuHeosubQnqVwgiqs,3072
708
+ pip/_vendor/pygments/scanner.py,sha256=nGoHy-Npk2ylUd4bws_CJN1hK785Xqo8e0teRmNX2jo,3091
709
+ pip/_vendor/pygments/sphinxext.py,sha256=FZ2puvLe2Bztqtj6UJvQd7D8TvtOZ1GsfRJObvH59tE,4630
710
+ pip/_vendor/pygments/style.py,sha256=lGyan5bU42q1kGMfFqafwL3g1j5EurTvfkv8vdP7NzQ,6257
711
+ pip/_vendor/pygments/styles/__init__.py,sha256=Qx2zq6ufbDNE2cTp51M-s9zW-sDE-KLIqFw31qr3Bhg,3252
712
+ pip/_vendor/pygments/styles/__pycache__/__init__.cpython-39.pyc,,
713
+ pip/_vendor/pygments/token.py,sha256=lNPgeaQTzu2DEUi6n_lxAIU7uy4DVj8LMI3nSVnTjks,6143
714
+ pip/_vendor/pygments/unistring.py,sha256=Xs0FzOzE0l0iWRoTlcgi-Q_kAMdF5Gt5FL_goGKJc98,63188
715
+ pip/_vendor/pygments/util.py,sha256=s9n8BQXIxG3lIwCPWv5-ci8yhaqq5JbEVK9v8Z-8_3I,9123
716
+ pip/_vendor/pyparsing/__init__.py,sha256=jXheGTFT1b6r_4WxuOE0uVUqiouLJ3WHzOScpLieRgQ,9107
717
+ pip/_vendor/pyparsing/__pycache__/__init__.cpython-39.pyc,,
718
+ pip/_vendor/pyparsing/__pycache__/actions.cpython-39.pyc,,
719
+ pip/_vendor/pyparsing/__pycache__/common.cpython-39.pyc,,
720
+ pip/_vendor/pyparsing/__pycache__/core.cpython-39.pyc,,
721
+ pip/_vendor/pyparsing/__pycache__/exceptions.cpython-39.pyc,,
722
+ pip/_vendor/pyparsing/__pycache__/helpers.cpython-39.pyc,,
723
+ pip/_vendor/pyparsing/__pycache__/results.cpython-39.pyc,,
724
+ pip/_vendor/pyparsing/__pycache__/testing.cpython-39.pyc,,
725
+ pip/_vendor/pyparsing/__pycache__/unicode.cpython-39.pyc,,
726
+ pip/_vendor/pyparsing/__pycache__/util.cpython-39.pyc,,
727
+ pip/_vendor/pyparsing/actions.py,sha256=60v7mETOBzc01YPH_qQD5isavgcSJpAfIKpzgjM3vaU,6429
728
+ pip/_vendor/pyparsing/common.py,sha256=lFL97ooIeR75CmW5hjURZqwDCTgruqltcTCZ-ulLO2Q,12936
729
+ pip/_vendor/pyparsing/core.py,sha256=GtQsD06HlwKPc7M8K8hyOuOW-cRnd87AxAHq-ad5lEk,212248
730
+ pip/_vendor/pyparsing/diagram/__init__.py,sha256=h0gsUwmo5N3shgvfXVQTtqvTpUAv-ZdQjSQ6IUJmsxY,22165
731
+ pip/_vendor/pyparsing/diagram/__pycache__/__init__.cpython-39.pyc,,
732
+ pip/_vendor/pyparsing/exceptions.py,sha256=H4D9gqMavqmAFSsdrU_J6bO-jA-T-A7yvtXWZpooIUA,9030
733
+ pip/_vendor/pyparsing/helpers.py,sha256=kqpIZFG-y0fQ3g_TmloYllo9we6YCYiewZMXIK0y5wc,38299
734
+ pip/_vendor/pyparsing/results.py,sha256=4D-oURF1cLeL7k0d3zMqUuWH_gTjop_OrZwik9O0HXU,25339
735
+ pip/_vendor/pyparsing/testing.py,sha256=szs8AKZREZMhL0y0vsMfaTVAnpqPHetg6VKJBNmc4QY,13388
736
+ pip/_vendor/pyparsing/unicode.py,sha256=IR-ioeGY29cZ49tG8Ts7ITPWWNP5G2DcZs58oa8zn44,10381
737
+ pip/_vendor/pyparsing/util.py,sha256=kq772O5YSeXOSdP-M31EWpbH_ayj7BMHImBYo9xPD5M,6805
738
+ pip/_vendor/requests/__init__.py,sha256=6IUFQM6K9V2NIu4fe4LtUsN21-TFbw_w3EfPpdUN-qc,5130
739
+ pip/_vendor/requests/__pycache__/__init__.cpython-39.pyc,,
740
+ pip/_vendor/requests/__pycache__/__version__.cpython-39.pyc,,
741
+ pip/_vendor/requests/__pycache__/_internal_utils.cpython-39.pyc,,
742
+ pip/_vendor/requests/__pycache__/adapters.cpython-39.pyc,,
743
+ pip/_vendor/requests/__pycache__/api.cpython-39.pyc,,
744
+ pip/_vendor/requests/__pycache__/auth.cpython-39.pyc,,
745
+ pip/_vendor/requests/__pycache__/certs.cpython-39.pyc,,
746
+ pip/_vendor/requests/__pycache__/compat.cpython-39.pyc,,
747
+ pip/_vendor/requests/__pycache__/cookies.cpython-39.pyc,,
748
+ pip/_vendor/requests/__pycache__/exceptions.cpython-39.pyc,,
749
+ pip/_vendor/requests/__pycache__/help.cpython-39.pyc,,
750
+ pip/_vendor/requests/__pycache__/hooks.cpython-39.pyc,,
751
+ pip/_vendor/requests/__pycache__/models.cpython-39.pyc,,
752
+ pip/_vendor/requests/__pycache__/packages.cpython-39.pyc,,
753
+ pip/_vendor/requests/__pycache__/sessions.cpython-39.pyc,,
754
+ pip/_vendor/requests/__pycache__/status_codes.cpython-39.pyc,,
755
+ pip/_vendor/requests/__pycache__/structures.cpython-39.pyc,,
756
+ pip/_vendor/requests/__pycache__/utils.cpython-39.pyc,,
757
+ pip/_vendor/requests/__version__.py,sha256=q8miOQaomOv3S74lK4eQs1zZ5jwcnOusyEU-M2idhts,441
758
+ pip/_vendor/requests/_internal_utils.py,sha256=Zx3PnEUccyfsB-ie11nZVAW8qClJy0gx1qNME7rgT18,1096
759
+ pip/_vendor/requests/adapters.py,sha256=WazYJQ_b2LHhNDb_y0hscNlWVsSe5ca5I3pymPrer5w,21861
760
+ pip/_vendor/requests/api.py,sha256=hjuoP79IAEmX6Dysrw8t032cLfwLHxbI_wM4gC5G9t0,6402
761
+ pip/_vendor/requests/auth.py,sha256=OMoJIVKyRLy9THr91y8rxysZuclwPB-K1Xg1zBomUhQ,10207
762
+ pip/_vendor/requests/certs.py,sha256=nXRVq9DtGmv_1AYbwjTu9UrgAcdJv05ZvkNeaoLOZxY,465
763
+ pip/_vendor/requests/compat.py,sha256=N1281mkcTluMjKqCSLf88LR6HNOygEhS1TbR9LLsoVY,2114
764
+ pip/_vendor/requests/cookies.py,sha256=Y-bKX6TvW3FnYlE6Au0SXtVVWcaNdFvuAwQxw-G0iTI,18430
765
+ pip/_vendor/requests/exceptions.py,sha256=VcpBXOL-9JYhNbK8OZxCIImBgpQSXJlUelDPf1f-pmM,3446
766
+ pip/_vendor/requests/help.py,sha256=dyhe3lcmHXnFCzDiZVjcGmVvvO_jtsfAm-AC542ndw8,3972
767
+ pip/_vendor/requests/hooks.py,sha256=QReGyy0bRcr5rkwCuObNakbYsc7EkiKeBwG4qHekr2Q,757
768
+ pip/_vendor/requests/models.py,sha256=7pzscX_47qxx7-zEaBWGxMoB33Vdf6HLoUKZh1ktEvM,35116
769
+ pip/_vendor/requests/packages.py,sha256=njJmVifY4aSctuW3PP5EFRCxjEwMRDO6J_feG2dKWsI,695
770
+ pip/_vendor/requests/sessions.py,sha256=Zu-Y9YPlwTIsyFx1hvIrc3ziyeFpuFPqcOuSuz8BNWs,29835
771
+ pip/_vendor/requests/status_codes.py,sha256=gT79Pbs_cQjBgp-fvrUgg1dn2DQO32bDj4TInjnMPSc,4188
772
+ pip/_vendor/requests/structures.py,sha256=msAtr9mq1JxHd-JRyiILfdFlpbJwvvFuP3rfUQT_QxE,3005
773
+ pip/_vendor/requests/utils.py,sha256=siud-FQ6xgKFbL49DRvAb3PMQMMHoeCL_TCmuHh9AUU,33301
774
+ pip/_vendor/resolvelib/__init__.py,sha256=UL-B2BDI0_TRIqkfGwLHKLxY-LjBlomz7941wDqzB1I,537
775
+ pip/_vendor/resolvelib/__pycache__/__init__.cpython-39.pyc,,
776
+ pip/_vendor/resolvelib/__pycache__/providers.cpython-39.pyc,,
777
+ pip/_vendor/resolvelib/__pycache__/reporters.cpython-39.pyc,,
778
+ pip/_vendor/resolvelib/__pycache__/resolvers.cpython-39.pyc,,
779
+ pip/_vendor/resolvelib/__pycache__/structs.cpython-39.pyc,,
780
+ pip/_vendor/resolvelib/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
781
+ pip/_vendor/resolvelib/compat/__pycache__/__init__.cpython-39.pyc,,
782
+ pip/_vendor/resolvelib/compat/__pycache__/collections_abc.cpython-39.pyc,,
783
+ pip/_vendor/resolvelib/compat/collections_abc.py,sha256=uy8xUZ-NDEw916tugUXm8HgwCGiMO0f-RcdnpkfXfOs,156
784
+ pip/_vendor/resolvelib/providers.py,sha256=roVmFBItQJ0TkhNua65h8LdNny7rmeqVEXZu90QiP4o,5872
785
+ pip/_vendor/resolvelib/reporters.py,sha256=fW91NKf-lK8XN7i6Yd_rczL5QeOT3sc6AKhpaTEnP3E,1583
786
+ pip/_vendor/resolvelib/resolvers.py,sha256=2wYzVGBGerbmcIpH8cFmgSKgLSETz8jmwBMGjCBMHG4,17592
787
+ pip/_vendor/resolvelib/structs.py,sha256=IVIYof6sA_N4ZEiE1C1UhzTX495brCNnyCdgq6CYq28,4794
788
+ pip/_vendor/rich/__init__.py,sha256=wF1th4JGBCVC02xfaw8j6P2MrFcJaQJL72scKtEmDYQ,5804
789
+ pip/_vendor/rich/__main__.py,sha256=vd1PP-o7_1un-ThdgMU9LHV-D8z56yz_-fryczn38eE,8810
790
+ pip/_vendor/rich/__pycache__/__init__.cpython-39.pyc,,
791
+ pip/_vendor/rich/__pycache__/__main__.cpython-39.pyc,,
792
+ pip/_vendor/rich/__pycache__/_cell_widths.cpython-39.pyc,,
793
+ pip/_vendor/rich/__pycache__/_emoji_codes.cpython-39.pyc,,
794
+ pip/_vendor/rich/__pycache__/_emoji_replace.cpython-39.pyc,,
795
+ pip/_vendor/rich/__pycache__/_extension.cpython-39.pyc,,
796
+ pip/_vendor/rich/__pycache__/_inspect.cpython-39.pyc,,
797
+ pip/_vendor/rich/__pycache__/_log_render.cpython-39.pyc,,
798
+ pip/_vendor/rich/__pycache__/_loop.cpython-39.pyc,,
799
+ pip/_vendor/rich/__pycache__/_lru_cache.cpython-39.pyc,,
800
+ pip/_vendor/rich/__pycache__/_palettes.cpython-39.pyc,,
801
+ pip/_vendor/rich/__pycache__/_pick.cpython-39.pyc,,
802
+ pip/_vendor/rich/__pycache__/_ratio.cpython-39.pyc,,
803
+ pip/_vendor/rich/__pycache__/_spinners.cpython-39.pyc,,
804
+ pip/_vendor/rich/__pycache__/_stack.cpython-39.pyc,,
805
+ pip/_vendor/rich/__pycache__/_timer.cpython-39.pyc,,
806
+ pip/_vendor/rich/__pycache__/_windows.cpython-39.pyc,,
807
+ pip/_vendor/rich/__pycache__/_wrap.cpython-39.pyc,,
808
+ pip/_vendor/rich/__pycache__/abc.cpython-39.pyc,,
809
+ pip/_vendor/rich/__pycache__/align.cpython-39.pyc,,
810
+ pip/_vendor/rich/__pycache__/ansi.cpython-39.pyc,,
811
+ pip/_vendor/rich/__pycache__/bar.cpython-39.pyc,,
812
+ pip/_vendor/rich/__pycache__/box.cpython-39.pyc,,
813
+ pip/_vendor/rich/__pycache__/cells.cpython-39.pyc,,
814
+ pip/_vendor/rich/__pycache__/color.cpython-39.pyc,,
815
+ pip/_vendor/rich/__pycache__/color_triplet.cpython-39.pyc,,
816
+ pip/_vendor/rich/__pycache__/columns.cpython-39.pyc,,
817
+ pip/_vendor/rich/__pycache__/console.cpython-39.pyc,,
818
+ pip/_vendor/rich/__pycache__/constrain.cpython-39.pyc,,
819
+ pip/_vendor/rich/__pycache__/containers.cpython-39.pyc,,
820
+ pip/_vendor/rich/__pycache__/control.cpython-39.pyc,,
821
+ pip/_vendor/rich/__pycache__/default_styles.cpython-39.pyc,,
822
+ pip/_vendor/rich/__pycache__/diagnose.cpython-39.pyc,,
823
+ pip/_vendor/rich/__pycache__/emoji.cpython-39.pyc,,
824
+ pip/_vendor/rich/__pycache__/errors.cpython-39.pyc,,
825
+ pip/_vendor/rich/__pycache__/file_proxy.cpython-39.pyc,,
826
+ pip/_vendor/rich/__pycache__/filesize.cpython-39.pyc,,
827
+ pip/_vendor/rich/__pycache__/highlighter.cpython-39.pyc,,
828
+ pip/_vendor/rich/__pycache__/json.cpython-39.pyc,,
829
+ pip/_vendor/rich/__pycache__/jupyter.cpython-39.pyc,,
830
+ pip/_vendor/rich/__pycache__/layout.cpython-39.pyc,,
831
+ pip/_vendor/rich/__pycache__/live.cpython-39.pyc,,
832
+ pip/_vendor/rich/__pycache__/live_render.cpython-39.pyc,,
833
+ pip/_vendor/rich/__pycache__/logging.cpython-39.pyc,,
834
+ pip/_vendor/rich/__pycache__/markup.cpython-39.pyc,,
835
+ pip/_vendor/rich/__pycache__/measure.cpython-39.pyc,,
836
+ pip/_vendor/rich/__pycache__/padding.cpython-39.pyc,,
837
+ pip/_vendor/rich/__pycache__/pager.cpython-39.pyc,,
838
+ pip/_vendor/rich/__pycache__/palette.cpython-39.pyc,,
839
+ pip/_vendor/rich/__pycache__/panel.cpython-39.pyc,,
840
+ pip/_vendor/rich/__pycache__/pretty.cpython-39.pyc,,
841
+ pip/_vendor/rich/__pycache__/progress.cpython-39.pyc,,
842
+ pip/_vendor/rich/__pycache__/progress_bar.cpython-39.pyc,,
843
+ pip/_vendor/rich/__pycache__/prompt.cpython-39.pyc,,
844
+ pip/_vendor/rich/__pycache__/protocol.cpython-39.pyc,,
845
+ pip/_vendor/rich/__pycache__/region.cpython-39.pyc,,
846
+ pip/_vendor/rich/__pycache__/repr.cpython-39.pyc,,
847
+ pip/_vendor/rich/__pycache__/rule.cpython-39.pyc,,
848
+ pip/_vendor/rich/__pycache__/scope.cpython-39.pyc,,
849
+ pip/_vendor/rich/__pycache__/screen.cpython-39.pyc,,
850
+ pip/_vendor/rich/__pycache__/segment.cpython-39.pyc,,
851
+ pip/_vendor/rich/__pycache__/spinner.cpython-39.pyc,,
852
+ pip/_vendor/rich/__pycache__/status.cpython-39.pyc,,
853
+ pip/_vendor/rich/__pycache__/style.cpython-39.pyc,,
854
+ pip/_vendor/rich/__pycache__/styled.cpython-39.pyc,,
855
+ pip/_vendor/rich/__pycache__/syntax.cpython-39.pyc,,
856
+ pip/_vendor/rich/__pycache__/table.cpython-39.pyc,,
857
+ pip/_vendor/rich/__pycache__/tabulate.cpython-39.pyc,,
858
+ pip/_vendor/rich/__pycache__/terminal_theme.cpython-39.pyc,,
859
+ pip/_vendor/rich/__pycache__/text.cpython-39.pyc,,
860
+ pip/_vendor/rich/__pycache__/theme.cpython-39.pyc,,
861
+ pip/_vendor/rich/__pycache__/themes.cpython-39.pyc,,
862
+ pip/_vendor/rich/__pycache__/traceback.cpython-39.pyc,,
863
+ pip/_vendor/rich/__pycache__/tree.cpython-39.pyc,,
864
+ pip/_vendor/rich/_cell_widths.py,sha256=2n4EiJi3X9sqIq0O16kUZ_zy6UYMd3xFfChlKfnW1Hc,10096
865
+ pip/_vendor/rich/_emoji_codes.py,sha256=hu1VL9nbVdppJrVoijVshRlcRRe_v3dju3Mmd2sKZdY,140235
866
+ pip/_vendor/rich/_emoji_replace.py,sha256=n-kcetsEUx2ZUmhQrfeMNc-teeGhpuSQ5F8VPBsyvDo,1064
867
+ pip/_vendor/rich/_extension.py,sha256=Xt47QacCKwYruzjDi-gOBq724JReDj9Cm9xUi5fr-34,265
868
+ pip/_vendor/rich/_inspect.py,sha256=vq6BjewwEvddjcBTr_lCcjYQBsKi92aTNpcXyaA5ERA,7444
869
+ pip/_vendor/rich/_log_render.py,sha256=1ByI0PA1ZpxZY3CGJOK54hjlq4X-Bz_boIjIqCd8Kns,3225
870
+ pip/_vendor/rich/_loop.py,sha256=hV_6CLdoPm0va22Wpw4zKqM0RYsz3TZxXj0PoS-9eDQ,1236
871
+ pip/_vendor/rich/_lru_cache.py,sha256=M7H1ZQF32o6SxrpOur9zTIhEHlNXT9XnrcdhruUmG5I,1246
872
+ pip/_vendor/rich/_palettes.py,sha256=cdev1JQKZ0JvlguV9ipHgznTdnvlIzUFDBb0It2PzjI,7063
873
+ pip/_vendor/rich/_pick.py,sha256=evDt8QN4lF5CiwrUIXlOJCntitBCOsI3ZLPEIAVRLJU,423
874
+ pip/_vendor/rich/_ratio.py,sha256=2lLSliL025Y-YMfdfGbutkQDevhcyDqc-DtUYW9mU70,5472
875
+ pip/_vendor/rich/_spinners.py,sha256=huT1biTlwyp9Lm8S7bLfVzg1psUaIH5xHDwTaWEHVh0,26521
876
+ pip/_vendor/rich/_stack.py,sha256=-C8OK7rxn3sIUdVwxZBBpeHhIzX0eI-VM3MemYfaXm0,351
877
+ pip/_vendor/rich/_timer.py,sha256=zelxbT6oPFZnNrwWPpc1ktUeAT-Vc4fuFcRZLQGLtMI,417
878
+ pip/_vendor/rich/_windows.py,sha256=nBO71icHMIHlzT7hg6fkoIdh1mT-5MvDdPDwunkshyw,2065
879
+ pip/_vendor/rich/_wrap.py,sha256=OtnSxnERkuNlSM1d_MYtNg8KIYTcTBk3peg16dCZH_U,1804
880
+ pip/_vendor/rich/abc.py,sha256=ON-E-ZqSSheZ88VrKX2M3PXpFbGEUUZPMa_Af0l-4f0,890
881
+ pip/_vendor/rich/align.py,sha256=2zRHV8SzR5eP-vQkSDgjmgsBLBluCBwykgejAW6oRD0,10425
882
+ pip/_vendor/rich/ansi.py,sha256=QaVVkfvVL6C3OsuWI9iQ-iJFkMsMohjYlxgMLnVTEPo,6676
883
+ pip/_vendor/rich/bar.py,sha256=a7UD303BccRCrEhGjfMElpv5RFYIinaAhAuqYqhUvmw,3264
884
+ pip/_vendor/rich/box.py,sha256=o0ywz1iW0WjGLPrRVDAZPh1CVPEgAOaWsn8Bf3sf43g,9069
885
+ pip/_vendor/rich/cells.py,sha256=NadN20gFxE8Aj-2S3Drn7qgn-ZpsRZcNnTNtweRL7rA,4285
886
+ pip/_vendor/rich/color.py,sha256=SD3yTf3t8japb-jOv8GYCMCDqyzpipzXS_0rAXhSlU4,17285
887
+ pip/_vendor/rich/color_triplet.py,sha256=3lhQkdJbvWPoLDO-AnYImAWmJvV5dlgYNCVZ97ORaN4,1054
888
+ pip/_vendor/rich/columns.py,sha256=HUX0KcMm9dsKNi11fTbiM_h2iDtl8ySCaVcxlalEzq8,7131
889
+ pip/_vendor/rich/console.py,sha256=bioCy8012eZ8PIOBxMyyqxYPltKk2pGEG9jmwylNCQk,81236
890
+ pip/_vendor/rich/constrain.py,sha256=1VIPuC8AgtKWrcncQrjBdYqA3JVWysu6jZo1rrh7c7Q,1288
891
+ pip/_vendor/rich/containers.py,sha256=aKgm5UDHn5Nmui6IJaKdsZhbHClh_X7D-_Wg8Ehrr7s,5497
892
+ pip/_vendor/rich/control.py,sha256=qxg6Yjd78XuF0VxthlT8O4dpvpACYwKkBfm2S4-IvHA,5298
893
+ pip/_vendor/rich/default_styles.py,sha256=At42PcWzmnYWcx5fUOKyOUpI8HK5m4ItZqxkgHToaMs,7614
894
+ pip/_vendor/rich/diagnose.py,sha256=4L8SZfbqjIRotzJ39QzD9-d4I80FyV1mNKHryg1eArE,183
895
+ pip/_vendor/rich/emoji.py,sha256=omTF9asaAnsM4yLY94eR_9dgRRSm1lHUszX20D1yYCQ,2501
896
+ pip/_vendor/rich/errors.py,sha256=5pP3Kc5d4QJ_c0KFsxrfyhjiPVe7J1zOqSFbFAzcV-Y,642
897
+ pip/_vendor/rich/file_proxy.py,sha256=fHeReSO3VJ7IbH_9ri-OrPYbFC3UYOzeTNjngiiWOcY,1613
898
+ pip/_vendor/rich/filesize.py,sha256=oQJnM5_7ygkpzt3GtNq5l3F6gmB7YahBA5vpdQVKLwI,2511
899
+ pip/_vendor/rich/highlighter.py,sha256=AdhjC0meTYswZ_xKgka0cRYdNjLABLUzHAbyF3QpPWo,4894
900
+ pip/_vendor/rich/json.py,sha256=RCm4lXBXrjvXHpqrWPH8wdGP0jEo4IohLmkddlhRY18,5051
901
+ pip/_vendor/rich/jupyter.py,sha256=4sxNAwJs4g3dYfWy_enPw9fp0Tdn-82tV4T9uh9vAOM,3025
902
+ pip/_vendor/rich/layout.py,sha256=b64KMDP2EPiC103P-v-_VZKGY13oWiiGS418P_KRRlc,14048
903
+ pip/_vendor/rich/live.py,sha256=OKxMaFU5sFfuR--cJftGYjSvg1VPQri1U_DNZUjCsvI,13711
904
+ pip/_vendor/rich/live_render.py,sha256=zElm3PrfSIvjOce28zETHMIUf9pFYSUA5o0AflgUP64,3667
905
+ pip/_vendor/rich/logging.py,sha256=YNcCSK6pCo2Wg6JKqScAe6VgFqebHBnS5nDnBO4gXAA,10868
906
+ pip/_vendor/rich/markup.py,sha256=hsVW_k1TIvj5OPPQ12ihAii9HSVa8N1TStvA5B2GGpo,8058
907
+ pip/_vendor/rich/measure.py,sha256=Z74XvzIgLZm0xH-QIo1uX5d4oahavHe8D8MKyxLNqPQ,5258
908
+ pip/_vendor/rich/padding.py,sha256=kTFGsdGe0os7tXLnHKpwTI90CXEvrceeZGCshmJy5zw,4970
909
+ pip/_vendor/rich/pager.py,sha256=VK_2EfH0JduZWdyV-KZma06bvi_V5PWmHG6W7BoiaTg,838
910
+ pip/_vendor/rich/palette.py,sha256=lInvR1ODDT2f3UZMfL1grq7dY_pDdKHw4bdUgOGaM4Y,3396
911
+ pip/_vendor/rich/panel.py,sha256=O6ORyIhDcOLSEasTjpcDvmhvIcppPGCeQoXpoycIUT8,8637
912
+ pip/_vendor/rich/pretty.py,sha256=HAB68BpYysaL1EXeV4X5Tt-U2hDlcLpbFz06fkojWWE,32572
913
+ pip/_vendor/rich/progress.py,sha256=jcgi7aMnQ_YjSpAmQkalwtNsgVn9i56SeZGprr7tuOk,35926
914
+ pip/_vendor/rich/progress_bar.py,sha256=ELiBaxJOgsRYKpNIrot7BC0bFXvmf8cTd6nxI02BbK0,7762
915
+ pip/_vendor/rich/prompt.py,sha256=gKVd13YWv6jedzwcRPZGUINBjC-xcJhJ_xz_NvMW80c,11307
916
+ pip/_vendor/rich/protocol.py,sha256=Vx6n4fEoSDhzSup8t3KH0iK2RWyssIOks5E0S1qw1GA,1401
917
+ pip/_vendor/rich/region.py,sha256=rNT9xZrVZTYIXZC0NYn41CJQwYNbR-KecPOxTgQvB8Y,166
918
+ pip/_vendor/rich/repr.py,sha256=1A0U0_ibG_bZbw71pUBIctO9Az-CQUuyOTbiKcJOwyw,4309
919
+ pip/_vendor/rich/rule.py,sha256=cPK6NYo4kzh-vM_8a-rXajXplsbaHa6ahErYvGSsrJ0,4197
920
+ pip/_vendor/rich/scope.py,sha256=HX13XsJfqzQHpPfw4Jn9JmJjCsRj9uhHxXQEqjkwyLA,2842
921
+ pip/_vendor/rich/screen.py,sha256=YoeReESUhx74grqb0mSSb9lghhysWmFHYhsbMVQjXO8,1591
922
+ pip/_vendor/rich/segment.py,sha256=MBBAWaHyqCQFCfiNbrTW4BGaFR1uU31XktJ1S3Taqb4,23916
923
+ pip/_vendor/rich/spinner.py,sha256=V6dW0jIk5IO0_2MyxyftQf5VjCHI0T2cRhJ4F31hPIQ,4312
924
+ pip/_vendor/rich/status.py,sha256=gJsIXIZeSo3urOyxRUjs6VrhX5CZrA0NxIQ-dxhCnwo,4425
925
+ pip/_vendor/rich/style.py,sha256=AD1I7atfclsFCtGeL8ronH1Jj-02WLp9ZQ2VYqmpBjM,26469
926
+ pip/_vendor/rich/styled.py,sha256=eZNnzGrI4ki_54pgY3Oj0T-x3lxdXTYh4_ryDB24wBU,1258
927
+ pip/_vendor/rich/syntax.py,sha256=pJAD08ywowg5xVwTGCqUOMpDYskjoMoDYEV-hryEX5s,26994
928
+ pip/_vendor/rich/table.py,sha256=oQAEBaV4zMUPyg_tSA93_GrCirdIf-osolxf9wb3pEo,36757
929
+ pip/_vendor/rich/tabulate.py,sha256=nl0oeNbiXectEgTHyj3K7eN4NZMISpaogpOdZyEOGbs,1700
930
+ pip/_vendor/rich/terminal_theme.py,sha256=E0nI_ycFpvflamt-KVCY4J52LmUjRi1Y6ICB-Ef3gMo,1459
931
+ pip/_vendor/rich/text.py,sha256=auX3LpY-I6PBiNyxB3o3LyMEx7lna2cx9IbNQJDwtw8,44424
932
+ pip/_vendor/rich/theme.py,sha256=GKNtQhDBZKAzDaY0vQVQQFzbc0uWfFe6CJXA-syT7zQ,3627
933
+ pip/_vendor/rich/themes.py,sha256=0xgTLozfabebYtcJtDdC5QkX5IVUEaviqDUJJh4YVFk,102
934
+ pip/_vendor/rich/traceback.py,sha256=hAU3IR295eFuup_px2NU4aCEWu7KQs1qpZbnqoHCtR0,25935
935
+ pip/_vendor/rich/tree.py,sha256=JxyWbc27ZuwoLQnd7I-rSsRsqI9lzaVKlfTLJXla9U0,9122
936
+ pip/_vendor/six.py,sha256=TOOfQi7nFGfMrIvtdr6wX4wyHH8M7aknmuLfo2cBBrM,34549
937
+ pip/_vendor/tenacity/__init__.py,sha256=GLLsTFD4Bd5VDgTR6mU_FxyOsrxc48qONorVaRebeD4,18257
938
+ pip/_vendor/tenacity/__pycache__/__init__.cpython-39.pyc,,
939
+ pip/_vendor/tenacity/__pycache__/_asyncio.cpython-39.pyc,,
940
+ pip/_vendor/tenacity/__pycache__/_utils.cpython-39.pyc,,
941
+ pip/_vendor/tenacity/__pycache__/after.cpython-39.pyc,,
942
+ pip/_vendor/tenacity/__pycache__/before.cpython-39.pyc,,
943
+ pip/_vendor/tenacity/__pycache__/before_sleep.cpython-39.pyc,,
944
+ pip/_vendor/tenacity/__pycache__/nap.cpython-39.pyc,,
945
+ pip/_vendor/tenacity/__pycache__/retry.cpython-39.pyc,,
946
+ pip/_vendor/tenacity/__pycache__/stop.cpython-39.pyc,,
947
+ pip/_vendor/tenacity/__pycache__/tornadoweb.cpython-39.pyc,,
948
+ pip/_vendor/tenacity/__pycache__/wait.cpython-39.pyc,,
949
+ pip/_vendor/tenacity/_asyncio.py,sha256=HEb0BVJEeBJE9P-m9XBxh1KcaF96BwoeqkJCL5sbVcQ,3314
950
+ pip/_vendor/tenacity/_utils.py,sha256=-y68scDcyoqvTJuJJ0GTfjdSCljEYlbCYvgk7nM4NdM,1944
951
+ pip/_vendor/tenacity/after.py,sha256=dlmyxxFy2uqpLXDr838DiEd7jgv2AGthsWHGYcGYsaI,1496
952
+ pip/_vendor/tenacity/before.py,sha256=7XtvRmO0dRWUp8SVn24OvIiGFj8-4OP5muQRUiWgLh0,1376
953
+ pip/_vendor/tenacity/before_sleep.py,sha256=ThyDvqKU5yle_IvYQz_b6Tp6UjUS0PhVp6zgqYl9U6Y,1908
954
+ pip/_vendor/tenacity/nap.py,sha256=fRWvnz1aIzbIq9Ap3gAkAZgDH6oo5zxMrU6ZOVByq0I,1383
955
+ pip/_vendor/tenacity/retry.py,sha256=62R71W59bQjuNyFKsDM7hE2aEkEPtwNBRA0tnsEvgSk,6645
956
+ pip/_vendor/tenacity/stop.py,sha256=sKHmHaoSaW6sKu3dTxUVKr1-stVkY7lw4Y9yjZU30zQ,2790
957
+ pip/_vendor/tenacity/tornadoweb.py,sha256=E8lWO2nwe6dJgoB-N2HhQprYLDLB_UdSgFnv-EN6wKE,2145
958
+ pip/_vendor/tenacity/wait.py,sha256=e_Saa6I2tsNLpCL1t9897wN2fGb0XQMQlE4bU2t9V2w,6691
959
+ pip/_vendor/tomli/__init__.py,sha256=z1Elt0nLAqU5Y0DOn9p__8QnLWavlEOpRyQikdYgKro,230
960
+ pip/_vendor/tomli/__pycache__/__init__.cpython-39.pyc,,
961
+ pip/_vendor/tomli/__pycache__/_parser.cpython-39.pyc,,
962
+ pip/_vendor/tomli/__pycache__/_re.cpython-39.pyc,,
963
+ pip/_vendor/tomli/_parser.py,sha256=50BD4o9YbzFAGAYyZLqZC8F81DQ7iWWyJnrHNwBKa6A,22415
964
+ pip/_vendor/tomli/_re.py,sha256=5GPfgXKteg7wRFCF-DzlkAPI2ilHbkMK2-JC49F-AJQ,2681
965
+ pip/_vendor/typing_extensions.py,sha256=1uqi_RSlI7gos4eJB_NEV3d5wQwzTUQHd3_jrkbTo8Q,87149
966
+ pip/_vendor/urllib3/__init__.py,sha256=j3yzHIbmW7CS-IKQJ9-PPQf_YKO8EOAey_rMW0UR7us,2763
967
+ pip/_vendor/urllib3/__pycache__/__init__.cpython-39.pyc,,
968
+ pip/_vendor/urllib3/__pycache__/_collections.cpython-39.pyc,,
969
+ pip/_vendor/urllib3/__pycache__/_version.cpython-39.pyc,,
970
+ pip/_vendor/urllib3/__pycache__/connection.cpython-39.pyc,,
971
+ pip/_vendor/urllib3/__pycache__/connectionpool.cpython-39.pyc,,
972
+ pip/_vendor/urllib3/__pycache__/exceptions.cpython-39.pyc,,
973
+ pip/_vendor/urllib3/__pycache__/fields.cpython-39.pyc,,
974
+ pip/_vendor/urllib3/__pycache__/filepost.cpython-39.pyc,,
975
+ pip/_vendor/urllib3/__pycache__/poolmanager.cpython-39.pyc,,
976
+ pip/_vendor/urllib3/__pycache__/request.cpython-39.pyc,,
977
+ pip/_vendor/urllib3/__pycache__/response.cpython-39.pyc,,
978
+ pip/_vendor/urllib3/_collections.py,sha256=Rp1mVyBgc_UlAcp6M3at1skJBXR5J43NawRTvW2g_XY,10811
979
+ pip/_vendor/urllib3/_version.py,sha256=_NdMUQaeBvFHAX2z3zAIX2Wum58A6rVtY1f7ByHsQ4g,63
980
+ pip/_vendor/urllib3/connection.py,sha256=6zokyboYYKm9VkyrQvVVLgxMyCZK7n9Vmg_2ZK6pbhc,20076
981
+ pip/_vendor/urllib3/connectionpool.py,sha256=qz-ICrW6g4TZVCbDQ8fRe68BMpXkskkR9vAVY9zUWtA,39013
982
+ pip/_vendor/urllib3/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
983
+ pip/_vendor/urllib3/contrib/__pycache__/__init__.cpython-39.pyc,,
984
+ pip/_vendor/urllib3/contrib/__pycache__/_appengine_environ.cpython-39.pyc,,
985
+ pip/_vendor/urllib3/contrib/__pycache__/appengine.cpython-39.pyc,,
986
+ pip/_vendor/urllib3/contrib/__pycache__/ntlmpool.cpython-39.pyc,,
987
+ pip/_vendor/urllib3/contrib/__pycache__/pyopenssl.cpython-39.pyc,,
988
+ pip/_vendor/urllib3/contrib/__pycache__/securetransport.cpython-39.pyc,,
989
+ pip/_vendor/urllib3/contrib/__pycache__/socks.cpython-39.pyc,,
990
+ pip/_vendor/urllib3/contrib/_appengine_environ.py,sha256=bDbyOEhW2CKLJcQqAKAyrEHN-aklsyHFKq6vF8ZFsmk,957
991
+ pip/_vendor/urllib3/contrib/_securetransport/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
992
+ pip/_vendor/urllib3/contrib/_securetransport/__pycache__/__init__.cpython-39.pyc,,
993
+ pip/_vendor/urllib3/contrib/_securetransport/__pycache__/bindings.cpython-39.pyc,,
994
+ pip/_vendor/urllib3/contrib/_securetransport/__pycache__/low_level.cpython-39.pyc,,
995
+ pip/_vendor/urllib3/contrib/_securetransport/bindings.py,sha256=4Xk64qIkPBt09A5q-RIFUuDhNc9mXilVapm7WnYnzRw,17632
996
+ pip/_vendor/urllib3/contrib/_securetransport/low_level.py,sha256=B2JBB2_NRP02xK6DCa1Pa9IuxrPwxzDzZbixQkb7U9M,13922
997
+ pip/_vendor/urllib3/contrib/appengine.py,sha256=lfzpHFmJiO82shClLEm3QB62SYgHWnjpZOH_2JhU5Tc,11034
998
+ pip/_vendor/urllib3/contrib/ntlmpool.py,sha256=ej9gGvfAb2Gt00lafFp45SIoRz-QwrQ4WChm6gQmAlM,4538
999
+ pip/_vendor/urllib3/contrib/pyopenssl.py,sha256=DD4pInv_3OEEGffEFynBoirc8ldR789sLmGSKukzA0E,16900
1000
+ pip/_vendor/urllib3/contrib/securetransport.py,sha256=4qUKo7PUV-vVIqXmr2BD-sH7qplB918jiD5eNsRI9vU,34449
1001
+ pip/_vendor/urllib3/contrib/socks.py,sha256=aRi9eWXo9ZEb95XUxef4Z21CFlnnjbEiAo9HOseoMt4,7097
1002
+ pip/_vendor/urllib3/exceptions.py,sha256=0Mnno3KHTNfXRfY7638NufOPkUb6mXOm-Lqj-4x2w8A,8217
1003
+ pip/_vendor/urllib3/fields.py,sha256=kvLDCg_JmH1lLjUUEY_FLS8UhY7hBvDPuVETbY8mdrM,8579
1004
+ pip/_vendor/urllib3/filepost.py,sha256=5b_qqgRHVlL7uLtdAYBzBh-GHmU5AfJVt_2N0XS3PeY,2440
1005
+ pip/_vendor/urllib3/packages/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1006
+ pip/_vendor/urllib3/packages/__pycache__/__init__.cpython-39.pyc,,
1007
+ pip/_vendor/urllib3/packages/__pycache__/six.cpython-39.pyc,,
1008
+ pip/_vendor/urllib3/packages/backports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1009
+ pip/_vendor/urllib3/packages/backports/__pycache__/__init__.cpython-39.pyc,,
1010
+ pip/_vendor/urllib3/packages/backports/__pycache__/makefile.cpython-39.pyc,,
1011
+ pip/_vendor/urllib3/packages/backports/makefile.py,sha256=nbzt3i0agPVP07jqqgjhaYjMmuAi_W5E0EywZivVO8E,1417
1012
+ pip/_vendor/urllib3/packages/six.py,sha256=1LVW7ljqRirFlfExjwl-v1B7vSAUNTmzGMs-qays2zg,34666
1013
+ pip/_vendor/urllib3/poolmanager.py,sha256=whzlX6UTEgODMOCy0ZDMUONRBCz5wyIM8Z9opXAY-Lk,19763
1014
+ pip/_vendor/urllib3/request.py,sha256=ZFSIqX0C6WizixecChZ3_okyu7BEv0lZu1VT0s6h4SM,5985
1015
+ pip/_vendor/urllib3/response.py,sha256=hGhGBh7TkEkh_IQg5C1W_xuPNrgIKv5BUXPyE-q0LuE,28203
1016
+ pip/_vendor/urllib3/util/__init__.py,sha256=JEmSmmqqLyaw8P51gUImZh8Gwg9i1zSe-DoqAitn2nc,1155
1017
+ pip/_vendor/urllib3/util/__pycache__/__init__.cpython-39.pyc,,
1018
+ pip/_vendor/urllib3/util/__pycache__/connection.cpython-39.pyc,,
1019
+ pip/_vendor/urllib3/util/__pycache__/proxy.cpython-39.pyc,,
1020
+ pip/_vendor/urllib3/util/__pycache__/queue.cpython-39.pyc,,
1021
+ pip/_vendor/urllib3/util/__pycache__/request.cpython-39.pyc,,
1022
+ pip/_vendor/urllib3/util/__pycache__/response.cpython-39.pyc,,
1023
+ pip/_vendor/urllib3/util/__pycache__/retry.cpython-39.pyc,,
1024
+ pip/_vendor/urllib3/util/__pycache__/ssl_.cpython-39.pyc,,
1025
+ pip/_vendor/urllib3/util/__pycache__/ssl_match_hostname.cpython-39.pyc,,
1026
+ pip/_vendor/urllib3/util/__pycache__/ssltransport.cpython-39.pyc,,
1027
+ pip/_vendor/urllib3/util/__pycache__/timeout.cpython-39.pyc,,
1028
+ pip/_vendor/urllib3/util/__pycache__/url.cpython-39.pyc,,
1029
+ pip/_vendor/urllib3/util/__pycache__/wait.cpython-39.pyc,,
1030
+ pip/_vendor/urllib3/util/connection.py,sha256=5Lx2B1PW29KxBn2T0xkN1CBgRBa3gGVJBKoQoRogEVk,4901
1031
+ pip/_vendor/urllib3/util/proxy.py,sha256=zUvPPCJrp6dOF0N4GAVbOcl6o-4uXKSrGiTkkr5vUS4,1605
1032
+ pip/_vendor/urllib3/util/queue.py,sha256=nRgX8_eX-_VkvxoX096QWoz8Ps0QHUAExILCY_7PncM,498
1033
+ pip/_vendor/urllib3/util/request.py,sha256=NnzaEKQ1Pauw5MFMV6HmgEMHITf0Aua9fQuzi2uZzGc,4123
1034
+ pip/_vendor/urllib3/util/response.py,sha256=GJpg3Egi9qaJXRwBh5wv-MNuRWan5BIu40oReoxWP28,3510
1035
+ pip/_vendor/urllib3/util/retry.py,sha256=iESg2PvViNdXBRY4MpL4h0kqwOOkHkxmLn1kkhFHPU8,22001
1036
+ pip/_vendor/urllib3/util/ssl_.py,sha256=X4-AqW91aYPhPx6-xbf66yHFQKbqqfC_5Zt4WkLX1Hc,17177
1037
+ pip/_vendor/urllib3/util/ssl_match_hostname.py,sha256=w01jCYuwvQ038p9mhc1P1gF8IiTN1qHakThpoukOlbw,5751
1038
+ pip/_vendor/urllib3/util/ssltransport.py,sha256=NA-u5rMTrDFDFC8QzRKUEKMG0561hOD4qBTr3Z4pv6E,6895
1039
+ pip/_vendor/urllib3/util/timeout.py,sha256=QSbBUNOB9yh6AnDn61SrLQ0hg5oz0I9-uXEG91AJuIg,10003
1040
+ pip/_vendor/urllib3/util/url.py,sha256=QVEzcbHipbXyCWwH6R4K4TR-N8T4LM55WEMwNUTBmLE,14047
1041
+ pip/_vendor/urllib3/util/wait.py,sha256=3MUKRSAUJDB2tgco7qRUskW0zXGAWYvRRE4Q1_6xlLs,5404
1042
+ pip/_vendor/vendor.txt,sha256=SpijkWP2aapE1DEgOKL1wxuOz1ztM7E2Xs2PZ-V1PKA,496
1043
+ pip/_vendor/webencodings/__init__.py,sha256=qOBJIuPy_4ByYH6W_bNgJF-qYQ2DoU-dKsDu5yRWCXg,10579
1044
+ pip/_vendor/webencodings/__pycache__/__init__.cpython-39.pyc,,
1045
+ pip/_vendor/webencodings/__pycache__/labels.cpython-39.pyc,,
1046
+ pip/_vendor/webencodings/__pycache__/mklabels.cpython-39.pyc,,
1047
+ pip/_vendor/webencodings/__pycache__/tests.cpython-39.pyc,,
1048
+ pip/_vendor/webencodings/__pycache__/x_user_defined.cpython-39.pyc,,
1049
+ pip/_vendor/webencodings/labels.py,sha256=4AO_KxTddqGtrL9ns7kAPjb0CcN6xsCIxbK37HY9r3E,8979
1050
+ pip/_vendor/webencodings/mklabels.py,sha256=GYIeywnpaLnP0GSic8LFWgd0UVvO_l1Nc6YoF-87R_4,1305
1051
+ pip/_vendor/webencodings/tests.py,sha256=OtGLyjhNY1fvkW1GvLJ_FV9ZoqC9Anyjr7q3kxTbzNs,6563
1052
+ pip/_vendor/webencodings/x_user_defined.py,sha256=yOqWSdmpytGfUgh_Z6JYgDNhoc-BAHyyeeT15Fr42tM,4307
1053
+ pip/py.typed,sha256=EBVvvPRTn_eIpz5e5QztSCdrMX7Qwd7VP93RSoIlZ2I,286
hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/REQUESTED ADDED
File without changes
hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.37.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/entry_points.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ [console_scripts]
2
+ pip = pip._internal.cli.main:main
3
+ pip3 = pip._internal.cli.main:main
4
+ pip3.9 = pip._internal.cli.main:main
5
+
hfacevenv/lib/python3.9/site-packages/pip-22.0.4.dist-info/top_level.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
hfacevenv/lib/python3.9/site-packages/pip/__init__.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List, Optional
2
+
3
+ __version__ = "22.0.4"
4
+
5
+
6
+ def main(args: Optional[List[str]] = None) -> int:
7
+ """This is an internal API only meant for use by pip's own console scripts.
8
+
9
+ For additional details, see https://github.com/pypa/pip/issues/7498.
10
+ """
11
+ from pip._internal.utils.entrypoints import _wrapper
12
+
13
+ return _wrapper(args)
hfacevenv/lib/python3.9/site-packages/pip/__main__.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+ import warnings
4
+
5
+ # Remove '' and current working directory from the first entry
6
+ # of sys.path, if present to avoid using current directory
7
+ # in pip commands check, freeze, install, list and show,
8
+ # when invoked as python -m pip <command>
9
+ if sys.path[0] in ("", os.getcwd()):
10
+ sys.path.pop(0)
11
+
12
+ # If we are running from a wheel, add the wheel to sys.path
13
+ # This allows the usage python pip-*.whl/pip install pip-*.whl
14
+ if __package__ == "":
15
+ # __file__ is pip-*.whl/pip/__main__.py
16
+ # first dirname call strips of '/__main__.py', second strips off '/pip'
17
+ # Resulting path is the name of the wheel itself
18
+ # Add that to sys.path so we can import pip
19
+ path = os.path.dirname(os.path.dirname(__file__))
20
+ sys.path.insert(0, path)
21
+
22
+ if __name__ == "__main__":
23
+ # Work around the error reported in #9540, pending a proper fix.
24
+ # Note: It is essential the warning filter is set *before* importing
25
+ # pip, as the deprecation happens at import time, not runtime.
26
+ warnings.filterwarnings(
27
+ "ignore", category=DeprecationWarning, module=".*packaging\\.version"
28
+ )
29
+ from pip._internal.cli.main import main as _main
30
+
31
+ sys.exit(_main())
hfacevenv/lib/python3.9/site-packages/pip/_internal/__init__.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List, Optional
2
+
3
+ import pip._internal.utils.inject_securetransport # noqa
4
+ from pip._internal.utils import _log
5
+
6
+ # init_logging() must be called before any call to logging.getLogger()
7
+ # which happens at import of most modules.
8
+ _log.init_logging()
9
+
10
+
11
+ def main(args: (Optional[List[str]]) = None) -> int:
12
+ """This is preserved for old console scripts that may still be referencing
13
+ it.
14
+
15
+ For additional details, see https://github.com/pypa/pip/issues/7498.
16
+ """
17
+ from pip._internal.utils.entrypoints import _wrapper
18
+
19
+ return _wrapper(args)
hfacevenv/lib/python3.9/site-packages/pip/_internal/build_env.py ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Build Environment used for isolation during sdist building
2
+ """
3
+
4
+ import contextlib
5
+ import logging
6
+ import os
7
+ import pathlib
8
+ import sys
9
+ import textwrap
10
+ import zipfile
11
+ from collections import OrderedDict
12
+ from sysconfig import get_paths
13
+ from types import TracebackType
14
+ from typing import TYPE_CHECKING, Iterable, Iterator, List, Optional, Set, Tuple, Type
15
+
16
+ from pip._vendor.certifi import where
17
+ from pip._vendor.packaging.requirements import Requirement
18
+ from pip._vendor.packaging.version import Version
19
+
20
+ from pip import __file__ as pip_location
21
+ from pip._internal.cli.spinners import open_spinner
22
+ from pip._internal.locations import get_platlib, get_prefixed_libs, get_purelib
23
+ from pip._internal.metadata import get_environment
24
+ from pip._internal.utils.subprocess import call_subprocess
25
+ from pip._internal.utils.temp_dir import TempDirectory, tempdir_kinds
26
+
27
+ if TYPE_CHECKING:
28
+ from pip._internal.index.package_finder import PackageFinder
29
+
30
+ logger = logging.getLogger(__name__)
31
+
32
+
33
+ class _Prefix:
34
+ def __init__(self, path: str) -> None:
35
+ self.path = path
36
+ self.setup = False
37
+ self.bin_dir = get_paths(
38
+ "nt" if os.name == "nt" else "posix_prefix",
39
+ vars={"base": path, "platbase": path},
40
+ )["scripts"]
41
+ self.lib_dirs = get_prefixed_libs(path)
42
+
43
+
44
+ @contextlib.contextmanager
45
+ def _create_standalone_pip() -> Iterator[str]:
46
+ """Create a "standalone pip" zip file.
47
+
48
+ The zip file's content is identical to the currently-running pip.
49
+ It will be used to install requirements into the build environment.
50
+ """
51
+ source = pathlib.Path(pip_location).resolve().parent
52
+
53
+ # Return the current instance if `source` is not a directory. We can't build
54
+ # a zip from this, and it likely means the instance is already standalone.
55
+ if not source.is_dir():
56
+ yield str(source)
57
+ return
58
+
59
+ with TempDirectory(kind="standalone-pip") as tmp_dir:
60
+ pip_zip = os.path.join(tmp_dir.path, "__env_pip__.zip")
61
+ kwargs = {}
62
+ if sys.version_info >= (3, 8):
63
+ kwargs["strict_timestamps"] = False
64
+ with zipfile.ZipFile(pip_zip, "w", **kwargs) as zf:
65
+ for child in source.rglob("*"):
66
+ zf.write(child, child.relative_to(source.parent).as_posix())
67
+ yield os.path.join(pip_zip, "pip")
68
+
69
+
70
+ class BuildEnvironment:
71
+ """Creates and manages an isolated environment to install build deps"""
72
+
73
+ def __init__(self) -> None:
74
+ temp_dir = TempDirectory(kind=tempdir_kinds.BUILD_ENV, globally_managed=True)
75
+
76
+ self._prefixes = OrderedDict(
77
+ (name, _Prefix(os.path.join(temp_dir.path, name)))
78
+ for name in ("normal", "overlay")
79
+ )
80
+
81
+ self._bin_dirs: List[str] = []
82
+ self._lib_dirs: List[str] = []
83
+ for prefix in reversed(list(self._prefixes.values())):
84
+ self._bin_dirs.append(prefix.bin_dir)
85
+ self._lib_dirs.extend(prefix.lib_dirs)
86
+
87
+ # Customize site to:
88
+ # - ensure .pth files are honored
89
+ # - prevent access to system site packages
90
+ system_sites = {
91
+ os.path.normcase(site) for site in (get_purelib(), get_platlib())
92
+ }
93
+ self._site_dir = os.path.join(temp_dir.path, "site")
94
+ if not os.path.exists(self._site_dir):
95
+ os.mkdir(self._site_dir)
96
+ with open(
97
+ os.path.join(self._site_dir, "sitecustomize.py"), "w", encoding="utf-8"
98
+ ) as fp:
99
+ fp.write(
100
+ textwrap.dedent(
101
+ """
102
+ import os, site, sys
103
+
104
+ # First, drop system-sites related paths.
105
+ original_sys_path = sys.path[:]
106
+ known_paths = set()
107
+ for path in {system_sites!r}:
108
+ site.addsitedir(path, known_paths=known_paths)
109
+ system_paths = set(
110
+ os.path.normcase(path)
111
+ for path in sys.path[len(original_sys_path):]
112
+ )
113
+ original_sys_path = [
114
+ path for path in original_sys_path
115
+ if os.path.normcase(path) not in system_paths
116
+ ]
117
+ sys.path = original_sys_path
118
+
119
+ # Second, add lib directories.
120
+ # ensuring .pth file are processed.
121
+ for path in {lib_dirs!r}:
122
+ assert not path in sys.path
123
+ site.addsitedir(path)
124
+ """
125
+ ).format(system_sites=system_sites, lib_dirs=self._lib_dirs)
126
+ )
127
+
128
+ def __enter__(self) -> None:
129
+ self._save_env = {
130
+ name: os.environ.get(name, None)
131
+ for name in ("PATH", "PYTHONNOUSERSITE", "PYTHONPATH")
132
+ }
133
+
134
+ path = self._bin_dirs[:]
135
+ old_path = self._save_env["PATH"]
136
+ if old_path:
137
+ path.extend(old_path.split(os.pathsep))
138
+
139
+ pythonpath = [self._site_dir]
140
+
141
+ os.environ.update(
142
+ {
143
+ "PATH": os.pathsep.join(path),
144
+ "PYTHONNOUSERSITE": "1",
145
+ "PYTHONPATH": os.pathsep.join(pythonpath),
146
+ }
147
+ )
148
+
149
+ def __exit__(
150
+ self,
151
+ exc_type: Optional[Type[BaseException]],
152
+ exc_val: Optional[BaseException],
153
+ exc_tb: Optional[TracebackType],
154
+ ) -> None:
155
+ for varname, old_value in self._save_env.items():
156
+ if old_value is None:
157
+ os.environ.pop(varname, None)
158
+ else:
159
+ os.environ[varname] = old_value
160
+
161
+ def check_requirements(
162
+ self, reqs: Iterable[str]
163
+ ) -> Tuple[Set[Tuple[str, str]], Set[str]]:
164
+ """Return 2 sets:
165
+ - conflicting requirements: set of (installed, wanted) reqs tuples
166
+ - missing requirements: set of reqs
167
+ """
168
+ missing = set()
169
+ conflicting = set()
170
+ if reqs:
171
+ env = get_environment(self._lib_dirs)
172
+ for req_str in reqs:
173
+ req = Requirement(req_str)
174
+ dist = env.get_distribution(req.name)
175
+ if not dist:
176
+ missing.add(req_str)
177
+ continue
178
+ if isinstance(dist.version, Version):
179
+ installed_req_str = f"{req.name}=={dist.version}"
180
+ else:
181
+ installed_req_str = f"{req.name}==={dist.version}"
182
+ if dist.version not in req.specifier:
183
+ conflicting.add((installed_req_str, req_str))
184
+ # FIXME: Consider direct URL?
185
+ return conflicting, missing
186
+
187
+ def install_requirements(
188
+ self,
189
+ finder: "PackageFinder",
190
+ requirements: Iterable[str],
191
+ prefix_as_string: str,
192
+ *,
193
+ kind: str,
194
+ ) -> None:
195
+ prefix = self._prefixes[prefix_as_string]
196
+ assert not prefix.setup
197
+ prefix.setup = True
198
+ if not requirements:
199
+ return
200
+ with contextlib.ExitStack() as ctx:
201
+ pip_runnable = ctx.enter_context(_create_standalone_pip())
202
+ self._install_requirements(
203
+ pip_runnable,
204
+ finder,
205
+ requirements,
206
+ prefix,
207
+ kind=kind,
208
+ )
209
+
210
+ @staticmethod
211
+ def _install_requirements(
212
+ pip_runnable: str,
213
+ finder: "PackageFinder",
214
+ requirements: Iterable[str],
215
+ prefix: _Prefix,
216
+ *,
217
+ kind: str,
218
+ ) -> None:
219
+ args: List[str] = [
220
+ sys.executable,
221
+ pip_runnable,
222
+ "install",
223
+ "--ignore-installed",
224
+ "--no-user",
225
+ "--prefix",
226
+ prefix.path,
227
+ "--no-warn-script-location",
228
+ ]
229
+ if logger.getEffectiveLevel() <= logging.DEBUG:
230
+ args.append("-v")
231
+ for format_control in ("no_binary", "only_binary"):
232
+ formats = getattr(finder.format_control, format_control)
233
+ args.extend(
234
+ (
235
+ "--" + format_control.replace("_", "-"),
236
+ ",".join(sorted(formats or {":none:"})),
237
+ )
238
+ )
239
+
240
+ index_urls = finder.index_urls
241
+ if index_urls:
242
+ args.extend(["-i", index_urls[0]])
243
+ for extra_index in index_urls[1:]:
244
+ args.extend(["--extra-index-url", extra_index])
245
+ else:
246
+ args.append("--no-index")
247
+ for link in finder.find_links:
248
+ args.extend(["--find-links", link])
249
+
250
+ for host in finder.trusted_hosts:
251
+ args.extend(["--trusted-host", host])
252
+ if finder.allow_all_prereleases:
253
+ args.append("--pre")
254
+ if finder.prefer_binary:
255
+ args.append("--prefer-binary")
256
+ args.append("--")
257
+ args.extend(requirements)
258
+ extra_environ = {"_PIP_STANDALONE_CERT": where()}
259
+ with open_spinner(f"Installing {kind}") as spinner:
260
+ call_subprocess(
261
+ args,
262
+ command_desc=f"pip subprocess to install {kind}",
263
+ spinner=spinner,
264
+ extra_environ=extra_environ,
265
+ )
266
+
267
+
268
+ class NoOpBuildEnvironment(BuildEnvironment):
269
+ """A no-op drop-in replacement for BuildEnvironment"""
270
+
271
+ def __init__(self) -> None:
272
+ pass
273
+
274
+ def __enter__(self) -> None:
275
+ pass
276
+
277
+ def __exit__(
278
+ self,
279
+ exc_type: Optional[Type[BaseException]],
280
+ exc_val: Optional[BaseException],
281
+ exc_tb: Optional[TracebackType],
282
+ ) -> None:
283
+ pass
284
+
285
+ def cleanup(self) -> None:
286
+ pass
287
+
288
+ def install_requirements(
289
+ self,
290
+ finder: "PackageFinder",
291
+ requirements: Iterable[str],
292
+ prefix_as_string: str,
293
+ *,
294
+ kind: str,
295
+ ) -> None:
296
+ raise NotImplementedError()
hfacevenv/lib/python3.9/site-packages/pip/_internal/cache.py ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Cache Management
2
+ """
3
+
4
+ import hashlib
5
+ import json
6
+ import logging
7
+ import os
8
+ from typing import Any, Dict, List, Optional, Set
9
+
10
+ from pip._vendor.packaging.tags import Tag, interpreter_name, interpreter_version
11
+ from pip._vendor.packaging.utils import canonicalize_name
12
+
13
+ from pip._internal.exceptions import InvalidWheelFilename
14
+ from pip._internal.models.format_control import FormatControl
15
+ from pip._internal.models.link import Link
16
+ from pip._internal.models.wheel import Wheel
17
+ from pip._internal.utils.temp_dir import TempDirectory, tempdir_kinds
18
+ from pip._internal.utils.urls import path_to_url
19
+
20
+ logger = logging.getLogger(__name__)
21
+
22
+
23
+ def _hash_dict(d: Dict[str, str]) -> str:
24
+ """Return a stable sha224 of a dictionary."""
25
+ s = json.dumps(d, sort_keys=True, separators=(",", ":"), ensure_ascii=True)
26
+ return hashlib.sha224(s.encode("ascii")).hexdigest()
27
+
28
+
29
+ class Cache:
30
+ """An abstract class - provides cache directories for data from links
31
+
32
+
33
+ :param cache_dir: The root of the cache.
34
+ :param format_control: An object of FormatControl class to limit
35
+ binaries being read from the cache.
36
+ :param allowed_formats: which formats of files the cache should store.
37
+ ('binary' and 'source' are the only allowed values)
38
+ """
39
+
40
+ def __init__(
41
+ self, cache_dir: str, format_control: FormatControl, allowed_formats: Set[str]
42
+ ) -> None:
43
+ super().__init__()
44
+ assert not cache_dir or os.path.isabs(cache_dir)
45
+ self.cache_dir = cache_dir or None
46
+ self.format_control = format_control
47
+ self.allowed_formats = allowed_formats
48
+
49
+ _valid_formats = {"source", "binary"}
50
+ assert self.allowed_formats.union(_valid_formats) == _valid_formats
51
+
52
+ def _get_cache_path_parts(self, link: Link) -> List[str]:
53
+ """Get parts of part that must be os.path.joined with cache_dir"""
54
+
55
+ # We want to generate an url to use as our cache key, we don't want to
56
+ # just re-use the URL because it might have other items in the fragment
57
+ # and we don't care about those.
58
+ key_parts = {"url": link.url_without_fragment}
59
+ if link.hash_name is not None and link.hash is not None:
60
+ key_parts[link.hash_name] = link.hash
61
+ if link.subdirectory_fragment:
62
+ key_parts["subdirectory"] = link.subdirectory_fragment
63
+
64
+ # Include interpreter name, major and minor version in cache key
65
+ # to cope with ill-behaved sdists that build a different wheel
66
+ # depending on the python version their setup.py is being run on,
67
+ # and don't encode the difference in compatibility tags.
68
+ # https://github.com/pypa/pip/issues/7296
69
+ key_parts["interpreter_name"] = interpreter_name()
70
+ key_parts["interpreter_version"] = interpreter_version()
71
+
72
+ # Encode our key url with sha224, we'll use this because it has similar
73
+ # security properties to sha256, but with a shorter total output (and
74
+ # thus less secure). However the differences don't make a lot of
75
+ # difference for our use case here.
76
+ hashed = _hash_dict(key_parts)
77
+
78
+ # We want to nest the directories some to prevent having a ton of top
79
+ # level directories where we might run out of sub directories on some
80
+ # FS.
81
+ parts = [hashed[:2], hashed[2:4], hashed[4:6], hashed[6:]]
82
+
83
+ return parts
84
+
85
+ def _get_candidates(self, link: Link, canonical_package_name: str) -> List[Any]:
86
+ can_not_cache = not self.cache_dir or not canonical_package_name or not link
87
+ if can_not_cache:
88
+ return []
89
+
90
+ formats = self.format_control.get_allowed_formats(canonical_package_name)
91
+ if not self.allowed_formats.intersection(formats):
92
+ return []
93
+
94
+ candidates = []
95
+ path = self.get_path_for_link(link)
96
+ if os.path.isdir(path):
97
+ for candidate in os.listdir(path):
98
+ candidates.append((candidate, path))
99
+ return candidates
100
+
101
+ def get_path_for_link(self, link: Link) -> str:
102
+ """Return a directory to store cached items in for link."""
103
+ raise NotImplementedError()
104
+
105
+ def get(
106
+ self,
107
+ link: Link,
108
+ package_name: Optional[str],
109
+ supported_tags: List[Tag],
110
+ ) -> Link:
111
+ """Returns a link to a cached item if it exists, otherwise returns the
112
+ passed link.
113
+ """
114
+ raise NotImplementedError()
115
+
116
+
117
+ class SimpleWheelCache(Cache):
118
+ """A cache of wheels for future installs."""
119
+
120
+ def __init__(self, cache_dir: str, format_control: FormatControl) -> None:
121
+ super().__init__(cache_dir, format_control, {"binary"})
122
+
123
+ def get_path_for_link(self, link: Link) -> str:
124
+ """Return a directory to store cached wheels for link
125
+
126
+ Because there are M wheels for any one sdist, we provide a directory
127
+ to cache them in, and then consult that directory when looking up
128
+ cache hits.
129
+
130
+ We only insert things into the cache if they have plausible version
131
+ numbers, so that we don't contaminate the cache with things that were
132
+ not unique. E.g. ./package might have dozens of installs done for it
133
+ and build a version of 0.0...and if we built and cached a wheel, we'd
134
+ end up using the same wheel even if the source has been edited.
135
+
136
+ :param link: The link of the sdist for which this will cache wheels.
137
+ """
138
+ parts = self._get_cache_path_parts(link)
139
+ assert self.cache_dir
140
+ # Store wheels within the root cache_dir
141
+ return os.path.join(self.cache_dir, "wheels", *parts)
142
+
143
+ def get(
144
+ self,
145
+ link: Link,
146
+ package_name: Optional[str],
147
+ supported_tags: List[Tag],
148
+ ) -> Link:
149
+ candidates = []
150
+
151
+ if not package_name:
152
+ return link
153
+
154
+ canonical_package_name = canonicalize_name(package_name)
155
+ for wheel_name, wheel_dir in self._get_candidates(link, canonical_package_name):
156
+ try:
157
+ wheel = Wheel(wheel_name)
158
+ except InvalidWheelFilename:
159
+ continue
160
+ if canonicalize_name(wheel.name) != canonical_package_name:
161
+ logger.debug(
162
+ "Ignoring cached wheel %s for %s as it "
163
+ "does not match the expected distribution name %s.",
164
+ wheel_name,
165
+ link,
166
+ package_name,
167
+ )
168
+ continue
169
+ if not wheel.supported(supported_tags):
170
+ # Built for a different python/arch/etc
171
+ continue
172
+ candidates.append(
173
+ (
174
+ wheel.support_index_min(supported_tags),
175
+ wheel_name,
176
+ wheel_dir,
177
+ )
178
+ )
179
+
180
+ if not candidates:
181
+ return link
182
+
183
+ _, wheel_name, wheel_dir = min(candidates)
184
+ return Link(path_to_url(os.path.join(wheel_dir, wheel_name)))
185
+
186
+
187
+ class EphemWheelCache(SimpleWheelCache):
188
+ """A SimpleWheelCache that creates it's own temporary cache directory"""
189
+
190
+ def __init__(self, format_control: FormatControl) -> None:
191
+ self._temp_dir = TempDirectory(
192
+ kind=tempdir_kinds.EPHEM_WHEEL_CACHE,
193
+ globally_managed=True,
194
+ )
195
+
196
+ super().__init__(self._temp_dir.path, format_control)
197
+
198
+
199
+ class CacheEntry:
200
+ def __init__(
201
+ self,
202
+ link: Link,
203
+ persistent: bool,
204
+ ):
205
+ self.link = link
206
+ self.persistent = persistent
207
+
208
+
209
+ class WheelCache(Cache):
210
+ """Wraps EphemWheelCache and SimpleWheelCache into a single Cache
211
+
212
+ This Cache allows for gracefully degradation, using the ephem wheel cache
213
+ when a certain link is not found in the simple wheel cache first.
214
+ """
215
+
216
+ def __init__(self, cache_dir: str, format_control: FormatControl) -> None:
217
+ super().__init__(cache_dir, format_control, {"binary"})
218
+ self._wheel_cache = SimpleWheelCache(cache_dir, format_control)
219
+ self._ephem_cache = EphemWheelCache(format_control)
220
+
221
+ def get_path_for_link(self, link: Link) -> str:
222
+ return self._wheel_cache.get_path_for_link(link)
223
+
224
+ def get_ephem_path_for_link(self, link: Link) -> str:
225
+ return self._ephem_cache.get_path_for_link(link)
226
+
227
+ def get(
228
+ self,
229
+ link: Link,
230
+ package_name: Optional[str],
231
+ supported_tags: List[Tag],
232
+ ) -> Link:
233
+ cache_entry = self.get_cache_entry(link, package_name, supported_tags)
234
+ if cache_entry is None:
235
+ return link
236
+ return cache_entry.link
237
+
238
+ def get_cache_entry(
239
+ self,
240
+ link: Link,
241
+ package_name: Optional[str],
242
+ supported_tags: List[Tag],
243
+ ) -> Optional[CacheEntry]:
244
+ """Returns a CacheEntry with a link to a cached item if it exists or
245
+ None. The cache entry indicates if the item was found in the persistent
246
+ or ephemeral cache.
247
+ """
248
+ retval = self._wheel_cache.get(
249
+ link=link,
250
+ package_name=package_name,
251
+ supported_tags=supported_tags,
252
+ )
253
+ if retval is not link:
254
+ return CacheEntry(retval, persistent=True)
255
+
256
+ retval = self._ephem_cache.get(
257
+ link=link,
258
+ package_name=package_name,
259
+ supported_tags=supported_tags,
260
+ )
261
+ if retval is not link:
262
+ return CacheEntry(retval, persistent=False)
263
+
264
+ return None
hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/__init__.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ """Subpackage containing all of pip's command line interface related code
2
+ """
3
+
4
+ # This file intentionally does not import submodules
hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/autocompletion.py ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Logic that powers autocompletion installed by ``pip completion``.
2
+ """
3
+
4
+ import optparse
5
+ import os
6
+ import sys
7
+ from itertools import chain
8
+ from typing import Any, Iterable, List, Optional
9
+
10
+ from pip._internal.cli.main_parser import create_main_parser
11
+ from pip._internal.commands import commands_dict, create_command
12
+ from pip._internal.metadata import get_default_environment
13
+
14
+
15
+ def autocomplete() -> None:
16
+ """Entry Point for completion of main and subcommand options."""
17
+ # Don't complete if user hasn't sourced bash_completion file.
18
+ if "PIP_AUTO_COMPLETE" not in os.environ:
19
+ return
20
+ cwords = os.environ["COMP_WORDS"].split()[1:]
21
+ cword = int(os.environ["COMP_CWORD"])
22
+ try:
23
+ current = cwords[cword - 1]
24
+ except IndexError:
25
+ current = ""
26
+
27
+ parser = create_main_parser()
28
+ subcommands = list(commands_dict)
29
+ options = []
30
+
31
+ # subcommand
32
+ subcommand_name: Optional[str] = None
33
+ for word in cwords:
34
+ if word in subcommands:
35
+ subcommand_name = word
36
+ break
37
+ # subcommand options
38
+ if subcommand_name is not None:
39
+ # special case: 'help' subcommand has no options
40
+ if subcommand_name == "help":
41
+ sys.exit(1)
42
+ # special case: list locally installed dists for show and uninstall
43
+ should_list_installed = not current.startswith("-") and subcommand_name in [
44
+ "show",
45
+ "uninstall",
46
+ ]
47
+ if should_list_installed:
48
+ env = get_default_environment()
49
+ lc = current.lower()
50
+ installed = [
51
+ dist.canonical_name
52
+ for dist in env.iter_installed_distributions(local_only=True)
53
+ if dist.canonical_name.startswith(lc)
54
+ and dist.canonical_name not in cwords[1:]
55
+ ]
56
+ # if there are no dists installed, fall back to option completion
57
+ if installed:
58
+ for dist in installed:
59
+ print(dist)
60
+ sys.exit(1)
61
+
62
+ should_list_installables = (
63
+ not current.startswith("-") and subcommand_name == "install"
64
+ )
65
+ if should_list_installables:
66
+ for path in auto_complete_paths(current, "path"):
67
+ print(path)
68
+ sys.exit(1)
69
+
70
+ subcommand = create_command(subcommand_name)
71
+
72
+ for opt in subcommand.parser.option_list_all:
73
+ if opt.help != optparse.SUPPRESS_HELP:
74
+ for opt_str in opt._long_opts + opt._short_opts:
75
+ options.append((opt_str, opt.nargs))
76
+
77
+ # filter out previously specified options from available options
78
+ prev_opts = [x.split("=")[0] for x in cwords[1 : cword - 1]]
79
+ options = [(x, v) for (x, v) in options if x not in prev_opts]
80
+ # filter options by current input
81
+ options = [(k, v) for k, v in options if k.startswith(current)]
82
+ # get completion type given cwords and available subcommand options
83
+ completion_type = get_path_completion_type(
84
+ cwords,
85
+ cword,
86
+ subcommand.parser.option_list_all,
87
+ )
88
+ # get completion files and directories if ``completion_type`` is
89
+ # ``<file>``, ``<dir>`` or ``<path>``
90
+ if completion_type:
91
+ paths = auto_complete_paths(current, completion_type)
92
+ options = [(path, 0) for path in paths]
93
+ for option in options:
94
+ opt_label = option[0]
95
+ # append '=' to options which require args
96
+ if option[1] and option[0][:2] == "--":
97
+ opt_label += "="
98
+ print(opt_label)
99
+ else:
100
+ # show main parser options only when necessary
101
+
102
+ opts = [i.option_list for i in parser.option_groups]
103
+ opts.append(parser.option_list)
104
+ flattened_opts = chain.from_iterable(opts)
105
+ if current.startswith("-"):
106
+ for opt in flattened_opts:
107
+ if opt.help != optparse.SUPPRESS_HELP:
108
+ subcommands += opt._long_opts + opt._short_opts
109
+ else:
110
+ # get completion type given cwords and all available options
111
+ completion_type = get_path_completion_type(cwords, cword, flattened_opts)
112
+ if completion_type:
113
+ subcommands = list(auto_complete_paths(current, completion_type))
114
+
115
+ print(" ".join([x for x in subcommands if x.startswith(current)]))
116
+ sys.exit(1)
117
+
118
+
119
+ def get_path_completion_type(
120
+ cwords: List[str], cword: int, opts: Iterable[Any]
121
+ ) -> Optional[str]:
122
+ """Get the type of path completion (``file``, ``dir``, ``path`` or None)
123
+
124
+ :param cwords: same as the environmental variable ``COMP_WORDS``
125
+ :param cword: same as the environmental variable ``COMP_CWORD``
126
+ :param opts: The available options to check
127
+ :return: path completion type (``file``, ``dir``, ``path`` or None)
128
+ """
129
+ if cword < 2 or not cwords[cword - 2].startswith("-"):
130
+ return None
131
+ for opt in opts:
132
+ if opt.help == optparse.SUPPRESS_HELP:
133
+ continue
134
+ for o in str(opt).split("/"):
135
+ if cwords[cword - 2].split("=")[0] == o:
136
+ if not opt.metavar or any(
137
+ x in ("path", "file", "dir") for x in opt.metavar.split("/")
138
+ ):
139
+ return opt.metavar
140
+ return None
141
+
142
+
143
+ def auto_complete_paths(current: str, completion_type: str) -> Iterable[str]:
144
+ """If ``completion_type`` is ``file`` or ``path``, list all regular files
145
+ and directories starting with ``current``; otherwise only list directories
146
+ starting with ``current``.
147
+
148
+ :param current: The word to be completed
149
+ :param completion_type: path completion type(``file``, ``path`` or ``dir``)
150
+ :return: A generator of regular files and/or directories
151
+ """
152
+ directory, filename = os.path.split(current)
153
+ current_path = os.path.abspath(directory)
154
+ # Don't complete paths if they can't be accessed
155
+ if not os.access(current_path, os.R_OK):
156
+ return
157
+ filename = os.path.normcase(filename)
158
+ # list all files that start with ``filename``
159
+ file_list = (
160
+ x for x in os.listdir(current_path) if os.path.normcase(x).startswith(filename)
161
+ )
162
+ for f in file_list:
163
+ opt = os.path.join(current_path, f)
164
+ comp_file = os.path.normcase(os.path.join(directory, f))
165
+ # complete regular files when there is not ``<dir>`` after option
166
+ # complete directories when there is ``<file>``, ``<path>`` or
167
+ # ``<dir>``after option
168
+ if completion_type != "dir" and os.path.isfile(opt):
169
+ yield comp_file
170
+ elif os.path.isdir(opt):
171
+ yield os.path.join(comp_file, "")
hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/base_command.py ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Base Command class, and related routines"""
2
+
3
+ import functools
4
+ import logging
5
+ import logging.config
6
+ import optparse
7
+ import os
8
+ import sys
9
+ import traceback
10
+ from optparse import Values
11
+ from typing import Any, Callable, List, Optional, Tuple
12
+
13
+ from pip._vendor.rich import traceback as rich_traceback
14
+
15
+ from pip._internal.cli import cmdoptions
16
+ from pip._internal.cli.command_context import CommandContextMixIn
17
+ from pip._internal.cli.parser import ConfigOptionParser, UpdatingDefaultsHelpFormatter
18
+ from pip._internal.cli.status_codes import (
19
+ ERROR,
20
+ PREVIOUS_BUILD_DIR_ERROR,
21
+ UNKNOWN_ERROR,
22
+ VIRTUALENV_NOT_FOUND,
23
+ )
24
+ from pip._internal.exceptions import (
25
+ BadCommand,
26
+ CommandError,
27
+ DiagnosticPipError,
28
+ InstallationError,
29
+ NetworkConnectionError,
30
+ PreviousBuildDirError,
31
+ UninstallationError,
32
+ )
33
+ from pip._internal.utils.filesystem import check_path_owner
34
+ from pip._internal.utils.logging import BrokenStdoutLoggingError, setup_logging
35
+ from pip._internal.utils.misc import get_prog, normalize_path
36
+ from pip._internal.utils.temp_dir import TempDirectoryTypeRegistry as TempDirRegistry
37
+ from pip._internal.utils.temp_dir import global_tempdir_manager, tempdir_registry
38
+ from pip._internal.utils.virtualenv import running_under_virtualenv
39
+
40
+ __all__ = ["Command"]
41
+
42
+ logger = logging.getLogger(__name__)
43
+
44
+
45
+ class Command(CommandContextMixIn):
46
+ usage: str = ""
47
+ ignore_require_venv: bool = False
48
+
49
+ def __init__(self, name: str, summary: str, isolated: bool = False) -> None:
50
+ super().__init__()
51
+
52
+ self.name = name
53
+ self.summary = summary
54
+ self.parser = ConfigOptionParser(
55
+ usage=self.usage,
56
+ prog=f"{get_prog()} {name}",
57
+ formatter=UpdatingDefaultsHelpFormatter(),
58
+ add_help_option=False,
59
+ name=name,
60
+ description=self.__doc__,
61
+ isolated=isolated,
62
+ )
63
+
64
+ self.tempdir_registry: Optional[TempDirRegistry] = None
65
+
66
+ # Commands should add options to this option group
67
+ optgroup_name = f"{self.name.capitalize()} Options"
68
+ self.cmd_opts = optparse.OptionGroup(self.parser, optgroup_name)
69
+
70
+ # Add the general options
71
+ gen_opts = cmdoptions.make_option_group(
72
+ cmdoptions.general_group,
73
+ self.parser,
74
+ )
75
+ self.parser.add_option_group(gen_opts)
76
+
77
+ self.add_options()
78
+
79
+ def add_options(self) -> None:
80
+ pass
81
+
82
+ def handle_pip_version_check(self, options: Values) -> None:
83
+ """
84
+ This is a no-op so that commands by default do not do the pip version
85
+ check.
86
+ """
87
+ # Make sure we do the pip version check if the index_group options
88
+ # are present.
89
+ assert not hasattr(options, "no_index")
90
+
91
+ def run(self, options: Values, args: List[str]) -> int:
92
+ raise NotImplementedError
93
+
94
+ def parse_args(self, args: List[str]) -> Tuple[Values, List[str]]:
95
+ # factored out for testability
96
+ return self.parser.parse_args(args)
97
+
98
+ def main(self, args: List[str]) -> int:
99
+ try:
100
+ with self.main_context():
101
+ return self._main(args)
102
+ finally:
103
+ logging.shutdown()
104
+
105
+ def _main(self, args: List[str]) -> int:
106
+ # We must initialize this before the tempdir manager, otherwise the
107
+ # configuration would not be accessible by the time we clean up the
108
+ # tempdir manager.
109
+ self.tempdir_registry = self.enter_context(tempdir_registry())
110
+ # Intentionally set as early as possible so globally-managed temporary
111
+ # directories are available to the rest of the code.
112
+ self.enter_context(global_tempdir_manager())
113
+
114
+ options, args = self.parse_args(args)
115
+
116
+ # Set verbosity so that it can be used elsewhere.
117
+ self.verbosity = options.verbose - options.quiet
118
+
119
+ level_number = setup_logging(
120
+ verbosity=self.verbosity,
121
+ no_color=options.no_color,
122
+ user_log_file=options.log,
123
+ )
124
+
125
+ # TODO: Try to get these passing down from the command?
126
+ # without resorting to os.environ to hold these.
127
+ # This also affects isolated builds and it should.
128
+
129
+ if options.no_input:
130
+ os.environ["PIP_NO_INPUT"] = "1"
131
+
132
+ if options.exists_action:
133
+ os.environ["PIP_EXISTS_ACTION"] = " ".join(options.exists_action)
134
+
135
+ if options.require_venv and not self.ignore_require_venv:
136
+ # If a venv is required check if it can really be found
137
+ if not running_under_virtualenv():
138
+ logger.critical("Could not find an activated virtualenv (required).")
139
+ sys.exit(VIRTUALENV_NOT_FOUND)
140
+
141
+ if options.cache_dir:
142
+ options.cache_dir = normalize_path(options.cache_dir)
143
+ if not check_path_owner(options.cache_dir):
144
+ logger.warning(
145
+ "The directory '%s' or its parent directory is not owned "
146
+ "or is not writable by the current user. The cache "
147
+ "has been disabled. Check the permissions and owner of "
148
+ "that directory. If executing pip with sudo, you should "
149
+ "use sudo's -H flag.",
150
+ options.cache_dir,
151
+ )
152
+ options.cache_dir = None
153
+
154
+ if "2020-resolver" in options.features_enabled:
155
+ logger.warning(
156
+ "--use-feature=2020-resolver no longer has any effect, "
157
+ "since it is now the default dependency resolver in pip. "
158
+ "This will become an error in pip 21.0."
159
+ )
160
+
161
+ def intercepts_unhandled_exc(
162
+ run_func: Callable[..., int]
163
+ ) -> Callable[..., int]:
164
+ @functools.wraps(run_func)
165
+ def exc_logging_wrapper(*args: Any) -> int:
166
+ try:
167
+ status = run_func(*args)
168
+ assert isinstance(status, int)
169
+ return status
170
+ except DiagnosticPipError as exc:
171
+ logger.error("[present-diagnostic] %s", exc)
172
+ logger.debug("Exception information:", exc_info=True)
173
+
174
+ return ERROR
175
+ except PreviousBuildDirError as exc:
176
+ logger.critical(str(exc))
177
+ logger.debug("Exception information:", exc_info=True)
178
+
179
+ return PREVIOUS_BUILD_DIR_ERROR
180
+ except (
181
+ InstallationError,
182
+ UninstallationError,
183
+ BadCommand,
184
+ NetworkConnectionError,
185
+ ) as exc:
186
+ logger.critical(str(exc))
187
+ logger.debug("Exception information:", exc_info=True)
188
+
189
+ return ERROR
190
+ except CommandError as exc:
191
+ logger.critical("%s", exc)
192
+ logger.debug("Exception information:", exc_info=True)
193
+
194
+ return ERROR
195
+ except BrokenStdoutLoggingError:
196
+ # Bypass our logger and write any remaining messages to
197
+ # stderr because stdout no longer works.
198
+ print("ERROR: Pipe to stdout was broken", file=sys.stderr)
199
+ if level_number <= logging.DEBUG:
200
+ traceback.print_exc(file=sys.stderr)
201
+
202
+ return ERROR
203
+ except KeyboardInterrupt:
204
+ logger.critical("Operation cancelled by user")
205
+ logger.debug("Exception information:", exc_info=True)
206
+
207
+ return ERROR
208
+ except BaseException:
209
+ logger.critical("Exception:", exc_info=True)
210
+
211
+ return UNKNOWN_ERROR
212
+
213
+ return exc_logging_wrapper
214
+
215
+ try:
216
+ if not options.debug_mode:
217
+ run = intercepts_unhandled_exc(self.run)
218
+ else:
219
+ run = self.run
220
+ rich_traceback.install(show_locals=True)
221
+ return run(options, args)
222
+ finally:
223
+ self.handle_pip_version_check(options)
hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/cmdoptions.py ADDED
@@ -0,0 +1,1018 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ shared options and groups
3
+
4
+ The principle here is to define options once, but *not* instantiate them
5
+ globally. One reason being that options with action='append' can carry state
6
+ between parses. pip parses general options twice internally, and shouldn't
7
+ pass on state. To be consistent, all options will follow this design.
8
+ """
9
+
10
+ # The following comment should be removed at some point in the future.
11
+ # mypy: strict-optional=False
12
+
13
+ import logging
14
+ import os
15
+ import textwrap
16
+ from functools import partial
17
+ from optparse import SUPPRESS_HELP, Option, OptionGroup, OptionParser, Values
18
+ from textwrap import dedent
19
+ from typing import Any, Callable, Dict, Optional, Tuple
20
+
21
+ from pip._vendor.packaging.utils import canonicalize_name
22
+
23
+ from pip._internal.cli.parser import ConfigOptionParser
24
+ from pip._internal.cli.progress_bars import BAR_TYPES
25
+ from pip._internal.exceptions import CommandError
26
+ from pip._internal.locations import USER_CACHE_DIR, get_src_prefix
27
+ from pip._internal.models.format_control import FormatControl
28
+ from pip._internal.models.index import PyPI
29
+ from pip._internal.models.target_python import TargetPython
30
+ from pip._internal.utils.hashes import STRONG_HASHES
31
+ from pip._internal.utils.misc import strtobool
32
+
33
+ logger = logging.getLogger(__name__)
34
+
35
+
36
+ def raise_option_error(parser: OptionParser, option: Option, msg: str) -> None:
37
+ """
38
+ Raise an option parsing error using parser.error().
39
+
40
+ Args:
41
+ parser: an OptionParser instance.
42
+ option: an Option instance.
43
+ msg: the error text.
44
+ """
45
+ msg = f"{option} error: {msg}"
46
+ msg = textwrap.fill(" ".join(msg.split()))
47
+ parser.error(msg)
48
+
49
+
50
+ def make_option_group(group: Dict[str, Any], parser: ConfigOptionParser) -> OptionGroup:
51
+ """
52
+ Return an OptionGroup object
53
+ group -- assumed to be dict with 'name' and 'options' keys
54
+ parser -- an optparse Parser
55
+ """
56
+ option_group = OptionGroup(parser, group["name"])
57
+ for option in group["options"]:
58
+ option_group.add_option(option())
59
+ return option_group
60
+
61
+
62
+ def check_install_build_global(
63
+ options: Values, check_options: Optional[Values] = None
64
+ ) -> None:
65
+ """Disable wheels if per-setup.py call options are set.
66
+
67
+ :param options: The OptionParser options to update.
68
+ :param check_options: The options to check, if not supplied defaults to
69
+ options.
70
+ """
71
+ if check_options is None:
72
+ check_options = options
73
+
74
+ def getname(n: str) -> Optional[Any]:
75
+ return getattr(check_options, n, None)
76
+
77
+ names = ["build_options", "global_options", "install_options"]
78
+ if any(map(getname, names)):
79
+ control = options.format_control
80
+ control.disallow_binaries()
81
+ logger.warning(
82
+ "Disabling all use of wheels due to the use of --build-option "
83
+ "/ --global-option / --install-option.",
84
+ )
85
+
86
+
87
+ def check_dist_restriction(options: Values, check_target: bool = False) -> None:
88
+ """Function for determining if custom platform options are allowed.
89
+
90
+ :param options: The OptionParser options.
91
+ :param check_target: Whether or not to check if --target is being used.
92
+ """
93
+ dist_restriction_set = any(
94
+ [
95
+ options.python_version,
96
+ options.platforms,
97
+ options.abis,
98
+ options.implementation,
99
+ ]
100
+ )
101
+
102
+ binary_only = FormatControl(set(), {":all:"})
103
+ sdist_dependencies_allowed = (
104
+ options.format_control != binary_only and not options.ignore_dependencies
105
+ )
106
+
107
+ # Installations or downloads using dist restrictions must not combine
108
+ # source distributions and dist-specific wheels, as they are not
109
+ # guaranteed to be locally compatible.
110
+ if dist_restriction_set and sdist_dependencies_allowed:
111
+ raise CommandError(
112
+ "When restricting platform and interpreter constraints using "
113
+ "--python-version, --platform, --abi, or --implementation, "
114
+ "either --no-deps must be set, or --only-binary=:all: must be "
115
+ "set and --no-binary must not be set (or must be set to "
116
+ ":none:)."
117
+ )
118
+
119
+ if check_target:
120
+ if dist_restriction_set and not options.target_dir:
121
+ raise CommandError(
122
+ "Can not use any platform or abi specific options unless "
123
+ "installing via '--target'"
124
+ )
125
+
126
+
127
+ def _path_option_check(option: Option, opt: str, value: str) -> str:
128
+ return os.path.expanduser(value)
129
+
130
+
131
+ def _package_name_option_check(option: Option, opt: str, value: str) -> str:
132
+ return canonicalize_name(value)
133
+
134
+
135
+ class PipOption(Option):
136
+ TYPES = Option.TYPES + ("path", "package_name")
137
+ TYPE_CHECKER = Option.TYPE_CHECKER.copy()
138
+ TYPE_CHECKER["package_name"] = _package_name_option_check
139
+ TYPE_CHECKER["path"] = _path_option_check
140
+
141
+
142
+ ###########
143
+ # options #
144
+ ###########
145
+
146
+ help_: Callable[..., Option] = partial(
147
+ Option,
148
+ "-h",
149
+ "--help",
150
+ dest="help",
151
+ action="help",
152
+ help="Show help.",
153
+ )
154
+
155
+ debug_mode: Callable[..., Option] = partial(
156
+ Option,
157
+ "--debug",
158
+ dest="debug_mode",
159
+ action="store_true",
160
+ default=False,
161
+ help=(
162
+ "Let unhandled exceptions propagate outside the main subroutine, "
163
+ "instead of logging them to stderr."
164
+ ),
165
+ )
166
+
167
+ isolated_mode: Callable[..., Option] = partial(
168
+ Option,
169
+ "--isolated",
170
+ dest="isolated_mode",
171
+ action="store_true",
172
+ default=False,
173
+ help=(
174
+ "Run pip in an isolated mode, ignoring environment variables and user "
175
+ "configuration."
176
+ ),
177
+ )
178
+
179
+ require_virtualenv: Callable[..., Option] = partial(
180
+ Option,
181
+ "--require-virtualenv",
182
+ "--require-venv",
183
+ dest="require_venv",
184
+ action="store_true",
185
+ default=False,
186
+ help=(
187
+ "Allow pip to only run in a virtual environment; "
188
+ "exit with an error otherwise."
189
+ ),
190
+ )
191
+
192
+ verbose: Callable[..., Option] = partial(
193
+ Option,
194
+ "-v",
195
+ "--verbose",
196
+ dest="verbose",
197
+ action="count",
198
+ default=0,
199
+ help="Give more output. Option is additive, and can be used up to 3 times.",
200
+ )
201
+
202
+ no_color: Callable[..., Option] = partial(
203
+ Option,
204
+ "--no-color",
205
+ dest="no_color",
206
+ action="store_true",
207
+ default=False,
208
+ help="Suppress colored output.",
209
+ )
210
+
211
+ version: Callable[..., Option] = partial(
212
+ Option,
213
+ "-V",
214
+ "--version",
215
+ dest="version",
216
+ action="store_true",
217
+ help="Show version and exit.",
218
+ )
219
+
220
+ quiet: Callable[..., Option] = partial(
221
+ Option,
222
+ "-q",
223
+ "--quiet",
224
+ dest="quiet",
225
+ action="count",
226
+ default=0,
227
+ help=(
228
+ "Give less output. Option is additive, and can be used up to 3"
229
+ " times (corresponding to WARNING, ERROR, and CRITICAL logging"
230
+ " levels)."
231
+ ),
232
+ )
233
+
234
+ progress_bar: Callable[..., Option] = partial(
235
+ Option,
236
+ "--progress-bar",
237
+ dest="progress_bar",
238
+ type="choice",
239
+ choices=list(BAR_TYPES.keys()),
240
+ default="on",
241
+ help=(
242
+ "Specify type of progress to be displayed ["
243
+ + "|".join(BAR_TYPES.keys())
244
+ + "] (default: %default)"
245
+ ),
246
+ )
247
+
248
+ log: Callable[..., Option] = partial(
249
+ PipOption,
250
+ "--log",
251
+ "--log-file",
252
+ "--local-log",
253
+ dest="log",
254
+ metavar="path",
255
+ type="path",
256
+ help="Path to a verbose appending log.",
257
+ )
258
+
259
+ no_input: Callable[..., Option] = partial(
260
+ Option,
261
+ # Don't ask for input
262
+ "--no-input",
263
+ dest="no_input",
264
+ action="store_true",
265
+ default=False,
266
+ help="Disable prompting for input.",
267
+ )
268
+
269
+ proxy: Callable[..., Option] = partial(
270
+ Option,
271
+ "--proxy",
272
+ dest="proxy",
273
+ type="str",
274
+ default="",
275
+ help="Specify a proxy in the form [user:passwd@]proxy.server:port.",
276
+ )
277
+
278
+ retries: Callable[..., Option] = partial(
279
+ Option,
280
+ "--retries",
281
+ dest="retries",
282
+ type="int",
283
+ default=5,
284
+ help="Maximum number of retries each connection should attempt "
285
+ "(default %default times).",
286
+ )
287
+
288
+ timeout: Callable[..., Option] = partial(
289
+ Option,
290
+ "--timeout",
291
+ "--default-timeout",
292
+ metavar="sec",
293
+ dest="timeout",
294
+ type="float",
295
+ default=15,
296
+ help="Set the socket timeout (default %default seconds).",
297
+ )
298
+
299
+
300
+ def exists_action() -> Option:
301
+ return Option(
302
+ # Option when path already exist
303
+ "--exists-action",
304
+ dest="exists_action",
305
+ type="choice",
306
+ choices=["s", "i", "w", "b", "a"],
307
+ default=[],
308
+ action="append",
309
+ metavar="action",
310
+ help="Default action when a path already exists: "
311
+ "(s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.",
312
+ )
313
+
314
+
315
+ cert: Callable[..., Option] = partial(
316
+ PipOption,
317
+ "--cert",
318
+ dest="cert",
319
+ type="path",
320
+ metavar="path",
321
+ help=(
322
+ "Path to PEM-encoded CA certificate bundle. "
323
+ "If provided, overrides the default. "
324
+ "See 'SSL Certificate Verification' in pip documentation "
325
+ "for more information."
326
+ ),
327
+ )
328
+
329
+ client_cert: Callable[..., Option] = partial(
330
+ PipOption,
331
+ "--client-cert",
332
+ dest="client_cert",
333
+ type="path",
334
+ default=None,
335
+ metavar="path",
336
+ help="Path to SSL client certificate, a single file containing the "
337
+ "private key and the certificate in PEM format.",
338
+ )
339
+
340
+ index_url: Callable[..., Option] = partial(
341
+ Option,
342
+ "-i",
343
+ "--index-url",
344
+ "--pypi-url",
345
+ dest="index_url",
346
+ metavar="URL",
347
+ default=PyPI.simple_url,
348
+ help="Base URL of the Python Package Index (default %default). "
349
+ "This should point to a repository compliant with PEP 503 "
350
+ "(the simple repository API) or a local directory laid out "
351
+ "in the same format.",
352
+ )
353
+
354
+
355
+ def extra_index_url() -> Option:
356
+ return Option(
357
+ "--extra-index-url",
358
+ dest="extra_index_urls",
359
+ metavar="URL",
360
+ action="append",
361
+ default=[],
362
+ help="Extra URLs of package indexes to use in addition to "
363
+ "--index-url. Should follow the same rules as "
364
+ "--index-url.",
365
+ )
366
+
367
+
368
+ no_index: Callable[..., Option] = partial(
369
+ Option,
370
+ "--no-index",
371
+ dest="no_index",
372
+ action="store_true",
373
+ default=False,
374
+ help="Ignore package index (only looking at --find-links URLs instead).",
375
+ )
376
+
377
+
378
+ def find_links() -> Option:
379
+ return Option(
380
+ "-f",
381
+ "--find-links",
382
+ dest="find_links",
383
+ action="append",
384
+ default=[],
385
+ metavar="url",
386
+ help="If a URL or path to an html file, then parse for links to "
387
+ "archives such as sdist (.tar.gz) or wheel (.whl) files. "
388
+ "If a local path or file:// URL that's a directory, "
389
+ "then look for archives in the directory listing. "
390
+ "Links to VCS project URLs are not supported.",
391
+ )
392
+
393
+
394
+ def trusted_host() -> Option:
395
+ return Option(
396
+ "--trusted-host",
397
+ dest="trusted_hosts",
398
+ action="append",
399
+ metavar="HOSTNAME",
400
+ default=[],
401
+ help="Mark this host or host:port pair as trusted, even though it "
402
+ "does not have valid or any HTTPS.",
403
+ )
404
+
405
+
406
+ def constraints() -> Option:
407
+ return Option(
408
+ "-c",
409
+ "--constraint",
410
+ dest="constraints",
411
+ action="append",
412
+ default=[],
413
+ metavar="file",
414
+ help="Constrain versions using the given constraints file. "
415
+ "This option can be used multiple times.",
416
+ )
417
+
418
+
419
+ def requirements() -> Option:
420
+ return Option(
421
+ "-r",
422
+ "--requirement",
423
+ dest="requirements",
424
+ action="append",
425
+ default=[],
426
+ metavar="file",
427
+ help="Install from the given requirements file. "
428
+ "This option can be used multiple times.",
429
+ )
430
+
431
+
432
+ def editable() -> Option:
433
+ return Option(
434
+ "-e",
435
+ "--editable",
436
+ dest="editables",
437
+ action="append",
438
+ default=[],
439
+ metavar="path/url",
440
+ help=(
441
+ "Install a project in editable mode (i.e. setuptools "
442
+ '"develop mode") from a local project path or a VCS url.'
443
+ ),
444
+ )
445
+
446
+
447
+ def _handle_src(option: Option, opt_str: str, value: str, parser: OptionParser) -> None:
448
+ value = os.path.abspath(value)
449
+ setattr(parser.values, option.dest, value)
450
+
451
+
452
+ src: Callable[..., Option] = partial(
453
+ PipOption,
454
+ "--src",
455
+ "--source",
456
+ "--source-dir",
457
+ "--source-directory",
458
+ dest="src_dir",
459
+ type="path",
460
+ metavar="dir",
461
+ default=get_src_prefix(),
462
+ action="callback",
463
+ callback=_handle_src,
464
+ help="Directory to check out editable projects into. "
465
+ 'The default in a virtualenv is "<venv path>/src". '
466
+ 'The default for global installs is "<current dir>/src".',
467
+ )
468
+
469
+
470
+ def _get_format_control(values: Values, option: Option) -> Any:
471
+ """Get a format_control object."""
472
+ return getattr(values, option.dest)
473
+
474
+
475
+ def _handle_no_binary(
476
+ option: Option, opt_str: str, value: str, parser: OptionParser
477
+ ) -> None:
478
+ existing = _get_format_control(parser.values, option)
479
+ FormatControl.handle_mutual_excludes(
480
+ value,
481
+ existing.no_binary,
482
+ existing.only_binary,
483
+ )
484
+
485
+
486
+ def _handle_only_binary(
487
+ option: Option, opt_str: str, value: str, parser: OptionParser
488
+ ) -> None:
489
+ existing = _get_format_control(parser.values, option)
490
+ FormatControl.handle_mutual_excludes(
491
+ value,
492
+ existing.only_binary,
493
+ existing.no_binary,
494
+ )
495
+
496
+
497
+ def no_binary() -> Option:
498
+ format_control = FormatControl(set(), set())
499
+ return Option(
500
+ "--no-binary",
501
+ dest="format_control",
502
+ action="callback",
503
+ callback=_handle_no_binary,
504
+ type="str",
505
+ default=format_control,
506
+ help="Do not use binary packages. Can be supplied multiple times, and "
507
+ 'each time adds to the existing value. Accepts either ":all:" to '
508
+ 'disable all binary packages, ":none:" to empty the set (notice '
509
+ "the colons), or one or more package names with commas between "
510
+ "them (no colons). Note that some packages are tricky to compile "
511
+ "and may fail to install when this option is used on them.",
512
+ )
513
+
514
+
515
+ def only_binary() -> Option:
516
+ format_control = FormatControl(set(), set())
517
+ return Option(
518
+ "--only-binary",
519
+ dest="format_control",
520
+ action="callback",
521
+ callback=_handle_only_binary,
522
+ type="str",
523
+ default=format_control,
524
+ help="Do not use source packages. Can be supplied multiple times, and "
525
+ 'each time adds to the existing value. Accepts either ":all:" to '
526
+ 'disable all source packages, ":none:" to empty the set, or one '
527
+ "or more package names with commas between them. Packages "
528
+ "without binary distributions will fail to install when this "
529
+ "option is used on them.",
530
+ )
531
+
532
+
533
+ platforms: Callable[..., Option] = partial(
534
+ Option,
535
+ "--platform",
536
+ dest="platforms",
537
+ metavar="platform",
538
+ action="append",
539
+ default=None,
540
+ help=(
541
+ "Only use wheels compatible with <platform>. Defaults to the "
542
+ "platform of the running system. Use this option multiple times to "
543
+ "specify multiple platforms supported by the target interpreter."
544
+ ),
545
+ )
546
+
547
+
548
+ # This was made a separate function for unit-testing purposes.
549
+ def _convert_python_version(value: str) -> Tuple[Tuple[int, ...], Optional[str]]:
550
+ """
551
+ Convert a version string like "3", "37", or "3.7.3" into a tuple of ints.
552
+
553
+ :return: A 2-tuple (version_info, error_msg), where `error_msg` is
554
+ non-None if and only if there was a parsing error.
555
+ """
556
+ if not value:
557
+ # The empty string is the same as not providing a value.
558
+ return (None, None)
559
+
560
+ parts = value.split(".")
561
+ if len(parts) > 3:
562
+ return ((), "at most three version parts are allowed")
563
+
564
+ if len(parts) == 1:
565
+ # Then we are in the case of "3" or "37".
566
+ value = parts[0]
567
+ if len(value) > 1:
568
+ parts = [value[0], value[1:]]
569
+
570
+ try:
571
+ version_info = tuple(int(part) for part in parts)
572
+ except ValueError:
573
+ return ((), "each version part must be an integer")
574
+
575
+ return (version_info, None)
576
+
577
+
578
+ def _handle_python_version(
579
+ option: Option, opt_str: str, value: str, parser: OptionParser
580
+ ) -> None:
581
+ """
582
+ Handle a provided --python-version value.
583
+ """
584
+ version_info, error_msg = _convert_python_version(value)
585
+ if error_msg is not None:
586
+ msg = "invalid --python-version value: {!r}: {}".format(
587
+ value,
588
+ error_msg,
589
+ )
590
+ raise_option_error(parser, option=option, msg=msg)
591
+
592
+ parser.values.python_version = version_info
593
+
594
+
595
+ python_version: Callable[..., Option] = partial(
596
+ Option,
597
+ "--python-version",
598
+ dest="python_version",
599
+ metavar="python_version",
600
+ action="callback",
601
+ callback=_handle_python_version,
602
+ type="str",
603
+ default=None,
604
+ help=dedent(
605
+ """\
606
+ The Python interpreter version to use for wheel and "Requires-Python"
607
+ compatibility checks. Defaults to a version derived from the running
608
+ interpreter. The version can be specified using up to three dot-separated
609
+ integers (e.g. "3" for 3.0.0, "3.7" for 3.7.0, or "3.7.3"). A major-minor
610
+ version can also be given as a string without dots (e.g. "37" for 3.7.0).
611
+ """
612
+ ),
613
+ )
614
+
615
+
616
+ implementation: Callable[..., Option] = partial(
617
+ Option,
618
+ "--implementation",
619
+ dest="implementation",
620
+ metavar="implementation",
621
+ default=None,
622
+ help=(
623
+ "Only use wheels compatible with Python "
624
+ "implementation <implementation>, e.g. 'pp', 'jy', 'cp', "
625
+ " or 'ip'. If not specified, then the current "
626
+ "interpreter implementation is used. Use 'py' to force "
627
+ "implementation-agnostic wheels."
628
+ ),
629
+ )
630
+
631
+
632
+ abis: Callable[..., Option] = partial(
633
+ Option,
634
+ "--abi",
635
+ dest="abis",
636
+ metavar="abi",
637
+ action="append",
638
+ default=None,
639
+ help=(
640
+ "Only use wheels compatible with Python abi <abi>, e.g. 'pypy_41'. "
641
+ "If not specified, then the current interpreter abi tag is used. "
642
+ "Use this option multiple times to specify multiple abis supported "
643
+ "by the target interpreter. Generally you will need to specify "
644
+ "--implementation, --platform, and --python-version when using this "
645
+ "option."
646
+ ),
647
+ )
648
+
649
+
650
+ def add_target_python_options(cmd_opts: OptionGroup) -> None:
651
+ cmd_opts.add_option(platforms())
652
+ cmd_opts.add_option(python_version())
653
+ cmd_opts.add_option(implementation())
654
+ cmd_opts.add_option(abis())
655
+
656
+
657
+ def make_target_python(options: Values) -> TargetPython:
658
+ target_python = TargetPython(
659
+ platforms=options.platforms,
660
+ py_version_info=options.python_version,
661
+ abis=options.abis,
662
+ implementation=options.implementation,
663
+ )
664
+
665
+ return target_python
666
+
667
+
668
+ def prefer_binary() -> Option:
669
+ return Option(
670
+ "--prefer-binary",
671
+ dest="prefer_binary",
672
+ action="store_true",
673
+ default=False,
674
+ help="Prefer older binary packages over newer source packages.",
675
+ )
676
+
677
+
678
+ cache_dir: Callable[..., Option] = partial(
679
+ PipOption,
680
+ "--cache-dir",
681
+ dest="cache_dir",
682
+ default=USER_CACHE_DIR,
683
+ metavar="dir",
684
+ type="path",
685
+ help="Store the cache data in <dir>.",
686
+ )
687
+
688
+
689
+ def _handle_no_cache_dir(
690
+ option: Option, opt: str, value: str, parser: OptionParser
691
+ ) -> None:
692
+ """
693
+ Process a value provided for the --no-cache-dir option.
694
+
695
+ This is an optparse.Option callback for the --no-cache-dir option.
696
+ """
697
+ # The value argument will be None if --no-cache-dir is passed via the
698
+ # command-line, since the option doesn't accept arguments. However,
699
+ # the value can be non-None if the option is triggered e.g. by an
700
+ # environment variable, like PIP_NO_CACHE_DIR=true.
701
+ if value is not None:
702
+ # Then parse the string value to get argument error-checking.
703
+ try:
704
+ strtobool(value)
705
+ except ValueError as exc:
706
+ raise_option_error(parser, option=option, msg=str(exc))
707
+
708
+ # Originally, setting PIP_NO_CACHE_DIR to a value that strtobool()
709
+ # converted to 0 (like "false" or "no") caused cache_dir to be disabled
710
+ # rather than enabled (logic would say the latter). Thus, we disable
711
+ # the cache directory not just on values that parse to True, but (for
712
+ # backwards compatibility reasons) also on values that parse to False.
713
+ # In other words, always set it to False if the option is provided in
714
+ # some (valid) form.
715
+ parser.values.cache_dir = False
716
+
717
+
718
+ no_cache: Callable[..., Option] = partial(
719
+ Option,
720
+ "--no-cache-dir",
721
+ dest="cache_dir",
722
+ action="callback",
723
+ callback=_handle_no_cache_dir,
724
+ help="Disable the cache.",
725
+ )
726
+
727
+ no_deps: Callable[..., Option] = partial(
728
+ Option,
729
+ "--no-deps",
730
+ "--no-dependencies",
731
+ dest="ignore_dependencies",
732
+ action="store_true",
733
+ default=False,
734
+ help="Don't install package dependencies.",
735
+ )
736
+
737
+ ignore_requires_python: Callable[..., Option] = partial(
738
+ Option,
739
+ "--ignore-requires-python",
740
+ dest="ignore_requires_python",
741
+ action="store_true",
742
+ help="Ignore the Requires-Python information.",
743
+ )
744
+
745
+ no_build_isolation: Callable[..., Option] = partial(
746
+ Option,
747
+ "--no-build-isolation",
748
+ dest="build_isolation",
749
+ action="store_false",
750
+ default=True,
751
+ help="Disable isolation when building a modern source distribution. "
752
+ "Build dependencies specified by PEP 518 must be already installed "
753
+ "if this option is used.",
754
+ )
755
+
756
+
757
+ def _handle_no_use_pep517(
758
+ option: Option, opt: str, value: str, parser: OptionParser
759
+ ) -> None:
760
+ """
761
+ Process a value provided for the --no-use-pep517 option.
762
+
763
+ This is an optparse.Option callback for the no_use_pep517 option.
764
+ """
765
+ # Since --no-use-pep517 doesn't accept arguments, the value argument
766
+ # will be None if --no-use-pep517 is passed via the command-line.
767
+ # However, the value can be non-None if the option is triggered e.g.
768
+ # by an environment variable, for example "PIP_NO_USE_PEP517=true".
769
+ if value is not None:
770
+ msg = """A value was passed for --no-use-pep517,
771
+ probably using either the PIP_NO_USE_PEP517 environment variable
772
+ or the "no-use-pep517" config file option. Use an appropriate value
773
+ of the PIP_USE_PEP517 environment variable or the "use-pep517"
774
+ config file option instead.
775
+ """
776
+ raise_option_error(parser, option=option, msg=msg)
777
+
778
+ # Otherwise, --no-use-pep517 was passed via the command-line.
779
+ parser.values.use_pep517 = False
780
+
781
+
782
+ use_pep517: Any = partial(
783
+ Option,
784
+ "--use-pep517",
785
+ dest="use_pep517",
786
+ action="store_true",
787
+ default=None,
788
+ help="Use PEP 517 for building source distributions "
789
+ "(use --no-use-pep517 to force legacy behaviour).",
790
+ )
791
+
792
+ no_use_pep517: Any = partial(
793
+ Option,
794
+ "--no-use-pep517",
795
+ dest="use_pep517",
796
+ action="callback",
797
+ callback=_handle_no_use_pep517,
798
+ default=None,
799
+ help=SUPPRESS_HELP,
800
+ )
801
+
802
+ install_options: Callable[..., Option] = partial(
803
+ Option,
804
+ "--install-option",
805
+ dest="install_options",
806
+ action="append",
807
+ metavar="options",
808
+ help="Extra arguments to be supplied to the setup.py install "
809
+ 'command (use like --install-option="--install-scripts=/usr/local/'
810
+ 'bin"). Use multiple --install-option options to pass multiple '
811
+ "options to setup.py install. If you are using an option with a "
812
+ "directory path, be sure to use absolute path.",
813
+ )
814
+
815
+ build_options: Callable[..., Option] = partial(
816
+ Option,
817
+ "--build-option",
818
+ dest="build_options",
819
+ metavar="options",
820
+ action="append",
821
+ help="Extra arguments to be supplied to 'setup.py bdist_wheel'.",
822
+ )
823
+
824
+ global_options: Callable[..., Option] = partial(
825
+ Option,
826
+ "--global-option",
827
+ dest="global_options",
828
+ action="append",
829
+ metavar="options",
830
+ help="Extra global options to be supplied to the setup.py "
831
+ "call before the install or bdist_wheel command.",
832
+ )
833
+
834
+ no_clean: Callable[..., Option] = partial(
835
+ Option,
836
+ "--no-clean",
837
+ action="store_true",
838
+ default=False,
839
+ help="Don't clean up build directories.",
840
+ )
841
+
842
+ pre: Callable[..., Option] = partial(
843
+ Option,
844
+ "--pre",
845
+ action="store_true",
846
+ default=False,
847
+ help="Include pre-release and development versions. By default, "
848
+ "pip only finds stable versions.",
849
+ )
850
+
851
+ disable_pip_version_check: Callable[..., Option] = partial(
852
+ Option,
853
+ "--disable-pip-version-check",
854
+ dest="disable_pip_version_check",
855
+ action="store_true",
856
+ default=False,
857
+ help="Don't periodically check PyPI to determine whether a new version "
858
+ "of pip is available for download. Implied with --no-index.",
859
+ )
860
+
861
+
862
+ def _handle_merge_hash(
863
+ option: Option, opt_str: str, value: str, parser: OptionParser
864
+ ) -> None:
865
+ """Given a value spelled "algo:digest", append the digest to a list
866
+ pointed to in a dict by the algo name."""
867
+ if not parser.values.hashes:
868
+ parser.values.hashes = {}
869
+ try:
870
+ algo, digest = value.split(":", 1)
871
+ except ValueError:
872
+ parser.error(
873
+ "Arguments to {} must be a hash name " # noqa
874
+ "followed by a value, like --hash=sha256:"
875
+ "abcde...".format(opt_str)
876
+ )
877
+ if algo not in STRONG_HASHES:
878
+ parser.error(
879
+ "Allowed hash algorithms for {} are {}.".format( # noqa
880
+ opt_str, ", ".join(STRONG_HASHES)
881
+ )
882
+ )
883
+ parser.values.hashes.setdefault(algo, []).append(digest)
884
+
885
+
886
+ hash: Callable[..., Option] = partial(
887
+ Option,
888
+ "--hash",
889
+ # Hash values eventually end up in InstallRequirement.hashes due to
890
+ # __dict__ copying in process_line().
891
+ dest="hashes",
892
+ action="callback",
893
+ callback=_handle_merge_hash,
894
+ type="string",
895
+ help="Verify that the package's archive matches this "
896
+ "hash before installing. Example: --hash=sha256:abcdef...",
897
+ )
898
+
899
+
900
+ require_hashes: Callable[..., Option] = partial(
901
+ Option,
902
+ "--require-hashes",
903
+ dest="require_hashes",
904
+ action="store_true",
905
+ default=False,
906
+ help="Require a hash to check each requirement against, for "
907
+ "repeatable installs. This option is implied when any package in a "
908
+ "requirements file has a --hash option.",
909
+ )
910
+
911
+
912
+ list_path: Callable[..., Option] = partial(
913
+ PipOption,
914
+ "--path",
915
+ dest="path",
916
+ type="path",
917
+ action="append",
918
+ help="Restrict to the specified installation path for listing "
919
+ "packages (can be used multiple times).",
920
+ )
921
+
922
+
923
+ def check_list_path_option(options: Values) -> None:
924
+ if options.path and (options.user or options.local):
925
+ raise CommandError("Cannot combine '--path' with '--user' or '--local'")
926
+
927
+
928
+ list_exclude: Callable[..., Option] = partial(
929
+ PipOption,
930
+ "--exclude",
931
+ dest="excludes",
932
+ action="append",
933
+ metavar="package",
934
+ type="package_name",
935
+ help="Exclude specified package from the output",
936
+ )
937
+
938
+
939
+ no_python_version_warning: Callable[..., Option] = partial(
940
+ Option,
941
+ "--no-python-version-warning",
942
+ dest="no_python_version_warning",
943
+ action="store_true",
944
+ default=False,
945
+ help="Silence deprecation warnings for upcoming unsupported Pythons.",
946
+ )
947
+
948
+
949
+ use_new_feature: Callable[..., Option] = partial(
950
+ Option,
951
+ "--use-feature",
952
+ dest="features_enabled",
953
+ metavar="feature",
954
+ action="append",
955
+ default=[],
956
+ choices=["2020-resolver", "fast-deps", "in-tree-build"],
957
+ help="Enable new functionality, that may be backward incompatible.",
958
+ )
959
+
960
+ use_deprecated_feature: Callable[..., Option] = partial(
961
+ Option,
962
+ "--use-deprecated",
963
+ dest="deprecated_features_enabled",
964
+ metavar="feature",
965
+ action="append",
966
+ default=[],
967
+ choices=[
968
+ "legacy-resolver",
969
+ "out-of-tree-build",
970
+ "backtrack-on-build-failures",
971
+ "html5lib",
972
+ ],
973
+ help=("Enable deprecated functionality, that will be removed in the future."),
974
+ )
975
+
976
+
977
+ ##########
978
+ # groups #
979
+ ##########
980
+
981
+ general_group: Dict[str, Any] = {
982
+ "name": "General Options",
983
+ "options": [
984
+ help_,
985
+ debug_mode,
986
+ isolated_mode,
987
+ require_virtualenv,
988
+ verbose,
989
+ version,
990
+ quiet,
991
+ log,
992
+ no_input,
993
+ proxy,
994
+ retries,
995
+ timeout,
996
+ exists_action,
997
+ trusted_host,
998
+ cert,
999
+ client_cert,
1000
+ cache_dir,
1001
+ no_cache,
1002
+ disable_pip_version_check,
1003
+ no_color,
1004
+ no_python_version_warning,
1005
+ use_new_feature,
1006
+ use_deprecated_feature,
1007
+ ],
1008
+ }
1009
+
1010
+ index_group: Dict[str, Any] = {
1011
+ "name": "Package Index Options",
1012
+ "options": [
1013
+ index_url,
1014
+ extra_index_url,
1015
+ no_index,
1016
+ find_links,
1017
+ ],
1018
+ }
hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/command_context.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from contextlib import ExitStack, contextmanager
2
+ from typing import ContextManager, Iterator, TypeVar
3
+
4
+ _T = TypeVar("_T", covariant=True)
5
+
6
+
7
+ class CommandContextMixIn:
8
+ def __init__(self) -> None:
9
+ super().__init__()
10
+ self._in_main_context = False
11
+ self._main_context = ExitStack()
12
+
13
+ @contextmanager
14
+ def main_context(self) -> Iterator[None]:
15
+ assert not self._in_main_context
16
+
17
+ self._in_main_context = True
18
+ try:
19
+ with self._main_context:
20
+ yield
21
+ finally:
22
+ self._in_main_context = False
23
+
24
+ def enter_context(self, context_provider: ContextManager[_T]) -> _T:
25
+ assert self._in_main_context
26
+
27
+ return self._main_context.enter_context(context_provider)
hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/main.py ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Primary application entrypoint.
2
+ """
3
+ import locale
4
+ import logging
5
+ import os
6
+ import sys
7
+ from typing import List, Optional
8
+
9
+ from pip._internal.cli.autocompletion import autocomplete
10
+ from pip._internal.cli.main_parser import parse_command
11
+ from pip._internal.commands import create_command
12
+ from pip._internal.exceptions import PipError
13
+ from pip._internal.utils import deprecation
14
+
15
+ logger = logging.getLogger(__name__)
16
+
17
+
18
+ # Do not import and use main() directly! Using it directly is actively
19
+ # discouraged by pip's maintainers. The name, location and behavior of
20
+ # this function is subject to change, so calling it directly is not
21
+ # portable across different pip versions.
22
+
23
+ # In addition, running pip in-process is unsupported and unsafe. This is
24
+ # elaborated in detail at
25
+ # https://pip.pypa.io/en/stable/user_guide/#using-pip-from-your-program.
26
+ # That document also provides suggestions that should work for nearly
27
+ # all users that are considering importing and using main() directly.
28
+
29
+ # However, we know that certain users will still want to invoke pip
30
+ # in-process. If you understand and accept the implications of using pip
31
+ # in an unsupported manner, the best approach is to use runpy to avoid
32
+ # depending on the exact location of this entry point.
33
+
34
+ # The following example shows how to use runpy to invoke pip in that
35
+ # case:
36
+ #
37
+ # sys.argv = ["pip", your, args, here]
38
+ # runpy.run_module("pip", run_name="__main__")
39
+ #
40
+ # Note that this will exit the process after running, unlike a direct
41
+ # call to main. As it is not safe to do any processing after calling
42
+ # main, this should not be an issue in practice.
43
+
44
+
45
+ def main(args: Optional[List[str]] = None) -> int:
46
+ if args is None:
47
+ args = sys.argv[1:]
48
+
49
+ # Configure our deprecation warnings to be sent through loggers
50
+ deprecation.install_warning_logger()
51
+
52
+ autocomplete()
53
+
54
+ try:
55
+ cmd_name, cmd_args = parse_command(args)
56
+ except PipError as exc:
57
+ sys.stderr.write(f"ERROR: {exc}")
58
+ sys.stderr.write(os.linesep)
59
+ sys.exit(1)
60
+
61
+ # Needed for locale.getpreferredencoding(False) to work
62
+ # in pip._internal.utils.encoding.auto_decode
63
+ try:
64
+ locale.setlocale(locale.LC_ALL, "")
65
+ except locale.Error as e:
66
+ # setlocale can apparently crash if locale are uninitialized
67
+ logger.debug("Ignoring error %s when setting locale", e)
68
+ command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
69
+
70
+ return command.main(cmd_args)
hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/main_parser.py ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """A single place for constructing and exposing the main parser
2
+ """
3
+
4
+ import os
5
+ import sys
6
+ from typing import List, Tuple
7
+
8
+ from pip._internal.cli import cmdoptions
9
+ from pip._internal.cli.parser import ConfigOptionParser, UpdatingDefaultsHelpFormatter
10
+ from pip._internal.commands import commands_dict, get_similar_commands
11
+ from pip._internal.exceptions import CommandError
12
+ from pip._internal.utils.misc import get_pip_version, get_prog
13
+
14
+ __all__ = ["create_main_parser", "parse_command"]
15
+
16
+
17
+ def create_main_parser() -> ConfigOptionParser:
18
+ """Creates and returns the main parser for pip's CLI"""
19
+
20
+ parser = ConfigOptionParser(
21
+ usage="\n%prog <command> [options]",
22
+ add_help_option=False,
23
+ formatter=UpdatingDefaultsHelpFormatter(),
24
+ name="global",
25
+ prog=get_prog(),
26
+ )
27
+ parser.disable_interspersed_args()
28
+
29
+ parser.version = get_pip_version()
30
+
31
+ # add the general options
32
+ gen_opts = cmdoptions.make_option_group(cmdoptions.general_group, parser)
33
+ parser.add_option_group(gen_opts)
34
+
35
+ # so the help formatter knows
36
+ parser.main = True # type: ignore
37
+
38
+ # create command listing for description
39
+ description = [""] + [
40
+ f"{name:27} {command_info.summary}"
41
+ for name, command_info in commands_dict.items()
42
+ ]
43
+ parser.description = "\n".join(description)
44
+
45
+ return parser
46
+
47
+
48
+ def parse_command(args: List[str]) -> Tuple[str, List[str]]:
49
+ parser = create_main_parser()
50
+
51
+ # Note: parser calls disable_interspersed_args(), so the result of this
52
+ # call is to split the initial args into the general options before the
53
+ # subcommand and everything else.
54
+ # For example:
55
+ # args: ['--timeout=5', 'install', '--user', 'INITools']
56
+ # general_options: ['--timeout==5']
57
+ # args_else: ['install', '--user', 'INITools']
58
+ general_options, args_else = parser.parse_args(args)
59
+
60
+ # --version
61
+ if general_options.version:
62
+ sys.stdout.write(parser.version)
63
+ sys.stdout.write(os.linesep)
64
+ sys.exit()
65
+
66
+ # pip || pip help -> print_help()
67
+ if not args_else or (args_else[0] == "help" and len(args_else) == 1):
68
+ parser.print_help()
69
+ sys.exit()
70
+
71
+ # the subcommand name
72
+ cmd_name = args_else[0]
73
+
74
+ if cmd_name not in commands_dict:
75
+ guess = get_similar_commands(cmd_name)
76
+
77
+ msg = [f'unknown command "{cmd_name}"']
78
+ if guess:
79
+ msg.append(f'maybe you meant "{guess}"')
80
+
81
+ raise CommandError(" - ".join(msg))
82
+
83
+ # all the args without the subcommand
84
+ cmd_args = args[:]
85
+ cmd_args.remove(cmd_name)
86
+
87
+ return cmd_name, cmd_args
hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/parser.py ADDED
@@ -0,0 +1,292 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Base option parser setup"""
2
+
3
+ import logging
4
+ import optparse
5
+ import shutil
6
+ import sys
7
+ import textwrap
8
+ from contextlib import suppress
9
+ from typing import Any, Dict, Iterator, List, Tuple
10
+
11
+ from pip._internal.cli.status_codes import UNKNOWN_ERROR
12
+ from pip._internal.configuration import Configuration, ConfigurationError
13
+ from pip._internal.utils.misc import redact_auth_from_url, strtobool
14
+
15
+ logger = logging.getLogger(__name__)
16
+
17
+
18
+ class PrettyHelpFormatter(optparse.IndentedHelpFormatter):
19
+ """A prettier/less verbose help formatter for optparse."""
20
+
21
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
22
+ # help position must be aligned with __init__.parseopts.description
23
+ kwargs["max_help_position"] = 30
24
+ kwargs["indent_increment"] = 1
25
+ kwargs["width"] = shutil.get_terminal_size()[0] - 2
26
+ super().__init__(*args, **kwargs)
27
+
28
+ def format_option_strings(self, option: optparse.Option) -> str:
29
+ return self._format_option_strings(option)
30
+
31
+ def _format_option_strings(
32
+ self, option: optparse.Option, mvarfmt: str = " <{}>", optsep: str = ", "
33
+ ) -> str:
34
+ """
35
+ Return a comma-separated list of option strings and metavars.
36
+
37
+ :param option: tuple of (short opt, long opt), e.g: ('-f', '--format')
38
+ :param mvarfmt: metavar format string
39
+ :param optsep: separator
40
+ """
41
+ opts = []
42
+
43
+ if option._short_opts:
44
+ opts.append(option._short_opts[0])
45
+ if option._long_opts:
46
+ opts.append(option._long_opts[0])
47
+ if len(opts) > 1:
48
+ opts.insert(1, optsep)
49
+
50
+ if option.takes_value():
51
+ assert option.dest is not None
52
+ metavar = option.metavar or option.dest.lower()
53
+ opts.append(mvarfmt.format(metavar.lower()))
54
+
55
+ return "".join(opts)
56
+
57
+ def format_heading(self, heading: str) -> str:
58
+ if heading == "Options":
59
+ return ""
60
+ return heading + ":\n"
61
+
62
+ def format_usage(self, usage: str) -> str:
63
+ """
64
+ Ensure there is only one newline between usage and the first heading
65
+ if there is no description.
66
+ """
67
+ msg = "\nUsage: {}\n".format(self.indent_lines(textwrap.dedent(usage), " "))
68
+ return msg
69
+
70
+ def format_description(self, description: str) -> str:
71
+ # leave full control over description to us
72
+ if description:
73
+ if hasattr(self.parser, "main"):
74
+ label = "Commands"
75
+ else:
76
+ label = "Description"
77
+ # some doc strings have initial newlines, some don't
78
+ description = description.lstrip("\n")
79
+ # some doc strings have final newlines and spaces, some don't
80
+ description = description.rstrip()
81
+ # dedent, then reindent
82
+ description = self.indent_lines(textwrap.dedent(description), " ")
83
+ description = f"{label}:\n{description}\n"
84
+ return description
85
+ else:
86
+ return ""
87
+
88
+ def format_epilog(self, epilog: str) -> str:
89
+ # leave full control over epilog to us
90
+ if epilog:
91
+ return epilog
92
+ else:
93
+ return ""
94
+
95
+ def indent_lines(self, text: str, indent: str) -> str:
96
+ new_lines = [indent + line for line in text.split("\n")]
97
+ return "\n".join(new_lines)
98
+
99
+
100
+ class UpdatingDefaultsHelpFormatter(PrettyHelpFormatter):
101
+ """Custom help formatter for use in ConfigOptionParser.
102
+
103
+ This is updates the defaults before expanding them, allowing
104
+ them to show up correctly in the help listing.
105
+
106
+ Also redact auth from url type options
107
+ """
108
+
109
+ def expand_default(self, option: optparse.Option) -> str:
110
+ default_values = None
111
+ if self.parser is not None:
112
+ assert isinstance(self.parser, ConfigOptionParser)
113
+ self.parser._update_defaults(self.parser.defaults)
114
+ assert option.dest is not None
115
+ default_values = self.parser.defaults.get(option.dest)
116
+ help_text = super().expand_default(option)
117
+
118
+ if default_values and option.metavar == "URL":
119
+ if isinstance(default_values, str):
120
+ default_values = [default_values]
121
+
122
+ # If its not a list, we should abort and just return the help text
123
+ if not isinstance(default_values, list):
124
+ default_values = []
125
+
126
+ for val in default_values:
127
+ help_text = help_text.replace(val, redact_auth_from_url(val))
128
+
129
+ return help_text
130
+
131
+
132
+ class CustomOptionParser(optparse.OptionParser):
133
+ def insert_option_group(
134
+ self, idx: int, *args: Any, **kwargs: Any
135
+ ) -> optparse.OptionGroup:
136
+ """Insert an OptionGroup at a given position."""
137
+ group = self.add_option_group(*args, **kwargs)
138
+
139
+ self.option_groups.pop()
140
+ self.option_groups.insert(idx, group)
141
+
142
+ return group
143
+
144
+ @property
145
+ def option_list_all(self) -> List[optparse.Option]:
146
+ """Get a list of all options, including those in option groups."""
147
+ res = self.option_list[:]
148
+ for i in self.option_groups:
149
+ res.extend(i.option_list)
150
+
151
+ return res
152
+
153
+
154
+ class ConfigOptionParser(CustomOptionParser):
155
+ """Custom option parser which updates its defaults by checking the
156
+ configuration files and environmental variables"""
157
+
158
+ def __init__(
159
+ self,
160
+ *args: Any,
161
+ name: str,
162
+ isolated: bool = False,
163
+ **kwargs: Any,
164
+ ) -> None:
165
+ self.name = name
166
+ self.config = Configuration(isolated)
167
+
168
+ assert self.name
169
+ super().__init__(*args, **kwargs)
170
+
171
+ def check_default(self, option: optparse.Option, key: str, val: Any) -> Any:
172
+ try:
173
+ return option.check_value(key, val)
174
+ except optparse.OptionValueError as exc:
175
+ print(f"An error occurred during configuration: {exc}")
176
+ sys.exit(3)
177
+
178
+ def _get_ordered_configuration_items(self) -> Iterator[Tuple[str, Any]]:
179
+ # Configuration gives keys in an unordered manner. Order them.
180
+ override_order = ["global", self.name, ":env:"]
181
+
182
+ # Pool the options into different groups
183
+ section_items: Dict[str, List[Tuple[str, Any]]] = {
184
+ name: [] for name in override_order
185
+ }
186
+ for section_key, val in self.config.items():
187
+ # ignore empty values
188
+ if not val:
189
+ logger.debug(
190
+ "Ignoring configuration key '%s' as it's value is empty.",
191
+ section_key,
192
+ )
193
+ continue
194
+
195
+ section, key = section_key.split(".", 1)
196
+ if section in override_order:
197
+ section_items[section].append((key, val))
198
+
199
+ # Yield each group in their override order
200
+ for section in override_order:
201
+ for key, val in section_items[section]:
202
+ yield key, val
203
+
204
+ def _update_defaults(self, defaults: Dict[str, Any]) -> Dict[str, Any]:
205
+ """Updates the given defaults with values from the config files and
206
+ the environ. Does a little special handling for certain types of
207
+ options (lists)."""
208
+
209
+ # Accumulate complex default state.
210
+ self.values = optparse.Values(self.defaults)
211
+ late_eval = set()
212
+ # Then set the options with those values
213
+ for key, val in self._get_ordered_configuration_items():
214
+ # '--' because configuration supports only long names
215
+ option = self.get_option("--" + key)
216
+
217
+ # Ignore options not present in this parser. E.g. non-globals put
218
+ # in [global] by users that want them to apply to all applicable
219
+ # commands.
220
+ if option is None:
221
+ continue
222
+
223
+ assert option.dest is not None
224
+
225
+ if option.action in ("store_true", "store_false"):
226
+ try:
227
+ val = strtobool(val)
228
+ except ValueError:
229
+ self.error(
230
+ "{} is not a valid value for {} option, " # noqa
231
+ "please specify a boolean value like yes/no, "
232
+ "true/false or 1/0 instead.".format(val, key)
233
+ )
234
+ elif option.action == "count":
235
+ with suppress(ValueError):
236
+ val = strtobool(val)
237
+ with suppress(ValueError):
238
+ val = int(val)
239
+ if not isinstance(val, int) or val < 0:
240
+ self.error(
241
+ "{} is not a valid value for {} option, " # noqa
242
+ "please instead specify either a non-negative integer "
243
+ "or a boolean value like yes/no or false/true "
244
+ "which is equivalent to 1/0.".format(val, key)
245
+ )
246
+ elif option.action == "append":
247
+ val = val.split()
248
+ val = [self.check_default(option, key, v) for v in val]
249
+ elif option.action == "callback":
250
+ assert option.callback is not None
251
+ late_eval.add(option.dest)
252
+ opt_str = option.get_opt_string()
253
+ val = option.convert_value(opt_str, val)
254
+ # From take_action
255
+ args = option.callback_args or ()
256
+ kwargs = option.callback_kwargs or {}
257
+ option.callback(option, opt_str, val, self, *args, **kwargs)
258
+ else:
259
+ val = self.check_default(option, key, val)
260
+
261
+ defaults[option.dest] = val
262
+
263
+ for key in late_eval:
264
+ defaults[key] = getattr(self.values, key)
265
+ self.values = None
266
+ return defaults
267
+
268
+ def get_default_values(self) -> optparse.Values:
269
+ """Overriding to make updating the defaults after instantiation of
270
+ the option parser possible, _update_defaults() does the dirty work."""
271
+ if not self.process_default_values:
272
+ # Old, pre-Optik 1.5 behaviour.
273
+ return optparse.Values(self.defaults)
274
+
275
+ # Load the configuration, or error out in case of an error
276
+ try:
277
+ self.config.load()
278
+ except ConfigurationError as err:
279
+ self.exit(UNKNOWN_ERROR, str(err))
280
+
281
+ defaults = self._update_defaults(self.defaults.copy()) # ours
282
+ for option in self._get_all_options():
283
+ assert option.dest is not None
284
+ default = defaults.get(option.dest)
285
+ if isinstance(default, str):
286
+ opt_str = option.get_opt_string()
287
+ defaults[option.dest] = option.check_value(opt_str, default)
288
+ return optparse.Values(defaults)
289
+
290
+ def error(self, msg: str) -> None:
291
+ self.print_usage(sys.stderr)
292
+ self.exit(UNKNOWN_ERROR, f"{msg}\n")
hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/progress_bars.py ADDED
@@ -0,0 +1,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import functools
2
+ import itertools
3
+ import sys
4
+ from signal import SIGINT, default_int_handler, signal
5
+ from typing import Any, Callable, Iterator, Optional, Tuple
6
+
7
+ from pip._vendor.progress.bar import Bar, FillingCirclesBar, IncrementalBar
8
+ from pip._vendor.progress.spinner import Spinner
9
+ from pip._vendor.rich.progress import (
10
+ BarColumn,
11
+ DownloadColumn,
12
+ FileSizeColumn,
13
+ Progress,
14
+ ProgressColumn,
15
+ SpinnerColumn,
16
+ TextColumn,
17
+ TimeElapsedColumn,
18
+ TimeRemainingColumn,
19
+ TransferSpeedColumn,
20
+ )
21
+
22
+ from pip._internal.utils.compat import WINDOWS
23
+ from pip._internal.utils.logging import get_indentation
24
+ from pip._internal.utils.misc import format_size
25
+
26
+ try:
27
+ from pip._vendor import colorama
28
+ # Lots of different errors can come from this, including SystemError and
29
+ # ImportError.
30
+ except Exception:
31
+ colorama = None
32
+
33
+ DownloadProgressRenderer = Callable[[Iterator[bytes]], Iterator[bytes]]
34
+
35
+
36
+ def _select_progress_class(preferred: Bar, fallback: Bar) -> Bar:
37
+ encoding = getattr(preferred.file, "encoding", None)
38
+
39
+ # If we don't know what encoding this file is in, then we'll just assume
40
+ # that it doesn't support unicode and use the ASCII bar.
41
+ if not encoding:
42
+ return fallback
43
+
44
+ # Collect all of the possible characters we want to use with the preferred
45
+ # bar.
46
+ characters = [
47
+ getattr(preferred, "empty_fill", ""),
48
+ getattr(preferred, "fill", ""),
49
+ ]
50
+ characters += list(getattr(preferred, "phases", []))
51
+
52
+ # Try to decode the characters we're using for the bar using the encoding
53
+ # of the given file, if this works then we'll assume that we can use the
54
+ # fancier bar and if not we'll fall back to the plaintext bar.
55
+ try:
56
+ "".join(characters).encode(encoding)
57
+ except UnicodeEncodeError:
58
+ return fallback
59
+ else:
60
+ return preferred
61
+
62
+
63
+ _BaseBar: Any = _select_progress_class(IncrementalBar, Bar)
64
+
65
+
66
+ class InterruptibleMixin:
67
+ """
68
+ Helper to ensure that self.finish() gets called on keyboard interrupt.
69
+
70
+ This allows downloads to be interrupted without leaving temporary state
71
+ (like hidden cursors) behind.
72
+
73
+ This class is similar to the progress library's existing SigIntMixin
74
+ helper, but as of version 1.2, that helper has the following problems:
75
+
76
+ 1. It calls sys.exit().
77
+ 2. It discards the existing SIGINT handler completely.
78
+ 3. It leaves its own handler in place even after an uninterrupted finish,
79
+ which will have unexpected delayed effects if the user triggers an
80
+ unrelated keyboard interrupt some time after a progress-displaying
81
+ download has already completed, for example.
82
+ """
83
+
84
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
85
+ """
86
+ Save the original SIGINT handler for later.
87
+ """
88
+ # https://github.com/python/mypy/issues/5887
89
+ super().__init__(*args, **kwargs) # type: ignore
90
+
91
+ self.original_handler = signal(SIGINT, self.handle_sigint)
92
+
93
+ # If signal() returns None, the previous handler was not installed from
94
+ # Python, and we cannot restore it. This probably should not happen,
95
+ # but if it does, we must restore something sensible instead, at least.
96
+ # The least bad option should be Python's default SIGINT handler, which
97
+ # just raises KeyboardInterrupt.
98
+ if self.original_handler is None:
99
+ self.original_handler = default_int_handler
100
+
101
+ def finish(self) -> None:
102
+ """
103
+ Restore the original SIGINT handler after finishing.
104
+
105
+ This should happen regardless of whether the progress display finishes
106
+ normally, or gets interrupted.
107
+ """
108
+ super().finish() # type: ignore
109
+ signal(SIGINT, self.original_handler)
110
+
111
+ def handle_sigint(self, signum, frame): # type: ignore
112
+ """
113
+ Call self.finish() before delegating to the original SIGINT handler.
114
+
115
+ This handler should only be in place while the progress display is
116
+ active.
117
+ """
118
+ self.finish()
119
+ self.original_handler(signum, frame)
120
+
121
+
122
+ class SilentBar(Bar):
123
+ def update(self) -> None:
124
+ pass
125
+
126
+
127
+ class BlueEmojiBar(IncrementalBar):
128
+
129
+ suffix = "%(percent)d%%"
130
+ bar_prefix = " "
131
+ bar_suffix = " "
132
+ phases = ("\U0001F539", "\U0001F537", "\U0001F535")
133
+
134
+
135
+ class DownloadProgressMixin:
136
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
137
+ # https://github.com/python/mypy/issues/5887
138
+ super().__init__(*args, **kwargs) # type: ignore
139
+ self.message: str = (" " * (get_indentation() + 2)) + self.message
140
+
141
+ @property
142
+ def downloaded(self) -> str:
143
+ return format_size(self.index) # type: ignore
144
+
145
+ @property
146
+ def download_speed(self) -> str:
147
+ # Avoid zero division errors...
148
+ if self.avg == 0.0: # type: ignore
149
+ return "..."
150
+ return format_size(1 / self.avg) + "/s" # type: ignore
151
+
152
+ @property
153
+ def pretty_eta(self) -> str:
154
+ if self.eta: # type: ignore
155
+ return f"eta {self.eta_td}" # type: ignore
156
+ return ""
157
+
158
+ def iter(self, it): # type: ignore
159
+ for x in it:
160
+ yield x
161
+ # B305 is incorrectly raised here
162
+ # https://github.com/PyCQA/flake8-bugbear/issues/59
163
+ self.next(len(x)) # noqa: B305
164
+ self.finish()
165
+
166
+
167
+ class WindowsMixin:
168
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
169
+ # The Windows terminal does not support the hide/show cursor ANSI codes
170
+ # even with colorama. So we'll ensure that hide_cursor is False on
171
+ # Windows.
172
+ # This call needs to go before the super() call, so that hide_cursor
173
+ # is set in time. The base progress bar class writes the "hide cursor"
174
+ # code to the terminal in its init, so if we don't set this soon
175
+ # enough, we get a "hide" with no corresponding "show"...
176
+ if WINDOWS and self.hide_cursor: # type: ignore
177
+ self.hide_cursor = False
178
+
179
+ # https://github.com/python/mypy/issues/5887
180
+ super().__init__(*args, **kwargs) # type: ignore
181
+
182
+ # Check if we are running on Windows and we have the colorama module,
183
+ # if we do then wrap our file with it.
184
+ if WINDOWS and colorama:
185
+ self.file = colorama.AnsiToWin32(self.file) # type: ignore
186
+ # The progress code expects to be able to call self.file.isatty()
187
+ # but the colorama.AnsiToWin32() object doesn't have that, so we'll
188
+ # add it.
189
+ self.file.isatty = lambda: self.file.wrapped.isatty()
190
+ # The progress code expects to be able to call self.file.flush()
191
+ # but the colorama.AnsiToWin32() object doesn't have that, so we'll
192
+ # add it.
193
+ self.file.flush = lambda: self.file.wrapped.flush()
194
+
195
+
196
+ class BaseDownloadProgressBar(WindowsMixin, InterruptibleMixin, DownloadProgressMixin):
197
+
198
+ file = sys.stdout
199
+ message = "%(percent)d%%"
200
+ suffix = "%(downloaded)s %(download_speed)s %(pretty_eta)s"
201
+
202
+
203
+ class DefaultDownloadProgressBar(BaseDownloadProgressBar, _BaseBar):
204
+ pass
205
+
206
+
207
+ class DownloadSilentBar(BaseDownloadProgressBar, SilentBar):
208
+ pass
209
+
210
+
211
+ class DownloadBar(BaseDownloadProgressBar, Bar):
212
+ pass
213
+
214
+
215
+ class DownloadFillingCirclesBar(BaseDownloadProgressBar, FillingCirclesBar):
216
+ pass
217
+
218
+
219
+ class DownloadBlueEmojiProgressBar(BaseDownloadProgressBar, BlueEmojiBar):
220
+ pass
221
+
222
+
223
+ class DownloadProgressSpinner(
224
+ WindowsMixin, InterruptibleMixin, DownloadProgressMixin, Spinner
225
+ ):
226
+
227
+ file = sys.stdout
228
+ suffix = "%(downloaded)s %(download_speed)s"
229
+
230
+ def next_phase(self) -> str:
231
+ if not hasattr(self, "_phaser"):
232
+ self._phaser = itertools.cycle(self.phases)
233
+ return next(self._phaser)
234
+
235
+ def update(self) -> None:
236
+ message = self.message % self
237
+ phase = self.next_phase()
238
+ suffix = self.suffix % self
239
+ line = "".join(
240
+ [
241
+ message,
242
+ " " if message else "",
243
+ phase,
244
+ " " if suffix else "",
245
+ suffix,
246
+ ]
247
+ )
248
+
249
+ self.writeln(line)
250
+
251
+
252
+ BAR_TYPES = {
253
+ "off": (DownloadSilentBar, DownloadSilentBar),
254
+ "on": (DefaultDownloadProgressBar, DownloadProgressSpinner),
255
+ "ascii": (DownloadBar, DownloadProgressSpinner),
256
+ "pretty": (DownloadFillingCirclesBar, DownloadProgressSpinner),
257
+ "emoji": (DownloadBlueEmojiProgressBar, DownloadProgressSpinner),
258
+ }
259
+
260
+
261
+ def _legacy_progress_bar(
262
+ progress_bar: str, max: Optional[int]
263
+ ) -> DownloadProgressRenderer:
264
+ if max is None or max == 0:
265
+ return BAR_TYPES[progress_bar][1]().iter # type: ignore
266
+ else:
267
+ return BAR_TYPES[progress_bar][0](max=max).iter
268
+
269
+
270
+ #
271
+ # Modern replacement, for our legacy progress bars.
272
+ #
273
+ def _rich_progress_bar(
274
+ iterable: Iterator[bytes],
275
+ *,
276
+ bar_type: str,
277
+ size: int,
278
+ ) -> Iterator[bytes]:
279
+ assert bar_type == "on", "This should only be used in the default mode."
280
+
281
+ if not size:
282
+ total = float("inf")
283
+ columns: Tuple[ProgressColumn, ...] = (
284
+ TextColumn("[progress.description]{task.description}"),
285
+ SpinnerColumn("line", speed=1.5),
286
+ FileSizeColumn(),
287
+ TransferSpeedColumn(),
288
+ TimeElapsedColumn(),
289
+ )
290
+ else:
291
+ total = size
292
+ columns = (
293
+ TextColumn("[progress.description]{task.description}"),
294
+ BarColumn(),
295
+ DownloadColumn(),
296
+ TransferSpeedColumn(),
297
+ TextColumn("eta"),
298
+ TimeRemainingColumn(),
299
+ )
300
+
301
+ progress = Progress(*columns, refresh_per_second=30)
302
+ task_id = progress.add_task(" " * (get_indentation() + 2), total=total)
303
+ with progress:
304
+ for chunk in iterable:
305
+ yield chunk
306
+ progress.update(task_id, advance=len(chunk))
307
+
308
+
309
+ def get_download_progress_renderer(
310
+ *, bar_type: str, size: Optional[int] = None
311
+ ) -> DownloadProgressRenderer:
312
+ """Get an object that can be used to render the download progress.
313
+
314
+ Returns a callable, that takes an iterable to "wrap".
315
+ """
316
+ if bar_type == "on":
317
+ return functools.partial(_rich_progress_bar, bar_type=bar_type, size=size)
318
+ elif bar_type == "off":
319
+ return iter # no-op, when passed an iterator
320
+ else:
321
+ return _legacy_progress_bar(bar_type, size)
hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/req_command.py ADDED
@@ -0,0 +1,506 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Contains the Command base classes that depend on PipSession.
2
+
3
+ The classes in this module are in a separate module so the commands not
4
+ needing download / PackageFinder capability don't unnecessarily import the
5
+ PackageFinder machinery and all its vendored dependencies, etc.
6
+ """
7
+
8
+ import logging
9
+ import os
10
+ import sys
11
+ from functools import partial
12
+ from optparse import Values
13
+ from typing import Any, List, Optional, Tuple
14
+
15
+ from pip._internal.cache import WheelCache
16
+ from pip._internal.cli import cmdoptions
17
+ from pip._internal.cli.base_command import Command
18
+ from pip._internal.cli.command_context import CommandContextMixIn
19
+ from pip._internal.exceptions import CommandError, PreviousBuildDirError
20
+ from pip._internal.index.collector import LinkCollector
21
+ from pip._internal.index.package_finder import PackageFinder
22
+ from pip._internal.models.selection_prefs import SelectionPreferences
23
+ from pip._internal.models.target_python import TargetPython
24
+ from pip._internal.network.session import PipSession
25
+ from pip._internal.operations.prepare import RequirementPreparer
26
+ from pip._internal.req.constructors import (
27
+ install_req_from_editable,
28
+ install_req_from_line,
29
+ install_req_from_parsed_requirement,
30
+ install_req_from_req_string,
31
+ )
32
+ from pip._internal.req.req_file import parse_requirements
33
+ from pip._internal.req.req_install import InstallRequirement
34
+ from pip._internal.req.req_tracker import RequirementTracker
35
+ from pip._internal.resolution.base import BaseResolver
36
+ from pip._internal.self_outdated_check import pip_self_version_check
37
+ from pip._internal.utils.deprecation import deprecated
38
+ from pip._internal.utils.temp_dir import (
39
+ TempDirectory,
40
+ TempDirectoryTypeRegistry,
41
+ tempdir_kinds,
42
+ )
43
+ from pip._internal.utils.virtualenv import running_under_virtualenv
44
+
45
+ logger = logging.getLogger(__name__)
46
+
47
+
48
+ class SessionCommandMixin(CommandContextMixIn):
49
+
50
+ """
51
+ A class mixin for command classes needing _build_session().
52
+ """
53
+
54
+ def __init__(self) -> None:
55
+ super().__init__()
56
+ self._session: Optional[PipSession] = None
57
+
58
+ @classmethod
59
+ def _get_index_urls(cls, options: Values) -> Optional[List[str]]:
60
+ """Return a list of index urls from user-provided options."""
61
+ index_urls = []
62
+ if not getattr(options, "no_index", False):
63
+ url = getattr(options, "index_url", None)
64
+ if url:
65
+ index_urls.append(url)
66
+ urls = getattr(options, "extra_index_urls", None)
67
+ if urls:
68
+ index_urls.extend(urls)
69
+ # Return None rather than an empty list
70
+ return index_urls or None
71
+
72
+ def get_default_session(self, options: Values) -> PipSession:
73
+ """Get a default-managed session."""
74
+ if self._session is None:
75
+ self._session = self.enter_context(self._build_session(options))
76
+ # there's no type annotation on requests.Session, so it's
77
+ # automatically ContextManager[Any] and self._session becomes Any,
78
+ # then https://github.com/python/mypy/issues/7696 kicks in
79
+ assert self._session is not None
80
+ return self._session
81
+
82
+ def _build_session(
83
+ self,
84
+ options: Values,
85
+ retries: Optional[int] = None,
86
+ timeout: Optional[int] = None,
87
+ ) -> PipSession:
88
+ assert not options.cache_dir or os.path.isabs(options.cache_dir)
89
+ session = PipSession(
90
+ cache=(
91
+ os.path.join(options.cache_dir, "http") if options.cache_dir else None
92
+ ),
93
+ retries=retries if retries is not None else options.retries,
94
+ trusted_hosts=options.trusted_hosts,
95
+ index_urls=self._get_index_urls(options),
96
+ )
97
+
98
+ # Handle custom ca-bundles from the user
99
+ if options.cert:
100
+ session.verify = options.cert
101
+
102
+ # Handle SSL client certificate
103
+ if options.client_cert:
104
+ session.cert = options.client_cert
105
+
106
+ # Handle timeouts
107
+ if options.timeout or timeout:
108
+ session.timeout = timeout if timeout is not None else options.timeout
109
+
110
+ # Handle configured proxies
111
+ if options.proxy:
112
+ session.proxies = {
113
+ "http": options.proxy,
114
+ "https": options.proxy,
115
+ }
116
+
117
+ # Determine if we can prompt the user for authentication or not
118
+ session.auth.prompting = not options.no_input
119
+
120
+ return session
121
+
122
+
123
+ class IndexGroupCommand(Command, SessionCommandMixin):
124
+
125
+ """
126
+ Abstract base class for commands with the index_group options.
127
+
128
+ This also corresponds to the commands that permit the pip version check.
129
+ """
130
+
131
+ def handle_pip_version_check(self, options: Values) -> None:
132
+ """
133
+ Do the pip version check if not disabled.
134
+
135
+ This overrides the default behavior of not doing the check.
136
+ """
137
+ # Make sure the index_group options are present.
138
+ assert hasattr(options, "no_index")
139
+
140
+ if options.disable_pip_version_check or options.no_index:
141
+ return
142
+
143
+ # Otherwise, check if we're using the latest version of pip available.
144
+ session = self._build_session(
145
+ options, retries=0, timeout=min(5, options.timeout)
146
+ )
147
+ with session:
148
+ pip_self_version_check(session, options)
149
+
150
+
151
+ KEEPABLE_TEMPDIR_TYPES = [
152
+ tempdir_kinds.BUILD_ENV,
153
+ tempdir_kinds.EPHEM_WHEEL_CACHE,
154
+ tempdir_kinds.REQ_BUILD,
155
+ ]
156
+
157
+
158
+ def warn_if_run_as_root() -> None:
159
+ """Output a warning for sudo users on Unix.
160
+
161
+ In a virtual environment, sudo pip still writes to virtualenv.
162
+ On Windows, users may run pip as Administrator without issues.
163
+ This warning only applies to Unix root users outside of virtualenv.
164
+ """
165
+ if running_under_virtualenv():
166
+ return
167
+ if not hasattr(os, "getuid"):
168
+ return
169
+ # On Windows, there are no "system managed" Python packages. Installing as
170
+ # Administrator via pip is the correct way of updating system environments.
171
+ #
172
+ # We choose sys.platform over utils.compat.WINDOWS here to enable Mypy platform
173
+ # checks: https://mypy.readthedocs.io/en/stable/common_issues.html
174
+ if sys.platform == "win32" or sys.platform == "cygwin":
175
+ return
176
+
177
+ if os.getuid() != 0:
178
+ return
179
+
180
+ logger.warning(
181
+ "Running pip as the 'root' user can result in broken permissions and "
182
+ "conflicting behaviour with the system package manager. "
183
+ "It is recommended to use a virtual environment instead: "
184
+ "https://pip.pypa.io/warnings/venv"
185
+ )
186
+
187
+
188
+ def with_cleanup(func: Any) -> Any:
189
+ """Decorator for common logic related to managing temporary
190
+ directories.
191
+ """
192
+
193
+ def configure_tempdir_registry(registry: TempDirectoryTypeRegistry) -> None:
194
+ for t in KEEPABLE_TEMPDIR_TYPES:
195
+ registry.set_delete(t, False)
196
+
197
+ def wrapper(
198
+ self: RequirementCommand, options: Values, args: List[Any]
199
+ ) -> Optional[int]:
200
+ assert self.tempdir_registry is not None
201
+ if options.no_clean:
202
+ configure_tempdir_registry(self.tempdir_registry)
203
+
204
+ try:
205
+ return func(self, options, args)
206
+ except PreviousBuildDirError:
207
+ # This kind of conflict can occur when the user passes an explicit
208
+ # build directory with a pre-existing folder. In that case we do
209
+ # not want to accidentally remove it.
210
+ configure_tempdir_registry(self.tempdir_registry)
211
+ raise
212
+
213
+ return wrapper
214
+
215
+
216
+ class RequirementCommand(IndexGroupCommand):
217
+ def __init__(self, *args: Any, **kw: Any) -> None:
218
+ super().__init__(*args, **kw)
219
+
220
+ self.cmd_opts.add_option(cmdoptions.no_clean())
221
+
222
+ @staticmethod
223
+ def determine_resolver_variant(options: Values) -> str:
224
+ """Determines which resolver should be used, based on the given options."""
225
+ if "legacy-resolver" in options.deprecated_features_enabled:
226
+ return "legacy"
227
+
228
+ return "2020-resolver"
229
+
230
+ @staticmethod
231
+ def determine_build_failure_suppression(options: Values) -> bool:
232
+ """Determines whether build failures should be suppressed and backtracked on."""
233
+ if "backtrack-on-build-failures" not in options.deprecated_features_enabled:
234
+ return False
235
+
236
+ if "legacy-resolver" in options.deprecated_features_enabled:
237
+ raise CommandError("Cannot backtrack with legacy resolver.")
238
+
239
+ deprecated(
240
+ reason=(
241
+ "Backtracking on build failures can mask issues related to how "
242
+ "a package generates metadata or builds a wheel. This flag will "
243
+ "be removed in pip 22.2."
244
+ ),
245
+ gone_in=None,
246
+ replacement=(
247
+ "avoiding known-bad versions by explicitly telling pip to ignore them "
248
+ "(either directly as requirements, or via a constraints file)"
249
+ ),
250
+ feature_flag=None,
251
+ issue=10655,
252
+ )
253
+ return True
254
+
255
+ @classmethod
256
+ def make_requirement_preparer(
257
+ cls,
258
+ temp_build_dir: TempDirectory,
259
+ options: Values,
260
+ req_tracker: RequirementTracker,
261
+ session: PipSession,
262
+ finder: PackageFinder,
263
+ use_user_site: bool,
264
+ download_dir: Optional[str] = None,
265
+ verbosity: int = 0,
266
+ ) -> RequirementPreparer:
267
+ """
268
+ Create a RequirementPreparer instance for the given parameters.
269
+ """
270
+ temp_build_dir_path = temp_build_dir.path
271
+ assert temp_build_dir_path is not None
272
+
273
+ resolver_variant = cls.determine_resolver_variant(options)
274
+ if resolver_variant == "2020-resolver":
275
+ lazy_wheel = "fast-deps" in options.features_enabled
276
+ if lazy_wheel:
277
+ logger.warning(
278
+ "pip is using lazily downloaded wheels using HTTP "
279
+ "range requests to obtain dependency information. "
280
+ "This experimental feature is enabled through "
281
+ "--use-feature=fast-deps and it is not ready for "
282
+ "production."
283
+ )
284
+ else:
285
+ lazy_wheel = False
286
+ if "fast-deps" in options.features_enabled:
287
+ logger.warning(
288
+ "fast-deps has no effect when used with the legacy resolver."
289
+ )
290
+
291
+ in_tree_build = "out-of-tree-build" not in options.deprecated_features_enabled
292
+ if "in-tree-build" in options.features_enabled:
293
+ deprecated(
294
+ reason="In-tree builds are now the default.",
295
+ replacement="to remove the --use-feature=in-tree-build flag",
296
+ gone_in="22.1",
297
+ )
298
+ if "out-of-tree-build" in options.deprecated_features_enabled:
299
+ deprecated(
300
+ reason="Out-of-tree builds are deprecated.",
301
+ replacement=None,
302
+ gone_in="22.1",
303
+ )
304
+
305
+ if options.progress_bar not in {"on", "off"}:
306
+ deprecated(
307
+ reason="Custom progress bar styles are deprecated",
308
+ replacement="to use the default progress bar style.",
309
+ gone_in="22.1",
310
+ )
311
+
312
+ return RequirementPreparer(
313
+ build_dir=temp_build_dir_path,
314
+ src_dir=options.src_dir,
315
+ download_dir=download_dir,
316
+ build_isolation=options.build_isolation,
317
+ req_tracker=req_tracker,
318
+ session=session,
319
+ progress_bar=options.progress_bar,
320
+ finder=finder,
321
+ require_hashes=options.require_hashes,
322
+ use_user_site=use_user_site,
323
+ lazy_wheel=lazy_wheel,
324
+ verbosity=verbosity,
325
+ in_tree_build=in_tree_build,
326
+ )
327
+
328
+ @classmethod
329
+ def make_resolver(
330
+ cls,
331
+ preparer: RequirementPreparer,
332
+ finder: PackageFinder,
333
+ options: Values,
334
+ wheel_cache: Optional[WheelCache] = None,
335
+ use_user_site: bool = False,
336
+ ignore_installed: bool = True,
337
+ ignore_requires_python: bool = False,
338
+ force_reinstall: bool = False,
339
+ upgrade_strategy: str = "to-satisfy-only",
340
+ use_pep517: Optional[bool] = None,
341
+ py_version_info: Optional[Tuple[int, ...]] = None,
342
+ ) -> BaseResolver:
343
+ """
344
+ Create a Resolver instance for the given parameters.
345
+ """
346
+ make_install_req = partial(
347
+ install_req_from_req_string,
348
+ isolated=options.isolated_mode,
349
+ use_pep517=use_pep517,
350
+ )
351
+ suppress_build_failures = cls.determine_build_failure_suppression(options)
352
+ resolver_variant = cls.determine_resolver_variant(options)
353
+ # The long import name and duplicated invocation is needed to convince
354
+ # Mypy into correctly typechecking. Otherwise it would complain the
355
+ # "Resolver" class being redefined.
356
+ if resolver_variant == "2020-resolver":
357
+ import pip._internal.resolution.resolvelib.resolver
358
+
359
+ return pip._internal.resolution.resolvelib.resolver.Resolver(
360
+ preparer=preparer,
361
+ finder=finder,
362
+ wheel_cache=wheel_cache,
363
+ make_install_req=make_install_req,
364
+ use_user_site=use_user_site,
365
+ ignore_dependencies=options.ignore_dependencies,
366
+ ignore_installed=ignore_installed,
367
+ ignore_requires_python=ignore_requires_python,
368
+ force_reinstall=force_reinstall,
369
+ upgrade_strategy=upgrade_strategy,
370
+ py_version_info=py_version_info,
371
+ suppress_build_failures=suppress_build_failures,
372
+ )
373
+ import pip._internal.resolution.legacy.resolver
374
+
375
+ return pip._internal.resolution.legacy.resolver.Resolver(
376
+ preparer=preparer,
377
+ finder=finder,
378
+ wheel_cache=wheel_cache,
379
+ make_install_req=make_install_req,
380
+ use_user_site=use_user_site,
381
+ ignore_dependencies=options.ignore_dependencies,
382
+ ignore_installed=ignore_installed,
383
+ ignore_requires_python=ignore_requires_python,
384
+ force_reinstall=force_reinstall,
385
+ upgrade_strategy=upgrade_strategy,
386
+ py_version_info=py_version_info,
387
+ )
388
+
389
+ def get_requirements(
390
+ self,
391
+ args: List[str],
392
+ options: Values,
393
+ finder: PackageFinder,
394
+ session: PipSession,
395
+ ) -> List[InstallRequirement]:
396
+ """
397
+ Parse command-line arguments into the corresponding requirements.
398
+ """
399
+ requirements: List[InstallRequirement] = []
400
+ for filename in options.constraints:
401
+ for parsed_req in parse_requirements(
402
+ filename,
403
+ constraint=True,
404
+ finder=finder,
405
+ options=options,
406
+ session=session,
407
+ ):
408
+ req_to_add = install_req_from_parsed_requirement(
409
+ parsed_req,
410
+ isolated=options.isolated_mode,
411
+ user_supplied=False,
412
+ )
413
+ requirements.append(req_to_add)
414
+
415
+ for req in args:
416
+ req_to_add = install_req_from_line(
417
+ req,
418
+ None,
419
+ isolated=options.isolated_mode,
420
+ use_pep517=options.use_pep517,
421
+ user_supplied=True,
422
+ )
423
+ requirements.append(req_to_add)
424
+
425
+ for req in options.editables:
426
+ req_to_add = install_req_from_editable(
427
+ req,
428
+ user_supplied=True,
429
+ isolated=options.isolated_mode,
430
+ use_pep517=options.use_pep517,
431
+ )
432
+ requirements.append(req_to_add)
433
+
434
+ # NOTE: options.require_hashes may be set if --require-hashes is True
435
+ for filename in options.requirements:
436
+ for parsed_req in parse_requirements(
437
+ filename, finder=finder, options=options, session=session
438
+ ):
439
+ req_to_add = install_req_from_parsed_requirement(
440
+ parsed_req,
441
+ isolated=options.isolated_mode,
442
+ use_pep517=options.use_pep517,
443
+ user_supplied=True,
444
+ )
445
+ requirements.append(req_to_add)
446
+
447
+ # If any requirement has hash options, enable hash checking.
448
+ if any(req.has_hash_options for req in requirements):
449
+ options.require_hashes = True
450
+
451
+ if not (args or options.editables or options.requirements):
452
+ opts = {"name": self.name}
453
+ if options.find_links:
454
+ raise CommandError(
455
+ "You must give at least one requirement to {name} "
456
+ '(maybe you meant "pip {name} {links}"?)'.format(
457
+ **dict(opts, links=" ".join(options.find_links))
458
+ )
459
+ )
460
+ else:
461
+ raise CommandError(
462
+ "You must give at least one requirement to {name} "
463
+ '(see "pip help {name}")'.format(**opts)
464
+ )
465
+
466
+ return requirements
467
+
468
+ @staticmethod
469
+ def trace_basic_info(finder: PackageFinder) -> None:
470
+ """
471
+ Trace basic information about the provided objects.
472
+ """
473
+ # Display where finder is looking for packages
474
+ search_scope = finder.search_scope
475
+ locations = search_scope.get_formatted_locations()
476
+ if locations:
477
+ logger.info(locations)
478
+
479
+ def _build_package_finder(
480
+ self,
481
+ options: Values,
482
+ session: PipSession,
483
+ target_python: Optional[TargetPython] = None,
484
+ ignore_requires_python: Optional[bool] = None,
485
+ ) -> PackageFinder:
486
+ """
487
+ Create a package finder appropriate to this requirement command.
488
+
489
+ :param ignore_requires_python: Whether to ignore incompatible
490
+ "Requires-Python" values in links. Defaults to False.
491
+ """
492
+ link_collector = LinkCollector.create(session, options=options)
493
+ selection_prefs = SelectionPreferences(
494
+ allow_yanked=True,
495
+ format_control=options.format_control,
496
+ allow_all_prereleases=options.pre,
497
+ prefer_binary=options.prefer_binary,
498
+ ignore_requires_python=ignore_requires_python,
499
+ )
500
+
501
+ return PackageFinder.create(
502
+ link_collector=link_collector,
503
+ selection_prefs=selection_prefs,
504
+ target_python=target_python,
505
+ use_deprecated_html5lib="html5lib" in options.deprecated_features_enabled,
506
+ )
hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/spinners.py ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import contextlib
2
+ import itertools
3
+ import logging
4
+ import sys
5
+ import time
6
+ from typing import IO, Iterator
7
+
8
+ from pip._vendor.progress import HIDE_CURSOR, SHOW_CURSOR
9
+
10
+ from pip._internal.utils.compat import WINDOWS
11
+ from pip._internal.utils.logging import get_indentation
12
+
13
+ logger = logging.getLogger(__name__)
14
+
15
+
16
+ class SpinnerInterface:
17
+ def spin(self) -> None:
18
+ raise NotImplementedError()
19
+
20
+ def finish(self, final_status: str) -> None:
21
+ raise NotImplementedError()
22
+
23
+
24
+ class InteractiveSpinner(SpinnerInterface):
25
+ def __init__(
26
+ self,
27
+ message: str,
28
+ file: IO[str] = None,
29
+ spin_chars: str = "-\\|/",
30
+ # Empirically, 8 updates/second looks nice
31
+ min_update_interval_seconds: float = 0.125,
32
+ ):
33
+ self._message = message
34
+ if file is None:
35
+ file = sys.stdout
36
+ self._file = file
37
+ self._rate_limiter = RateLimiter(min_update_interval_seconds)
38
+ self._finished = False
39
+
40
+ self._spin_cycle = itertools.cycle(spin_chars)
41
+
42
+ self._file.write(" " * get_indentation() + self._message + " ... ")
43
+ self._width = 0
44
+
45
+ def _write(self, status: str) -> None:
46
+ assert not self._finished
47
+ # Erase what we wrote before by backspacing to the beginning, writing
48
+ # spaces to overwrite the old text, and then backspacing again
49
+ backup = "\b" * self._width
50
+ self._file.write(backup + " " * self._width + backup)
51
+ # Now we have a blank slate to add our status
52
+ self._file.write(status)
53
+ self._width = len(status)
54
+ self._file.flush()
55
+ self._rate_limiter.reset()
56
+
57
+ def spin(self) -> None:
58
+ if self._finished:
59
+ return
60
+ if not self._rate_limiter.ready():
61
+ return
62
+ self._write(next(self._spin_cycle))
63
+
64
+ def finish(self, final_status: str) -> None:
65
+ if self._finished:
66
+ return
67
+ self._write(final_status)
68
+ self._file.write("\n")
69
+ self._file.flush()
70
+ self._finished = True
71
+
72
+
73
+ # Used for dumb terminals, non-interactive installs (no tty), etc.
74
+ # We still print updates occasionally (once every 60 seconds by default) to
75
+ # act as a keep-alive for systems like Travis-CI that take lack-of-output as
76
+ # an indication that a task has frozen.
77
+ class NonInteractiveSpinner(SpinnerInterface):
78
+ def __init__(self, message: str, min_update_interval_seconds: float = 60.0) -> None:
79
+ self._message = message
80
+ self._finished = False
81
+ self._rate_limiter = RateLimiter(min_update_interval_seconds)
82
+ self._update("started")
83
+
84
+ def _update(self, status: str) -> None:
85
+ assert not self._finished
86
+ self._rate_limiter.reset()
87
+ logger.info("%s: %s", self._message, status)
88
+
89
+ def spin(self) -> None:
90
+ if self._finished:
91
+ return
92
+ if not self._rate_limiter.ready():
93
+ return
94
+ self._update("still running...")
95
+
96
+ def finish(self, final_status: str) -> None:
97
+ if self._finished:
98
+ return
99
+ self._update(f"finished with status '{final_status}'")
100
+ self._finished = True
101
+
102
+
103
+ class RateLimiter:
104
+ def __init__(self, min_update_interval_seconds: float) -> None:
105
+ self._min_update_interval_seconds = min_update_interval_seconds
106
+ self._last_update: float = 0
107
+
108
+ def ready(self) -> bool:
109
+ now = time.time()
110
+ delta = now - self._last_update
111
+ return delta >= self._min_update_interval_seconds
112
+
113
+ def reset(self) -> None:
114
+ self._last_update = time.time()
115
+
116
+
117
+ @contextlib.contextmanager
118
+ def open_spinner(message: str) -> Iterator[SpinnerInterface]:
119
+ # Interactive spinner goes directly to sys.stdout rather than being routed
120
+ # through the logging system, but it acts like it has level INFO,
121
+ # i.e. it's only displayed if we're at level INFO or better.
122
+ # Non-interactive spinner goes through the logging system, so it is always
123
+ # in sync with logging configuration.
124
+ if sys.stdout.isatty() and logger.getEffectiveLevel() <= logging.INFO:
125
+ spinner: SpinnerInterface = InteractiveSpinner(message)
126
+ else:
127
+ spinner = NonInteractiveSpinner(message)
128
+ try:
129
+ with hidden_cursor(sys.stdout):
130
+ yield spinner
131
+ except KeyboardInterrupt:
132
+ spinner.finish("canceled")
133
+ raise
134
+ except Exception:
135
+ spinner.finish("error")
136
+ raise
137
+ else:
138
+ spinner.finish("done")
139
+
140
+
141
+ @contextlib.contextmanager
142
+ def hidden_cursor(file: IO[str]) -> Iterator[None]:
143
+ # The Windows terminal does not support the hide/show cursor ANSI codes,
144
+ # even via colorama. So don't even try.
145
+ if WINDOWS:
146
+ yield
147
+ # We don't want to clutter the output with control characters if we're
148
+ # writing to a file, or if the user is running with --quiet.
149
+ # See https://github.com/pypa/pip/issues/3418
150
+ elif not file.isatty() or logger.getEffectiveLevel() > logging.INFO:
151
+ yield
152
+ else:
153
+ file.write(HIDE_CURSOR)
154
+ try:
155
+ yield
156
+ finally:
157
+ file.write(SHOW_CURSOR)
hfacevenv/lib/python3.9/site-packages/pip/_internal/cli/status_codes.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ SUCCESS = 0
2
+ ERROR = 1
3
+ UNKNOWN_ERROR = 2
4
+ VIRTUALENV_NOT_FOUND = 3
5
+ PREVIOUS_BUILD_DIR_ERROR = 4
6
+ NO_MATCHES_FOUND = 23
hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/__init__.py ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Package containing all pip commands
3
+ """
4
+
5
+ import importlib
6
+ from collections import namedtuple
7
+ from typing import Any, Dict, Optional
8
+
9
+ from pip._internal.cli.base_command import Command
10
+
11
+ CommandInfo = namedtuple("CommandInfo", "module_path, class_name, summary")
12
+
13
+ # This dictionary does a bunch of heavy lifting for help output:
14
+ # - Enables avoiding additional (costly) imports for presenting `--help`.
15
+ # - The ordering matters for help display.
16
+ #
17
+ # Even though the module path starts with the same "pip._internal.commands"
18
+ # prefix, the full path makes testing easier (specifically when modifying
19
+ # `commands_dict` in test setup / teardown).
20
+ commands_dict: Dict[str, CommandInfo] = {
21
+ "install": CommandInfo(
22
+ "pip._internal.commands.install",
23
+ "InstallCommand",
24
+ "Install packages.",
25
+ ),
26
+ "download": CommandInfo(
27
+ "pip._internal.commands.download",
28
+ "DownloadCommand",
29
+ "Download packages.",
30
+ ),
31
+ "uninstall": CommandInfo(
32
+ "pip._internal.commands.uninstall",
33
+ "UninstallCommand",
34
+ "Uninstall packages.",
35
+ ),
36
+ "freeze": CommandInfo(
37
+ "pip._internal.commands.freeze",
38
+ "FreezeCommand",
39
+ "Output installed packages in requirements format.",
40
+ ),
41
+ "list": CommandInfo(
42
+ "pip._internal.commands.list",
43
+ "ListCommand",
44
+ "List installed packages.",
45
+ ),
46
+ "show": CommandInfo(
47
+ "pip._internal.commands.show",
48
+ "ShowCommand",
49
+ "Show information about installed packages.",
50
+ ),
51
+ "check": CommandInfo(
52
+ "pip._internal.commands.check",
53
+ "CheckCommand",
54
+ "Verify installed packages have compatible dependencies.",
55
+ ),
56
+ "config": CommandInfo(
57
+ "pip._internal.commands.configuration",
58
+ "ConfigurationCommand",
59
+ "Manage local and global configuration.",
60
+ ),
61
+ "search": CommandInfo(
62
+ "pip._internal.commands.search",
63
+ "SearchCommand",
64
+ "Search PyPI for packages.",
65
+ ),
66
+ "cache": CommandInfo(
67
+ "pip._internal.commands.cache",
68
+ "CacheCommand",
69
+ "Inspect and manage pip's wheel cache.",
70
+ ),
71
+ "index": CommandInfo(
72
+ "pip._internal.commands.index",
73
+ "IndexCommand",
74
+ "Inspect information available from package indexes.",
75
+ ),
76
+ "wheel": CommandInfo(
77
+ "pip._internal.commands.wheel",
78
+ "WheelCommand",
79
+ "Build wheels from your requirements.",
80
+ ),
81
+ "hash": CommandInfo(
82
+ "pip._internal.commands.hash",
83
+ "HashCommand",
84
+ "Compute hashes of package archives.",
85
+ ),
86
+ "completion": CommandInfo(
87
+ "pip._internal.commands.completion",
88
+ "CompletionCommand",
89
+ "A helper command used for command completion.",
90
+ ),
91
+ "debug": CommandInfo(
92
+ "pip._internal.commands.debug",
93
+ "DebugCommand",
94
+ "Show information useful for debugging.",
95
+ ),
96
+ "help": CommandInfo(
97
+ "pip._internal.commands.help",
98
+ "HelpCommand",
99
+ "Show help for commands.",
100
+ ),
101
+ }
102
+
103
+
104
+ def create_command(name: str, **kwargs: Any) -> Command:
105
+ """
106
+ Create an instance of the Command class with the given name.
107
+ """
108
+ module_path, class_name, summary = commands_dict[name]
109
+ module = importlib.import_module(module_path)
110
+ command_class = getattr(module, class_name)
111
+ command = command_class(name=name, summary=summary, **kwargs)
112
+
113
+ return command
114
+
115
+
116
+ def get_similar_commands(name: str) -> Optional[str]:
117
+ """Command name auto-correct."""
118
+ from difflib import get_close_matches
119
+
120
+ name = name.lower()
121
+
122
+ close_commands = get_close_matches(name, commands_dict.keys())
123
+
124
+ if close_commands:
125
+ return close_commands[0]
126
+ else:
127
+ return None
hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/cache.py ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import textwrap
3
+ from optparse import Values
4
+ from typing import Any, List
5
+
6
+ import pip._internal.utils.filesystem as filesystem
7
+ from pip._internal.cli.base_command import Command
8
+ from pip._internal.cli.status_codes import ERROR, SUCCESS
9
+ from pip._internal.exceptions import CommandError, PipError
10
+ from pip._internal.utils.logging import getLogger
11
+
12
+ logger = getLogger(__name__)
13
+
14
+
15
+ class CacheCommand(Command):
16
+ """
17
+ Inspect and manage pip's wheel cache.
18
+
19
+ Subcommands:
20
+
21
+ - dir: Show the cache directory.
22
+ - info: Show information about the cache.
23
+ - list: List filenames of packages stored in the cache.
24
+ - remove: Remove one or more package from the cache.
25
+ - purge: Remove all items from the cache.
26
+
27
+ ``<pattern>`` can be a glob expression or a package name.
28
+ """
29
+
30
+ ignore_require_venv = True
31
+ usage = """
32
+ %prog dir
33
+ %prog info
34
+ %prog list [<pattern>] [--format=[human, abspath]]
35
+ %prog remove <pattern>
36
+ %prog purge
37
+ """
38
+
39
+ def add_options(self) -> None:
40
+
41
+ self.cmd_opts.add_option(
42
+ "--format",
43
+ action="store",
44
+ dest="list_format",
45
+ default="human",
46
+ choices=("human", "abspath"),
47
+ help="Select the output format among: human (default) or abspath",
48
+ )
49
+
50
+ self.parser.insert_option_group(0, self.cmd_opts)
51
+
52
+ def run(self, options: Values, args: List[str]) -> int:
53
+ handlers = {
54
+ "dir": self.get_cache_dir,
55
+ "info": self.get_cache_info,
56
+ "list": self.list_cache_items,
57
+ "remove": self.remove_cache_items,
58
+ "purge": self.purge_cache,
59
+ }
60
+
61
+ if not options.cache_dir:
62
+ logger.error("pip cache commands can not function since cache is disabled.")
63
+ return ERROR
64
+
65
+ # Determine action
66
+ if not args or args[0] not in handlers:
67
+ logger.error(
68
+ "Need an action (%s) to perform.",
69
+ ", ".join(sorted(handlers)),
70
+ )
71
+ return ERROR
72
+
73
+ action = args[0]
74
+
75
+ # Error handling happens here, not in the action-handlers.
76
+ try:
77
+ handlers[action](options, args[1:])
78
+ except PipError as e:
79
+ logger.error(e.args[0])
80
+ return ERROR
81
+
82
+ return SUCCESS
83
+
84
+ def get_cache_dir(self, options: Values, args: List[Any]) -> None:
85
+ if args:
86
+ raise CommandError("Too many arguments")
87
+
88
+ logger.info(options.cache_dir)
89
+
90
+ def get_cache_info(self, options: Values, args: List[Any]) -> None:
91
+ if args:
92
+ raise CommandError("Too many arguments")
93
+
94
+ num_http_files = len(self._find_http_files(options))
95
+ num_packages = len(self._find_wheels(options, "*"))
96
+
97
+ http_cache_location = self._cache_dir(options, "http")
98
+ wheels_cache_location = self._cache_dir(options, "wheels")
99
+ http_cache_size = filesystem.format_directory_size(http_cache_location)
100
+ wheels_cache_size = filesystem.format_directory_size(wheels_cache_location)
101
+
102
+ message = (
103
+ textwrap.dedent(
104
+ """
105
+ Package index page cache location: {http_cache_location}
106
+ Package index page cache size: {http_cache_size}
107
+ Number of HTTP files: {num_http_files}
108
+ Wheels location: {wheels_cache_location}
109
+ Wheels size: {wheels_cache_size}
110
+ Number of wheels: {package_count}
111
+ """
112
+ )
113
+ .format(
114
+ http_cache_location=http_cache_location,
115
+ http_cache_size=http_cache_size,
116
+ num_http_files=num_http_files,
117
+ wheels_cache_location=wheels_cache_location,
118
+ package_count=num_packages,
119
+ wheels_cache_size=wheels_cache_size,
120
+ )
121
+ .strip()
122
+ )
123
+
124
+ logger.info(message)
125
+
126
+ def list_cache_items(self, options: Values, args: List[Any]) -> None:
127
+ if len(args) > 1:
128
+ raise CommandError("Too many arguments")
129
+
130
+ if args:
131
+ pattern = args[0]
132
+ else:
133
+ pattern = "*"
134
+
135
+ files = self._find_wheels(options, pattern)
136
+ if options.list_format == "human":
137
+ self.format_for_human(files)
138
+ else:
139
+ self.format_for_abspath(files)
140
+
141
+ def format_for_human(self, files: List[str]) -> None:
142
+ if not files:
143
+ logger.info("Nothing cached.")
144
+ return
145
+
146
+ results = []
147
+ for filename in files:
148
+ wheel = os.path.basename(filename)
149
+ size = filesystem.format_file_size(filename)
150
+ results.append(f" - {wheel} ({size})")
151
+ logger.info("Cache contents:\n")
152
+ logger.info("\n".join(sorted(results)))
153
+
154
+ def format_for_abspath(self, files: List[str]) -> None:
155
+ if not files:
156
+ return
157
+
158
+ results = []
159
+ for filename in files:
160
+ results.append(filename)
161
+
162
+ logger.info("\n".join(sorted(results)))
163
+
164
+ def remove_cache_items(self, options: Values, args: List[Any]) -> None:
165
+ if len(args) > 1:
166
+ raise CommandError("Too many arguments")
167
+
168
+ if not args:
169
+ raise CommandError("Please provide a pattern")
170
+
171
+ files = self._find_wheels(options, args[0])
172
+
173
+ no_matching_msg = "No matching packages"
174
+ if args[0] == "*":
175
+ # Only fetch http files if no specific pattern given
176
+ files += self._find_http_files(options)
177
+ else:
178
+ # Add the pattern to the log message
179
+ no_matching_msg += ' for pattern "{}"'.format(args[0])
180
+
181
+ if not files:
182
+ logger.warning(no_matching_msg)
183
+
184
+ for filename in files:
185
+ os.unlink(filename)
186
+ logger.verbose("Removed %s", filename)
187
+ logger.info("Files removed: %s", len(files))
188
+
189
+ def purge_cache(self, options: Values, args: List[Any]) -> None:
190
+ if args:
191
+ raise CommandError("Too many arguments")
192
+
193
+ return self.remove_cache_items(options, ["*"])
194
+
195
+ def _cache_dir(self, options: Values, subdir: str) -> str:
196
+ return os.path.join(options.cache_dir, subdir)
197
+
198
+ def _find_http_files(self, options: Values) -> List[str]:
199
+ http_dir = self._cache_dir(options, "http")
200
+ return filesystem.find_files(http_dir, "*")
201
+
202
+ def _find_wheels(self, options: Values, pattern: str) -> List[str]:
203
+ wheel_dir = self._cache_dir(options, "wheels")
204
+
205
+ # The wheel filename format, as specified in PEP 427, is:
206
+ # {distribution}-{version}(-{build})?-{python}-{abi}-{platform}.whl
207
+ #
208
+ # Additionally, non-alphanumeric values in the distribution are
209
+ # normalized to underscores (_), meaning hyphens can never occur
210
+ # before `-{version}`.
211
+ #
212
+ # Given that information:
213
+ # - If the pattern we're given contains a hyphen (-), the user is
214
+ # providing at least the version. Thus, we can just append `*.whl`
215
+ # to match the rest of it.
216
+ # - If the pattern we're given doesn't contain a hyphen (-), the
217
+ # user is only providing the name. Thus, we append `-*.whl` to
218
+ # match the hyphen before the version, followed by anything else.
219
+ #
220
+ # PEP 427: https://www.python.org/dev/peps/pep-0427/
221
+ pattern = pattern + ("*.whl" if "-" in pattern else "-*.whl")
222
+
223
+ return filesystem.find_files(wheel_dir, pattern)
hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/check.py ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import logging
2
+ from optparse import Values
3
+ from typing import List
4
+
5
+ from pip._internal.cli.base_command import Command
6
+ from pip._internal.cli.status_codes import ERROR, SUCCESS
7
+ from pip._internal.operations.check import (
8
+ check_package_set,
9
+ create_package_set_from_installed,
10
+ )
11
+ from pip._internal.utils.misc import write_output
12
+
13
+ logger = logging.getLogger(__name__)
14
+
15
+
16
+ class CheckCommand(Command):
17
+ """Verify installed packages have compatible dependencies."""
18
+
19
+ usage = """
20
+ %prog [options]"""
21
+
22
+ def run(self, options: Values, args: List[str]) -> int:
23
+
24
+ package_set, parsing_probs = create_package_set_from_installed()
25
+ missing, conflicting = check_package_set(package_set)
26
+
27
+ for project_name in missing:
28
+ version = package_set[project_name].version
29
+ for dependency in missing[project_name]:
30
+ write_output(
31
+ "%s %s requires %s, which is not installed.",
32
+ project_name,
33
+ version,
34
+ dependency[0],
35
+ )
36
+
37
+ for project_name in conflicting:
38
+ version = package_set[project_name].version
39
+ for dep_name, dep_version, req in conflicting[project_name]:
40
+ write_output(
41
+ "%s %s has requirement %s, but you have %s %s.",
42
+ project_name,
43
+ version,
44
+ req,
45
+ dep_name,
46
+ dep_version,
47
+ )
48
+
49
+ if missing or conflicting or parsing_probs:
50
+ return ERROR
51
+ else:
52
+ write_output("No broken requirements found.")
53
+ return SUCCESS
hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/completion.py ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ import textwrap
3
+ from optparse import Values
4
+ from typing import List
5
+
6
+ from pip._internal.cli.base_command import Command
7
+ from pip._internal.cli.status_codes import SUCCESS
8
+ from pip._internal.utils.misc import get_prog
9
+
10
+ BASE_COMPLETION = """
11
+ # pip {shell} completion start{script}# pip {shell} completion end
12
+ """
13
+
14
+ COMPLETION_SCRIPTS = {
15
+ "bash": """
16
+ _pip_completion()
17
+ {{
18
+ COMPREPLY=( $( COMP_WORDS="${{COMP_WORDS[*]}}" \\
19
+ COMP_CWORD=$COMP_CWORD \\
20
+ PIP_AUTO_COMPLETE=1 $1 2>/dev/null ) )
21
+ }}
22
+ complete -o default -F _pip_completion {prog}
23
+ """,
24
+ "zsh": """
25
+ function _pip_completion {{
26
+ local words cword
27
+ read -Ac words
28
+ read -cn cword
29
+ reply=( $( COMP_WORDS="$words[*]" \\
30
+ COMP_CWORD=$(( cword-1 )) \\
31
+ PIP_AUTO_COMPLETE=1 $words[1] 2>/dev/null ))
32
+ }}
33
+ compctl -K _pip_completion {prog}
34
+ """,
35
+ "fish": """
36
+ function __fish_complete_pip
37
+ set -lx COMP_WORDS (commandline -o) ""
38
+ set -lx COMP_CWORD ( \\
39
+ math (contains -i -- (commandline -t) $COMP_WORDS)-1 \\
40
+ )
41
+ set -lx PIP_AUTO_COMPLETE 1
42
+ string split \\ -- (eval $COMP_WORDS[1])
43
+ end
44
+ complete -fa "(__fish_complete_pip)" -c {prog}
45
+ """,
46
+ }
47
+
48
+
49
+ class CompletionCommand(Command):
50
+ """A helper command to be used for command completion."""
51
+
52
+ ignore_require_venv = True
53
+
54
+ def add_options(self) -> None:
55
+ self.cmd_opts.add_option(
56
+ "--bash",
57
+ "-b",
58
+ action="store_const",
59
+ const="bash",
60
+ dest="shell",
61
+ help="Emit completion code for bash",
62
+ )
63
+ self.cmd_opts.add_option(
64
+ "--zsh",
65
+ "-z",
66
+ action="store_const",
67
+ const="zsh",
68
+ dest="shell",
69
+ help="Emit completion code for zsh",
70
+ )
71
+ self.cmd_opts.add_option(
72
+ "--fish",
73
+ "-f",
74
+ action="store_const",
75
+ const="fish",
76
+ dest="shell",
77
+ help="Emit completion code for fish",
78
+ )
79
+
80
+ self.parser.insert_option_group(0, self.cmd_opts)
81
+
82
+ def run(self, options: Values, args: List[str]) -> int:
83
+ """Prints the completion code of the given shell"""
84
+ shells = COMPLETION_SCRIPTS.keys()
85
+ shell_options = ["--" + shell for shell in sorted(shells)]
86
+ if options.shell in shells:
87
+ script = textwrap.dedent(
88
+ COMPLETION_SCRIPTS.get(options.shell, "").format(prog=get_prog())
89
+ )
90
+ print(BASE_COMPLETION.format(script=script, shell=options.shell))
91
+ return SUCCESS
92
+ else:
93
+ sys.stderr.write(
94
+ "ERROR: You must pass {}\n".format(" or ".join(shell_options))
95
+ )
96
+ return SUCCESS
hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/configuration.py ADDED
@@ -0,0 +1,266 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import logging
2
+ import os
3
+ import subprocess
4
+ from optparse import Values
5
+ from typing import Any, List, Optional
6
+
7
+ from pip._internal.cli.base_command import Command
8
+ from pip._internal.cli.status_codes import ERROR, SUCCESS
9
+ from pip._internal.configuration import (
10
+ Configuration,
11
+ Kind,
12
+ get_configuration_files,
13
+ kinds,
14
+ )
15
+ from pip._internal.exceptions import PipError
16
+ from pip._internal.utils.logging import indent_log
17
+ from pip._internal.utils.misc import get_prog, write_output
18
+
19
+ logger = logging.getLogger(__name__)
20
+
21
+
22
+ class ConfigurationCommand(Command):
23
+ """
24
+ Manage local and global configuration.
25
+
26
+ Subcommands:
27
+
28
+ - list: List the active configuration (or from the file specified)
29
+ - edit: Edit the configuration file in an editor
30
+ - get: Get the value associated with name
31
+ - set: Set the name=value
32
+ - unset: Unset the value associated with name
33
+ - debug: List the configuration files and values defined under them
34
+
35
+ If none of --user, --global and --site are passed, a virtual
36
+ environment configuration file is used if one is active and the file
37
+ exists. Otherwise, all modifications happen to the user file by
38
+ default.
39
+ """
40
+
41
+ ignore_require_venv = True
42
+ usage = """
43
+ %prog [<file-option>] list
44
+ %prog [<file-option>] [--editor <editor-path>] edit
45
+
46
+ %prog [<file-option>] get name
47
+ %prog [<file-option>] set name value
48
+ %prog [<file-option>] unset name
49
+ %prog [<file-option>] debug
50
+ """
51
+
52
+ def add_options(self) -> None:
53
+ self.cmd_opts.add_option(
54
+ "--editor",
55
+ dest="editor",
56
+ action="store",
57
+ default=None,
58
+ help=(
59
+ "Editor to use to edit the file. Uses VISUAL or EDITOR "
60
+ "environment variables if not provided."
61
+ ),
62
+ )
63
+
64
+ self.cmd_opts.add_option(
65
+ "--global",
66
+ dest="global_file",
67
+ action="store_true",
68
+ default=False,
69
+ help="Use the system-wide configuration file only",
70
+ )
71
+
72
+ self.cmd_opts.add_option(
73
+ "--user",
74
+ dest="user_file",
75
+ action="store_true",
76
+ default=False,
77
+ help="Use the user configuration file only",
78
+ )
79
+
80
+ self.cmd_opts.add_option(
81
+ "--site",
82
+ dest="site_file",
83
+ action="store_true",
84
+ default=False,
85
+ help="Use the current environment configuration file only",
86
+ )
87
+
88
+ self.parser.insert_option_group(0, self.cmd_opts)
89
+
90
+ def run(self, options: Values, args: List[str]) -> int:
91
+ handlers = {
92
+ "list": self.list_values,
93
+ "edit": self.open_in_editor,
94
+ "get": self.get_name,
95
+ "set": self.set_name_value,
96
+ "unset": self.unset_name,
97
+ "debug": self.list_config_values,
98
+ }
99
+
100
+ # Determine action
101
+ if not args or args[0] not in handlers:
102
+ logger.error(
103
+ "Need an action (%s) to perform.",
104
+ ", ".join(sorted(handlers)),
105
+ )
106
+ return ERROR
107
+
108
+ action = args[0]
109
+
110
+ # Determine which configuration files are to be loaded
111
+ # Depends on whether the command is modifying.
112
+ try:
113
+ load_only = self._determine_file(
114
+ options, need_value=(action in ["get", "set", "unset", "edit"])
115
+ )
116
+ except PipError as e:
117
+ logger.error(e.args[0])
118
+ return ERROR
119
+
120
+ # Load a new configuration
121
+ self.configuration = Configuration(
122
+ isolated=options.isolated_mode, load_only=load_only
123
+ )
124
+ self.configuration.load()
125
+
126
+ # Error handling happens here, not in the action-handlers.
127
+ try:
128
+ handlers[action](options, args[1:])
129
+ except PipError as e:
130
+ logger.error(e.args[0])
131
+ return ERROR
132
+
133
+ return SUCCESS
134
+
135
+ def _determine_file(self, options: Values, need_value: bool) -> Optional[Kind]:
136
+ file_options = [
137
+ key
138
+ for key, value in (
139
+ (kinds.USER, options.user_file),
140
+ (kinds.GLOBAL, options.global_file),
141
+ (kinds.SITE, options.site_file),
142
+ )
143
+ if value
144
+ ]
145
+
146
+ if not file_options:
147
+ if not need_value:
148
+ return None
149
+ # Default to user, unless there's a site file.
150
+ elif any(
151
+ os.path.exists(site_config_file)
152
+ for site_config_file in get_configuration_files()[kinds.SITE]
153
+ ):
154
+ return kinds.SITE
155
+ else:
156
+ return kinds.USER
157
+ elif len(file_options) == 1:
158
+ return file_options[0]
159
+
160
+ raise PipError(
161
+ "Need exactly one file to operate upon "
162
+ "(--user, --site, --global) to perform."
163
+ )
164
+
165
+ def list_values(self, options: Values, args: List[str]) -> None:
166
+ self._get_n_args(args, "list", n=0)
167
+
168
+ for key, value in sorted(self.configuration.items()):
169
+ write_output("%s=%r", key, value)
170
+
171
+ def get_name(self, options: Values, args: List[str]) -> None:
172
+ key = self._get_n_args(args, "get [name]", n=1)
173
+ value = self.configuration.get_value(key)
174
+
175
+ write_output("%s", value)
176
+
177
+ def set_name_value(self, options: Values, args: List[str]) -> None:
178
+ key, value = self._get_n_args(args, "set [name] [value]", n=2)
179
+ self.configuration.set_value(key, value)
180
+
181
+ self._save_configuration()
182
+
183
+ def unset_name(self, options: Values, args: List[str]) -> None:
184
+ key = self._get_n_args(args, "unset [name]", n=1)
185
+ self.configuration.unset_value(key)
186
+
187
+ self._save_configuration()
188
+
189
+ def list_config_values(self, options: Values, args: List[str]) -> None:
190
+ """List config key-value pairs across different config files"""
191
+ self._get_n_args(args, "debug", n=0)
192
+
193
+ self.print_env_var_values()
194
+ # Iterate over config files and print if they exist, and the
195
+ # key-value pairs present in them if they do
196
+ for variant, files in sorted(self.configuration.iter_config_files()):
197
+ write_output("%s:", variant)
198
+ for fname in files:
199
+ with indent_log():
200
+ file_exists = os.path.exists(fname)
201
+ write_output("%s, exists: %r", fname, file_exists)
202
+ if file_exists:
203
+ self.print_config_file_values(variant)
204
+
205
+ def print_config_file_values(self, variant: Kind) -> None:
206
+ """Get key-value pairs from the file of a variant"""
207
+ for name, value in self.configuration.get_values_in_config(variant).items():
208
+ with indent_log():
209
+ write_output("%s: %s", name, value)
210
+
211
+ def print_env_var_values(self) -> None:
212
+ """Get key-values pairs present as environment variables"""
213
+ write_output("%s:", "env_var")
214
+ with indent_log():
215
+ for key, value in sorted(self.configuration.get_environ_vars()):
216
+ env_var = f"PIP_{key.upper()}"
217
+ write_output("%s=%r", env_var, value)
218
+
219
+ def open_in_editor(self, options: Values, args: List[str]) -> None:
220
+ editor = self._determine_editor(options)
221
+
222
+ fname = self.configuration.get_file_to_edit()
223
+ if fname is None:
224
+ raise PipError("Could not determine appropriate file.")
225
+
226
+ try:
227
+ subprocess.check_call([editor, fname])
228
+ except subprocess.CalledProcessError as e:
229
+ raise PipError(
230
+ "Editor Subprocess exited with exit code {}".format(e.returncode)
231
+ )
232
+
233
+ def _get_n_args(self, args: List[str], example: str, n: int) -> Any:
234
+ """Helper to make sure the command got the right number of arguments"""
235
+ if len(args) != n:
236
+ msg = (
237
+ "Got unexpected number of arguments, expected {}. "
238
+ '(example: "{} config {}")'
239
+ ).format(n, get_prog(), example)
240
+ raise PipError(msg)
241
+
242
+ if n == 1:
243
+ return args[0]
244
+ else:
245
+ return args
246
+
247
+ def _save_configuration(self) -> None:
248
+ # We successfully ran a modifying command. Need to save the
249
+ # configuration.
250
+ try:
251
+ self.configuration.save()
252
+ except Exception:
253
+ logger.exception(
254
+ "Unable to save configuration. Please report this as a bug."
255
+ )
256
+ raise PipError("Internal Error.")
257
+
258
+ def _determine_editor(self, options: Values) -> str:
259
+ if options.editor is not None:
260
+ return options.editor
261
+ elif "VISUAL" in os.environ:
262
+ return os.environ["VISUAL"]
263
+ elif "EDITOR" in os.environ:
264
+ return os.environ["EDITOR"]
265
+ else:
266
+ raise PipError("Could not determine editor to use.")
hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/debug.py ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import locale
2
+ import logging
3
+ import os
4
+ import sys
5
+ from optparse import Values
6
+ from types import ModuleType
7
+ from typing import Any, Dict, List, Optional
8
+
9
+ import pip._vendor
10
+ from pip._vendor.certifi import where
11
+ from pip._vendor.packaging.version import parse as parse_version
12
+
13
+ from pip import __file__ as pip_location
14
+ from pip._internal.cli import cmdoptions
15
+ from pip._internal.cli.base_command import Command
16
+ from pip._internal.cli.cmdoptions import make_target_python
17
+ from pip._internal.cli.status_codes import SUCCESS
18
+ from pip._internal.configuration import Configuration
19
+ from pip._internal.metadata import get_environment
20
+ from pip._internal.utils.logging import indent_log
21
+ from pip._internal.utils.misc import get_pip_version
22
+
23
+ logger = logging.getLogger(__name__)
24
+
25
+
26
+ def show_value(name: str, value: Any) -> None:
27
+ logger.info("%s: %s", name, value)
28
+
29
+
30
+ def show_sys_implementation() -> None:
31
+ logger.info("sys.implementation:")
32
+ implementation_name = sys.implementation.name
33
+ with indent_log():
34
+ show_value("name", implementation_name)
35
+
36
+
37
+ def create_vendor_txt_map() -> Dict[str, str]:
38
+ vendor_txt_path = os.path.join(
39
+ os.path.dirname(pip_location), "_vendor", "vendor.txt"
40
+ )
41
+
42
+ with open(vendor_txt_path) as f:
43
+ # Purge non version specifying lines.
44
+ # Also, remove any space prefix or suffixes (including comments).
45
+ lines = [
46
+ line.strip().split(" ", 1)[0] for line in f.readlines() if "==" in line
47
+ ]
48
+
49
+ # Transform into "module" -> version dict.
50
+ return dict(line.split("==", 1) for line in lines) # type: ignore
51
+
52
+
53
+ def get_module_from_module_name(module_name: str) -> ModuleType:
54
+ # Module name can be uppercase in vendor.txt for some reason...
55
+ module_name = module_name.lower()
56
+ # PATCH: setuptools is actually only pkg_resources.
57
+ if module_name == "setuptools":
58
+ module_name = "pkg_resources"
59
+
60
+ __import__(f"pip._vendor.{module_name}", globals(), locals(), level=0)
61
+ return getattr(pip._vendor, module_name)
62
+
63
+
64
+ def get_vendor_version_from_module(module_name: str) -> Optional[str]:
65
+ module = get_module_from_module_name(module_name)
66
+ version = getattr(module, "__version__", None)
67
+
68
+ if not version:
69
+ # Try to find version in debundled module info.
70
+ env = get_environment([os.path.dirname(module.__file__)])
71
+ dist = env.get_distribution(module_name)
72
+ if dist:
73
+ version = str(dist.version)
74
+
75
+ return version
76
+
77
+
78
+ def show_actual_vendor_versions(vendor_txt_versions: Dict[str, str]) -> None:
79
+ """Log the actual version and print extra info if there is
80
+ a conflict or if the actual version could not be imported.
81
+ """
82
+ for module_name, expected_version in vendor_txt_versions.items():
83
+ extra_message = ""
84
+ actual_version = get_vendor_version_from_module(module_name)
85
+ if not actual_version:
86
+ extra_message = (
87
+ " (Unable to locate actual module version, using"
88
+ " vendor.txt specified version)"
89
+ )
90
+ actual_version = expected_version
91
+ elif parse_version(actual_version) != parse_version(expected_version):
92
+ extra_message = (
93
+ " (CONFLICT: vendor.txt suggests version should"
94
+ " be {})".format(expected_version)
95
+ )
96
+ logger.info("%s==%s%s", module_name, actual_version, extra_message)
97
+
98
+
99
+ def show_vendor_versions() -> None:
100
+ logger.info("vendored library versions:")
101
+
102
+ vendor_txt_versions = create_vendor_txt_map()
103
+ with indent_log():
104
+ show_actual_vendor_versions(vendor_txt_versions)
105
+
106
+
107
+ def show_tags(options: Values) -> None:
108
+ tag_limit = 10
109
+
110
+ target_python = make_target_python(options)
111
+ tags = target_python.get_tags()
112
+
113
+ # Display the target options that were explicitly provided.
114
+ formatted_target = target_python.format_given()
115
+ suffix = ""
116
+ if formatted_target:
117
+ suffix = f" (target: {formatted_target})"
118
+
119
+ msg = "Compatible tags: {}{}".format(len(tags), suffix)
120
+ logger.info(msg)
121
+
122
+ if options.verbose < 1 and len(tags) > tag_limit:
123
+ tags_limited = True
124
+ tags = tags[:tag_limit]
125
+ else:
126
+ tags_limited = False
127
+
128
+ with indent_log():
129
+ for tag in tags:
130
+ logger.info(str(tag))
131
+
132
+ if tags_limited:
133
+ msg = (
134
+ "...\n[First {tag_limit} tags shown. Pass --verbose to show all.]"
135
+ ).format(tag_limit=tag_limit)
136
+ logger.info(msg)
137
+
138
+
139
+ def ca_bundle_info(config: Configuration) -> str:
140
+ levels = set()
141
+ for key, _ in config.items():
142
+ levels.add(key.split(".")[0])
143
+
144
+ if not levels:
145
+ return "Not specified"
146
+
147
+ levels_that_override_global = ["install", "wheel", "download"]
148
+ global_overriding_level = [
149
+ level for level in levels if level in levels_that_override_global
150
+ ]
151
+ if not global_overriding_level:
152
+ return "global"
153
+
154
+ if "global" in levels:
155
+ levels.remove("global")
156
+ return ", ".join(levels)
157
+
158
+
159
+ class DebugCommand(Command):
160
+ """
161
+ Display debug information.
162
+ """
163
+
164
+ usage = """
165
+ %prog <options>"""
166
+ ignore_require_venv = True
167
+
168
+ def add_options(self) -> None:
169
+ cmdoptions.add_target_python_options(self.cmd_opts)
170
+ self.parser.insert_option_group(0, self.cmd_opts)
171
+ self.parser.config.load()
172
+
173
+ def run(self, options: Values, args: List[str]) -> int:
174
+ logger.warning(
175
+ "This command is only meant for debugging. "
176
+ "Do not use this with automation for parsing and getting these "
177
+ "details, since the output and options of this command may "
178
+ "change without notice."
179
+ )
180
+ show_value("pip version", get_pip_version())
181
+ show_value("sys.version", sys.version)
182
+ show_value("sys.executable", sys.executable)
183
+ show_value("sys.getdefaultencoding", sys.getdefaultencoding())
184
+ show_value("sys.getfilesystemencoding", sys.getfilesystemencoding())
185
+ show_value(
186
+ "locale.getpreferredencoding",
187
+ locale.getpreferredencoding(),
188
+ )
189
+ show_value("sys.platform", sys.platform)
190
+ show_sys_implementation()
191
+
192
+ show_value("'cert' config value", ca_bundle_info(self.parser.config))
193
+ show_value("REQUESTS_CA_BUNDLE", os.environ.get("REQUESTS_CA_BUNDLE"))
194
+ show_value("CURL_CA_BUNDLE", os.environ.get("CURL_CA_BUNDLE"))
195
+ show_value("pip._vendor.certifi.where()", where())
196
+ show_value("pip._vendor.DEBUNDLED", pip._vendor.DEBUNDLED)
197
+
198
+ show_vendor_versions()
199
+
200
+ show_tags(options)
201
+
202
+ return SUCCESS
hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/download.py ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import logging
2
+ import os
3
+ from optparse import Values
4
+ from typing import List
5
+
6
+ from pip._internal.cli import cmdoptions
7
+ from pip._internal.cli.cmdoptions import make_target_python
8
+ from pip._internal.cli.req_command import RequirementCommand, with_cleanup
9
+ from pip._internal.cli.status_codes import SUCCESS
10
+ from pip._internal.req.req_tracker import get_requirement_tracker
11
+ from pip._internal.utils.misc import ensure_dir, normalize_path, write_output
12
+ from pip._internal.utils.temp_dir import TempDirectory
13
+
14
+ logger = logging.getLogger(__name__)
15
+
16
+
17
+ class DownloadCommand(RequirementCommand):
18
+ """
19
+ Download packages from:
20
+
21
+ - PyPI (and other indexes) using requirement specifiers.
22
+ - VCS project urls.
23
+ - Local project directories.
24
+ - Local or remote source archives.
25
+
26
+ pip also supports downloading from "requirements files", which provide
27
+ an easy way to specify a whole environment to be downloaded.
28
+ """
29
+
30
+ usage = """
31
+ %prog [options] <requirement specifier> [package-index-options] ...
32
+ %prog [options] -r <requirements file> [package-index-options] ...
33
+ %prog [options] <vcs project url> ...
34
+ %prog [options] <local project path> ...
35
+ %prog [options] <archive url/path> ..."""
36
+
37
+ def add_options(self) -> None:
38
+ self.cmd_opts.add_option(cmdoptions.constraints())
39
+ self.cmd_opts.add_option(cmdoptions.requirements())
40
+ self.cmd_opts.add_option(cmdoptions.no_deps())
41
+ self.cmd_opts.add_option(cmdoptions.global_options())
42
+ self.cmd_opts.add_option(cmdoptions.no_binary())
43
+ self.cmd_opts.add_option(cmdoptions.only_binary())
44
+ self.cmd_opts.add_option(cmdoptions.prefer_binary())
45
+ self.cmd_opts.add_option(cmdoptions.src())
46
+ self.cmd_opts.add_option(cmdoptions.pre())
47
+ self.cmd_opts.add_option(cmdoptions.require_hashes())
48
+ self.cmd_opts.add_option(cmdoptions.progress_bar())
49
+ self.cmd_opts.add_option(cmdoptions.no_build_isolation())
50
+ self.cmd_opts.add_option(cmdoptions.use_pep517())
51
+ self.cmd_opts.add_option(cmdoptions.no_use_pep517())
52
+ self.cmd_opts.add_option(cmdoptions.ignore_requires_python())
53
+
54
+ self.cmd_opts.add_option(
55
+ "-d",
56
+ "--dest",
57
+ "--destination-dir",
58
+ "--destination-directory",
59
+ dest="download_dir",
60
+ metavar="dir",
61
+ default=os.curdir,
62
+ help="Download packages into <dir>.",
63
+ )
64
+
65
+ cmdoptions.add_target_python_options(self.cmd_opts)
66
+
67
+ index_opts = cmdoptions.make_option_group(
68
+ cmdoptions.index_group,
69
+ self.parser,
70
+ )
71
+
72
+ self.parser.insert_option_group(0, index_opts)
73
+ self.parser.insert_option_group(0, self.cmd_opts)
74
+
75
+ @with_cleanup
76
+ def run(self, options: Values, args: List[str]) -> int:
77
+
78
+ options.ignore_installed = True
79
+ # editable doesn't really make sense for `pip download`, but the bowels
80
+ # of the RequirementSet code require that property.
81
+ options.editables = []
82
+
83
+ cmdoptions.check_dist_restriction(options)
84
+
85
+ options.download_dir = normalize_path(options.download_dir)
86
+ ensure_dir(options.download_dir)
87
+
88
+ session = self.get_default_session(options)
89
+
90
+ target_python = make_target_python(options)
91
+ finder = self._build_package_finder(
92
+ options=options,
93
+ session=session,
94
+ target_python=target_python,
95
+ ignore_requires_python=options.ignore_requires_python,
96
+ )
97
+
98
+ req_tracker = self.enter_context(get_requirement_tracker())
99
+
100
+ directory = TempDirectory(
101
+ delete=not options.no_clean,
102
+ kind="download",
103
+ globally_managed=True,
104
+ )
105
+
106
+ reqs = self.get_requirements(args, options, finder, session)
107
+
108
+ preparer = self.make_requirement_preparer(
109
+ temp_build_dir=directory,
110
+ options=options,
111
+ req_tracker=req_tracker,
112
+ session=session,
113
+ finder=finder,
114
+ download_dir=options.download_dir,
115
+ use_user_site=False,
116
+ verbosity=self.verbosity,
117
+ )
118
+
119
+ resolver = self.make_resolver(
120
+ preparer=preparer,
121
+ finder=finder,
122
+ options=options,
123
+ ignore_requires_python=options.ignore_requires_python,
124
+ py_version_info=options.python_version,
125
+ )
126
+
127
+ self.trace_basic_info(finder)
128
+
129
+ requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
130
+
131
+ downloaded: List[str] = []
132
+ for req in requirement_set.requirements.values():
133
+ if req.satisfied_by is None:
134
+ assert req.name is not None
135
+ preparer.save_linked_requirement(req)
136
+ downloaded.append(req.name)
137
+ if downloaded:
138
+ write_output("Successfully downloaded %s", " ".join(downloaded))
139
+
140
+ return SUCCESS
hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/freeze.py ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from optparse import Values
3
+ from typing import List
4
+
5
+ from pip._internal.cli import cmdoptions
6
+ from pip._internal.cli.base_command import Command
7
+ from pip._internal.cli.status_codes import SUCCESS
8
+ from pip._internal.operations.freeze import freeze
9
+ from pip._internal.utils.compat import stdlib_pkgs
10
+
11
+ DEV_PKGS = {"pip", "setuptools", "distribute", "wheel"}
12
+
13
+
14
+ class FreezeCommand(Command):
15
+ """
16
+ Output installed packages in requirements format.
17
+
18
+ packages are listed in a case-insensitive sorted order.
19
+ """
20
+
21
+ usage = """
22
+ %prog [options]"""
23
+ log_streams = ("ext://sys.stderr", "ext://sys.stderr")
24
+
25
+ def add_options(self) -> None:
26
+ self.cmd_opts.add_option(
27
+ "-r",
28
+ "--requirement",
29
+ dest="requirements",
30
+ action="append",
31
+ default=[],
32
+ metavar="file",
33
+ help=(
34
+ "Use the order in the given requirements file and its "
35
+ "comments when generating output. This option can be "
36
+ "used multiple times."
37
+ ),
38
+ )
39
+ self.cmd_opts.add_option(
40
+ "-l",
41
+ "--local",
42
+ dest="local",
43
+ action="store_true",
44
+ default=False,
45
+ help=(
46
+ "If in a virtualenv that has global access, do not output "
47
+ "globally-installed packages."
48
+ ),
49
+ )
50
+ self.cmd_opts.add_option(
51
+ "--user",
52
+ dest="user",
53
+ action="store_true",
54
+ default=False,
55
+ help="Only output packages installed in user-site.",
56
+ )
57
+ self.cmd_opts.add_option(cmdoptions.list_path())
58
+ self.cmd_opts.add_option(
59
+ "--all",
60
+ dest="freeze_all",
61
+ action="store_true",
62
+ help=(
63
+ "Do not skip these packages in the output:"
64
+ " {}".format(", ".join(DEV_PKGS))
65
+ ),
66
+ )
67
+ self.cmd_opts.add_option(
68
+ "--exclude-editable",
69
+ dest="exclude_editable",
70
+ action="store_true",
71
+ help="Exclude editable package from output.",
72
+ )
73
+ self.cmd_opts.add_option(cmdoptions.list_exclude())
74
+
75
+ self.parser.insert_option_group(0, self.cmd_opts)
76
+
77
+ def run(self, options: Values, args: List[str]) -> int:
78
+ skip = set(stdlib_pkgs)
79
+ if not options.freeze_all:
80
+ skip.update(DEV_PKGS)
81
+
82
+ if options.excludes:
83
+ skip.update(options.excludes)
84
+
85
+ cmdoptions.check_list_path_option(options)
86
+
87
+ for line in freeze(
88
+ requirement=options.requirements,
89
+ local_only=options.local,
90
+ user_only=options.user,
91
+ paths=options.path,
92
+ isolated=options.isolated_mode,
93
+ skip=skip,
94
+ exclude_editable=options.exclude_editable,
95
+ ):
96
+ sys.stdout.write(line + "\n")
97
+ return SUCCESS
hfacevenv/lib/python3.9/site-packages/pip/_internal/commands/hash.py ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import hashlib
2
+ import logging
3
+ import sys
4
+ from optparse import Values
5
+ from typing import List
6
+
7
+ from pip._internal.cli.base_command import Command
8
+ from pip._internal.cli.status_codes import ERROR, SUCCESS
9
+ from pip._internal.utils.hashes import FAVORITE_HASH, STRONG_HASHES
10
+ from pip._internal.utils.misc import read_chunks, write_output
11
+
12
+ logger = logging.getLogger(__name__)
13
+
14
+
15
+ class HashCommand(Command):
16
+ """
17
+ Compute a hash of a local package archive.
18
+
19
+ These can be used with --hash in a requirements file to do repeatable
20
+ installs.
21
+ """
22
+
23
+ usage = "%prog [options] <file> ..."
24
+ ignore_require_venv = True
25
+
26
+ def add_options(self) -> None:
27
+ self.cmd_opts.add_option(
28
+ "-a",
29
+ "--algorithm",
30
+ dest="algorithm",
31
+ choices=STRONG_HASHES,
32
+ action="store",
33
+ default=FAVORITE_HASH,
34
+ help="The hash algorithm to use: one of {}".format(
35
+ ", ".join(STRONG_HASHES)
36
+ ),
37
+ )
38
+ self.parser.insert_option_group(0, self.cmd_opts)
39
+
40
+ def run(self, options: Values, args: List[str]) -> int:
41
+ if not args:
42
+ self.parser.print_usage(sys.stderr)
43
+ return ERROR
44
+
45
+ algorithm = options.algorithm
46
+ for path in args:
47
+ write_output(
48
+ "%s:\n--hash=%s:%s", path, algorithm, _hash_of_file(path, algorithm)
49
+ )
50
+ return SUCCESS
51
+
52
+
53
+ def _hash_of_file(path: str, algorithm: str) -> str:
54
+ """Return the hash digest of a file."""
55
+ with open(path, "rb") as archive:
56
+ hash = hashlib.new(algorithm)
57
+ for chunk in read_chunks(archive):
58
+ hash.update(chunk)
59
+ return hash.hexdigest()