-
Notifications
You must be signed in to change notification settings - Fork 17
/
pip3.sh
801 lines (768 loc) · 61.4 KB
/
pip3.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
#!/usr/bin/env bash
# Automatic generated, DON'T MODIFY IT.
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
# {{ pip3 install
# @cmd Install packages.
# @option -r --requirement <file> Install from the given requirements file.
# @option -c --constraint <file> Constrain versions using the given constraints file.
# @flag --no-deps Don't install package dependencies.
# @flag --pre Include pre-release and development versions.
# @option -e --editable <path/url> Install a project in editable mode (i.e.
# @flag --dry-run Don't actually install anything, just print what would be.
# @option -t --target <dir> Install packages into <dir>.
# @option --platform <platform> Only use wheels compatible with <platform>.
# @option --python-version <python_version> The Python interpreter version to use for wheel and "Requires-Python" compatibility checks.
# @option --implementation[pp|jy|cp|ip] <implementation> Only use wheels compatible with Python implementation <implementation>, e.g. 'pp', 'jy', 'cp', or 'ip'.
# @option --abi <abi> Only use wheels compatible with Python abi <abi>, e.g. 'pypy_41'.
# @flag --user Install to the Python user install directory for your platform.
# @option --root <dir> Install everything relative to this alternate root directory.
# @option --prefix <dir> Installation prefix where lib, bin and other top-level folders are placed.
# @option --src <dir> Directory to check out editable projects into.
# @flag -U --upgrade Upgrade all specified packages to the newest available version.
# @option --upgrade-strategy[only-if-needed|eager] <upgrade_strategy> Determines how dependency upgrading should be handled [default: only-if-needed].
# @flag --force-reinstall Reinstall all packages even if they are already up-to-date.
# @flag -I --ignore-installed Ignore the installed packages, overwriting them.
# @flag --ignore-requires-python Ignore the Requires-Python information.
# @flag --no-build-isolation Disable isolation when building a modern source distribution.
# @flag --use-pep517 Use PEP 517 for building source distributions (use --no-use-pep517 to force legacy behaviour).
# @flag --check-build-dependencies Check the build dependencies when PEP517 is used.
# @flag --break-system-packages Allow pip to modify an EXTERNALLY-MANAGED Python installation
# @option -C --config-settings <settings> Configuration settings to be passed to the PEP 517 build backend.
# @option --global-option <options> Extra global options to be supplied to the setup.py call before the install or bdist_wheel command.
# @flag --compile Compile Python source files to bytecode
# @flag --no-compile Do not compile Python source files to bytecode
# @flag --no-warn-script-location Do not warn when installing scripts outside PATH
# @flag --no-warn-conflicts Do not warn about broken dependencies
# @option --no-binary <format_control> Do not use binary packages.
# @option --only-binary <format_control> Do not use source packages.
# @flag --prefer-binary Prefer binary packages over source packages, even if the source packages are newer.
# @flag --require-hashes Require a hash to check each requirement against, for repeatable installs.
# @option --progress-bar[off|on|ascii|pretty|emoji] <progress_bar> Specify whether the progress bar should be used (default: on)
# @option --root-user-action <root_user_action> Action if pip is run as a root user [warn, ignore] (default: warn)
# @option --report <file> Generate a JSON file describing what pip did to install the provided requirements.
# @flag --no-clean Don't clean up build directories.
# @option -i --index-url <url> Base URL of the Python Package Index (default https://pypi.org/simple).
# @option --extra-index-url <url> Extra URLs of package indexes to use in addition to --index-url.
# @flag --no-index Ignore package index (only looking at --find-links URLs instead).
# @option -f --find-links <url> If a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files.
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
install() {
:;
}
# }} pip3 install
# {{ pip3 download
# @cmd Download packages.
# @option -c --constraint <file> Constrain versions using the given constraints file.
# @option -r --requirement <file> Install from the given requirements file.
# @flag --no-deps Don't install package dependencies.
# @option --global-option <options> Extra global options to be supplied to the setup.py call before the install or bdist_wheel command.
# @option --no-binary <format_control> Do not use binary packages.
# @option --only-binary <format_control> Do not use source packages.
# @flag --prefer-binary Prefer binary packages over source packages, even if the source packages are newer.
# @option --src <dir> Directory to check out editable projects into.
# @flag --pre Include pre-release and development versions.
# @flag --require-hashes Require a hash to check each requirement against, for repeatable installs.
# @option --progress-bar[off|on|ascii|pretty|emoji] <progress_bar> Specify whether the progress bar should be used (default: on)
# @flag --no-build-isolation Disable isolation when building a modern source distribution.
# @flag --use-pep517 Use PEP 517 for building source distributions (use --no-use-pep517 to force legacy behaviour).
# @flag --check-build-dependencies Check the build dependencies when PEP517 is used.
# @flag --ignore-requires-python Ignore the Requires-Python information.
# @option -d --dest <dir> Download packages into <dir>.
# @option --platform <platform> Only use wheels compatible with <platform>.
# @option --python-version <python_version> The Python interpreter version to use for wheel and "Requires-Python" compatibility checks.
# @option --implementation[pp|jy|cp|ip] <implementation> Only use wheels compatible with Python implementation <implementation>, e.g. 'pp', 'jy', 'cp', or 'ip'.
# @option --abi <abi> Only use wheels compatible with Python abi <abi>, e.g. 'pypy_41'.
# @flag --no-clean Don't clean up build directories.
# @option -i --index-url <url> Base URL of the Python Package Index (default https://pypi.org/simple).
# @option --extra-index-url <url> Extra URLs of package indexes to use in addition to --index-url.
# @flag --no-index Ignore package index (only looking at --find-links URLs instead).
# @option -f --find-links <url> If a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files.
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
download() {
:;
}
# }} pip3 download
# {{ pip3 uninstall
# @cmd Uninstall packages.
# @option -r --requirement <file> Uninstall all the packages listed in the given requirements file.
# @flag -y --yes Don't ask for confirmation of uninstall deletions.
# @option --root-user-action <root_user_action> Action if pip is run as a root user [warn, ignore] (default: warn)
# @flag --break-system-packages Allow pip to modify an EXTERNALLY-MANAGED Python installation
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
# @arg package[`_choice_package`]
uninstall() {
:;
}
# }} pip3 uninstall
# {{ pip3 freeze
# @cmd Output installed packages in requirements format.
# @option -r --requirement <file> Use the order in the given requirements file and its comments when generating output.
# @flag -l --local If in a virtualenv that has global access, do not output globally-installed packages.
# @flag --user Only output packages installed in user-site.
# @option --path <path> Restrict to the specified installation path for listing packages (can be used multiple times).
# @option --all[pip|setuptools|wheel|distribute] Do not skip these packages in the output.
# @flag --exclude-editable Exclude editable package from output.
# @option --exclude[`_choice_package`] <package> Exclude specified package from the output
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
freeze() {
:;
}
# }} pip3 freeze
# {{ pip3 inspect
# @cmd Inspect the python environment.
# @flag --local If in a virtualenv that has global access, do not list globally-installed packages.
# @flag --user Only output packages installed in user-site.
# @option --path <path> Restrict to the specified installation path for listing packages (can be used multiple times).
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
inspect() {
:;
}
# }} pip3 inspect
# {{ pip3 list
# @cmd List installed packages.
# @flag -o --outdated List outdated packages
# @flag -u --uptodate List uptodate packages
# @flag -e --editable List editable projects.
# @flag -l --local If in a virtualenv that has global access, do not list globally-installed packages.
# @flag --user Only output packages installed in user-site.
# @option --path <path> Restrict to the specified installation path for listing packages (can be used multiple times).
# @flag --pre Include pre-release and development versions.
# @option --format <list_format> Select the output format among: columns (default), freeze, or json.
# @flag --not-required List packages that are not dependencies of installed packages.
# @flag --exclude-editable Exclude editable package from output.
# @flag --include-editable Include editable package from output.
# @option --exclude[`_choice_package`] <package> Exclude specified package from the output
# @option -i --index-url <url> Base URL of the Python Package Index (default https://pypi.org/simple).
# @option --extra-index-url <url> Extra URLs of package indexes to use in addition to --index-url.
# @flag --no-index Ignore package index (only looking at --find-links URLs instead).
# @option -f --find-links <url> If a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files.
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
list() {
:;
}
# }} pip3 list
# {{ pip3 show
# @cmd Show information about installed packages.
# @flag -f --files Show the full list of installed files for each package.
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
# @arg package[`_choice_package`]
show() {
:;
}
# }} pip3 show
# {{ pip3 check
# @cmd Verify installed packages have compatible dependencies.
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
check() {
:;
}
# }} pip3 check
# {{ pip3 config
# @cmd Manage local and global configuration.
# @option --editor <editor> Editor to use to edit the file.
# @flag --global Use the system-wide configuration file only
# @flag --user Use the user configuration file only
# @flag --site Use the current environment configuration file only
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
config() {
:;
}
# {{{ pip3 config list
# @cmd List the active configuration (or from the file specified)
config::list() {
:;
}
# }}} pip3 config list
# {{{ pip3 config edit
# @cmd Edit the configuration file in an editor
# @option --editor <editor-path> Editor to use to edit the file
config::edit() {
:;
}
# }}} pip3 config edit
# {{{ pip3 config get
# @cmd Get the value associated with command.option
# @arg key![`_choice_config_key`]
config::get() {
:;
}
# }}} pip3 config get
# {{{ pip3 config set
# @cmd Set the command.option=value
# @arg key![`_choice_config_key`]
# @arg value!
config::set() {
:;
}
# }}} pip3 config set
# {{{ pip3 config unset
# @cmd Unset the value associated with command.option
# @arg key![`_choice_config_key`]
config::unset() {
:;
}
# }}} pip3 config unset
# {{{ pip3 config debug
# @cmd List the configuration files and values defined under them
config::debug() {
:;
}
# }}} pip3 config debug
# }} pip3 config
# {{ pip3 search
# @cmd Search PyPI for packages.
# @option -i --index <url> Base URL of Python Package Index (default https://pypi.org/pypi)
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
search() {
:;
}
# }} pip3 search
# {{ pip3 cache
# @cmd Inspect and manage pip's wheel cache.
# @option --format <list_format> Select the output format among: human (default) or abspath
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
cache() {
:;
}
# {{{ pip3 cache dir
# @cmd Show the cache directory.
cache::dir() {
:;
}
# }}} pip3 cache dir
# {{{ pip3 cache info
# @cmd Show information about the cache.
cache::info() {
:;
}
# }}} pip3 cache info
# {{{ pip3 cache list
# @cmd List filenames of packages stored in the cache.
# @option --format <human|abspath> Select the output format
# @arg pattern!
cache::list() {
:;
}
# }}} pip3 cache list
# {{{ pip3 cache remove
# @cmd Remove one or more package from the cache.
# @arg pattern!
cache::remove() {
:;
}
# }}} pip3 cache remove
# {{{ pip3 cache purge
# @cmd Remove all items from the cache.
cache::purge() {
:;
}
# }}} pip3 cache purge
# }} pip3 cache
# {{ pip3 index
# @cmd Inspect information available from package indexes.
# @option --platform <platform> Only use wheels compatible with <platform>.
# @option --python-version <python_version> The Python interpreter version to use for wheel and "Requires-Python" compatibility checks.
# @option --implementation[pp|jy|cp|ip] <implementation> Only use wheels compatible with Python implementation <implementation>, e.g. 'pp', 'jy', 'cp', or 'ip'.
# @option --abi <abi> Only use wheels compatible with Python abi <abi>, e.g. 'pypy_41'.
# @flag --ignore-requires-python Ignore the Requires-Python information.
# @flag --pre Include pre-release and development versions.
# @option --no-binary <format_control> Do not use binary packages.
# @option --only-binary <format_control> Do not use source packages.
# @option -i --index-url <url> Base URL of the Python Package Index (default https://pypi.org/simple).
# @option --extra-index-url <url> Extra URLs of package indexes to use in addition to --index-url.
# @flag --no-index Ignore package index (only looking at --find-links URLs instead).
# @option -f --find-links <url> If a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files.
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
index() {
:;
}
# }} pip3 index
# {{ pip3 wheel
# @cmd Build wheels from your requirements.
# @option -w --wheel-dir <dir> Build wheels into <dir>, where the default is the current working directory.
# @option --no-binary <format_control> Do not use binary packages.
# @option --only-binary <format_control> Do not use source packages.
# @flag --prefer-binary Prefer binary packages over source packages, even if the source packages are newer.
# @flag --no-build-isolation Disable isolation when building a modern source distribution.
# @flag --use-pep517 Use PEP 517 for building source distributions (use --no-use-pep517 to force legacy behaviour).
# @flag --check-build-dependencies Check the build dependencies when PEP517 is used.
# @option -c --constraint <file> Constrain versions using the given constraints file.
# @option -e --editable <path/url> Install a project in editable mode (i.e.
# @option -r --requirement <file> Install from the given requirements file.
# @option --src <dir> Directory to check out editable projects into.
# @flag --ignore-requires-python Ignore the Requires-Python information.
# @flag --no-deps Don't install package dependencies.
# @option --progress-bar[off|on|ascii|pretty|emoji] <progress_bar> Specify whether the progress bar should be used (default: on)
# @flag --no-verify Don't verify if built wheel is valid.
# @option -C --config-settings <settings> Configuration settings to be passed to the PEP 517 build backend.
# @option --build-option <options> Extra arguments to be supplied to 'setup.py bdist_wheel'.
# @option --global-option <options> Extra global options to be supplied to the setup.py call before the install or bdist_wheel command.
# @flag --pre Include pre-release and development versions.
# @flag --require-hashes Require a hash to check each requirement against, for repeatable installs.
# @flag --no-clean Don't clean up build directories.
# @option -i --index-url <url> Base URL of the Python Package Index (default https://pypi.org/simple).
# @option --extra-index-url <url> Extra URLs of package indexes to use in addition to --index-url.
# @flag --no-index Ignore package index (only looking at --find-links URLs instead).
# @option -f --find-links <url> If a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files.
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
wheel() {
:;
}
# }} pip3 wheel
# {{ pip3 hash
# @cmd Compute hashes of package archives.
# @option -a --algorithm[sha256|sha384|sha512] <algorithm> The hash algorithm to use: one of sha256, sha384, sha512
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
# @arg file+
hash() {
:;
}
# }} pip3 hash
# {{ pip3 completion
# @cmd A helper command used for command completion.
# @flag -b --bash Emit completion code for bash
# @flag -z --zsh Emit completion code for zsh
# @flag -f --fish Emit completion code for fish
# @flag -p --powershell Emit completion code for powershell
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
completion() {
:;
}
# }} pip3 completion
# {{ pip3 debug
# @cmd Show information useful for debugging.
# @option --platform <platform> Only use wheels compatible with <platform>.
# @option --python-version <python_version> The Python interpreter version to use for wheel and "Requires-Python" compatibility checks.
# @option --implementation[pp|jy|cp|ip] <implementation> Only use wheels compatible with Python implementation <implementation>, e.g. 'pp', 'jy', 'cp', or 'ip'.
# @option --abi <abi> Only use wheels compatible with Python abi <abi>, e.g. 'pypy_41'.
# @flag -h --help Show help.
# @flag --debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
# @flag --isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
# @flag --require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
# @option --python <python> Run pip with the specified Python interpreter.
# @flag -v --verbose Give more output.
# @flag -V --version Show version and exit.
# @flag -q --quiet Give less output.
# @option --log <path> Path to a verbose appending log.
# @flag --no-input Disable prompting for input.
# @option --keyring-provider[disabled|import|subprocess] <keyring_provider> Enable the credential lookup via the keyring library if user input is allowed.
# @option --proxy <proxy> Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
# @option --retries <retries> Maximum number of retries each connection should attempt (default 5 times).
# @option --timeout <sec> Set the socket timeout (default 15 seconds).
# @option --exists-action[`_choice_exists_action`] <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
# @option --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
# @option --cert <path> Path to PEM-encoded CA certificate bundle.
# @option --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
# @option --cache-dir <dir> Store the cache data in <dir>.
# @flag --no-cache-dir Disable the cache.
# @flag --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download.
# @flag --no-color Suppress colored output.
# @flag --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
# @option --use-feature <feature> Enable new functionality, that may be backward incompatible.
# @option --use-deprecated <feature> Enable deprecated functionality, that will be removed in the future.
debug() {
:;
}
# }} pip3 debug
. "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh"
_choice_exists_action() {
cat <<-'EOF'
s switch
i ignore
w wipe
b backup
a abort
EOF
}
_choice_package() {
pip list --format json | yq '.[] | .name + " " + .version'
}
_choice_config_key() {
pip config $(_argc_util_param_select_options --global --site --user) list | \
gawk -F= '{gsub("\047", "", $2); print $1 "\t" $2}'
}
command eval "$(argc --argc-eval "$0" "$@")"