com.googler.python 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) hide show
  1. package/package.json +4 -2
  2. package/python3.4.2/lib/python3.4/site-packages/pip/__init__.py +1 -277
  3. package/python3.4.2/lib/python3.4/site-packages/pip/__main__.py +19 -7
  4. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/__init__.py +246 -0
  5. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/basecommand.py +373 -0
  6. package/python3.4.2/lib/python3.4/site-packages/pip/{baseparser.py → _internal/baseparser.py} +240 -224
  7. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/build_env.py +92 -0
  8. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/cache.py +202 -0
  9. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/cmdoptions.py +609 -0
  10. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/__init__.py +79 -0
  11. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/check.py +42 -0
  12. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/completion.py +94 -0
  13. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/configuration.py +227 -0
  14. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/download.py +233 -0
  15. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/freeze.py +96 -0
  16. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/hash.py +57 -0
  17. package/python3.4.2/lib/python3.4/site-packages/pip/{commands → _internal/commands}/help.py +36 -33
  18. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/install.py +477 -0
  19. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/list.py +343 -0
  20. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/search.py +135 -0
  21. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/show.py +164 -0
  22. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/uninstall.py +71 -0
  23. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/wheel.py +179 -0
  24. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/compat.py +235 -0
  25. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/configuration.py +378 -0
  26. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/download.py +922 -0
  27. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/exceptions.py +249 -0
  28. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/index.py +1117 -0
  29. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/locations.py +194 -0
  30. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/models/__init__.py +4 -0
  31. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/models/index.py +15 -0
  32. package/python3.4.2/lib/python3.4/site-packages/pip/{_vendor/requests/packages/urllib3/contrib → _internal/operations}/__init__.py +0 -0
  33. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/operations/check.py +106 -0
  34. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/operations/freeze.py +252 -0
  35. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/operations/prepare.py +378 -0
  36. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/pep425tags.py +317 -0
  37. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/__init__.py +69 -0
  38. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_file.py +338 -0
  39. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_install.py +1115 -0
  40. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_set.py +164 -0
  41. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_uninstall.py +455 -0
  42. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/resolve.py +354 -0
  43. package/python3.4.2/lib/python3.4/site-packages/pip/{status_codes.py → _internal/status_codes.py} +8 -6
  44. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/__init__.py +0 -0
  45. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/appdirs.py +258 -0
  46. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/deprecation.py +77 -0
  47. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/encoding.py +33 -0
  48. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/filesystem.py +28 -0
  49. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/glibc.py +84 -0
  50. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/hashes.py +94 -0
  51. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/logging.py +132 -0
  52. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/misc.py +851 -0
  53. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/outdated.py +163 -0
  54. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/packaging.py +70 -0
  55. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/setuptools_build.py +8 -0
  56. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/temp_dir.py +82 -0
  57. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/typing.py +29 -0
  58. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/ui.py +421 -0
  59. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/__init__.py +471 -0
  60. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/bazaar.py +113 -0
  61. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/git.py +311 -0
  62. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/mercurial.py +105 -0
  63. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/subversion.py +271 -0
  64. package/python3.4.2/lib/python3.4/site-packages/pip/_internal/wheel.py +817 -0
  65. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/__init__.py +109 -8
  66. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/appdirs.py +604 -0
  67. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/__init__.py +11 -0
  68. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/_cmd.py +60 -0
  69. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/adapter.py +134 -0
  70. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/cache.py +39 -0
  71. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +2 -0
  72. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +133 -0
  73. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +43 -0
  74. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/compat.py +29 -0
  75. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/controller.py +373 -0
  76. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/filewrapper.py +78 -0
  77. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/heuristics.py +138 -0
  78. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/serialize.py +194 -0
  79. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/wrapper.py +27 -0
  80. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/certifi/__init__.py +3 -0
  81. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/certifi/__main__.py +2 -0
  82. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests → certifi}/cacert.pem +1765 -2358
  83. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/certifi/core.py +37 -0
  84. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/__init__.py +39 -32
  85. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/big5freq.py +386 -0
  86. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/big5prober.py +47 -42
  87. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/chardistribution.py +233 -231
  88. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/charsetgroupprober.py +106 -0
  89. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/charsetprober.py +145 -0
  90. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/cli/__init__.py +1 -0
  91. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/cli/chardetect.py +85 -0
  92. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/codingstatemachine.py +88 -0
  93. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/compat.py +34 -34
  94. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/cp949prober.py +49 -44
  95. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/enums.py +76 -0
  96. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/escprober.py +101 -0
  97. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/escsm.py +246 -0
  98. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/eucjpprober.py +92 -0
  99. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/euckrfreq.py +195 -0
  100. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/euckrprober.py +47 -42
  101. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/euctwfreq.py +387 -428
  102. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/euctwprober.py +46 -41
  103. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/gb2312freq.py +283 -472
  104. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/gb2312prober.py +46 -41
  105. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/hebrewprober.py +292 -283
  106. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/jisfreq.py +325 -569
  107. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/jpcntx.py +233 -219
  108. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langbulgarianmodel.py +228 -229
  109. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langcyrillicmodel.py +333 -329
  110. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langgreekmodel.py +225 -225
  111. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langhebrewmodel.py +200 -201
  112. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langhungarianmodel.py +225 -225
  113. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langthaimodel.py +199 -200
  114. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/langturkishmodel.py +193 -0
  115. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/latin1prober.py +145 -139
  116. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/mbcharsetprober.py +91 -0
  117. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/mbcsgroupprober.py +54 -54
  118. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/mbcssm.py +572 -0
  119. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/sbcharsetprober.py +132 -0
  120. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/sbcsgroupprober.py +73 -69
  121. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/sjisprober.py +92 -0
  122. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/universaldetector.py +286 -0
  123. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/utf8prober.py +82 -76
  124. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/version.py +9 -0
  125. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/__init__.py +7 -7
  126. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansi.py +102 -50
  127. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansitowin32.py +236 -190
  128. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/initialise.py +82 -56
  129. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/win32.py +156 -137
  130. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/winterm.py +162 -120
  131. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/__init__.py +23 -23
  132. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/__init__.py +6 -6
  133. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/misc.py +41 -41
  134. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/shutil.py +761 -761
  135. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.cfg +84 -84
  136. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.py +788 -788
  137. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/tarfile.py +2607 -2607
  138. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/compat.py +1117 -1064
  139. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/database.py +1318 -1301
  140. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/index.py +516 -488
  141. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/locators.py +1292 -1194
  142. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/manifest.py +393 -364
  143. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/markers.py +131 -190
  144. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/metadata.py +1068 -1026
  145. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/resources.py +355 -317
  146. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/scripts.py +415 -323
  147. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t32.exe +0 -0
  148. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t64.exe +0 -0
  149. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/util.py +1755 -1575
  150. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/version.py +736 -721
  151. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w32.exe +0 -0
  152. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w64.exe +0 -0
  153. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/wheel.py +984 -958
  154. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distro.py +1104 -0
  155. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/__init__.py +35 -23
  156. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{ihatexml.py → _ihatexml.py} +288 -285
  157. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{inputstream.py → _inputstream.py} +923 -881
  158. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{tokenizer.py → _tokenizer.py} +1721 -1731
  159. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/__init__.py +14 -12
  160. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/_base.py +37 -37
  161. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/datrie.py +44 -44
  162. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/py.py +67 -67
  163. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{utils.py → _utils.py} +124 -82
  164. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/constants.py +2947 -3104
  165. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +29 -20
  166. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/{_base.py → base.py} +12 -12
  167. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +73 -65
  168. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/lint.py +93 -93
  169. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +207 -205
  170. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +896 -12
  171. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/whitespace.py +38 -38
  172. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/html5parser.py +2791 -2713
  173. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer.py +409 -0
  174. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +30 -0
  175. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py +54 -0
  176. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +50 -44
  177. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +88 -76
  178. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/{_base.py → base.py} +417 -377
  179. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +236 -227
  180. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +340 -337
  181. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +366 -369
  182. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +154 -57
  183. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/{_base.py → base.py} +252 -200
  184. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +43 -46
  185. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +130 -138
  186. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/{lxmletree.py → etree_lxml.py} +213 -208
  187. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/{genshistream.py → genshi.py} +69 -69
  188. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/__init__.py +2 -0
  189. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/codec.py +118 -0
  190. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/compat.py +12 -0
  191. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/core.py +387 -0
  192. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/idnadata.py +1585 -0
  193. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/intranges.py +53 -0
  194. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/package_data.py +2 -0
  195. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/uts46data.py +7634 -0
  196. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/ipaddress.py +2419 -0
  197. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/__init__.py +347 -0
  198. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/linklockfile.py +73 -0
  199. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/mkdirlockfile.py +84 -0
  200. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/pidlockfile.py +190 -0
  201. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/sqlitelockfile.py +156 -0
  202. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/symlinklockfile.py +70 -0
  203. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/__init__.py +66 -0
  204. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/_version.py +1 -0
  205. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/exceptions.py +41 -0
  206. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/fallback.py +971 -0
  207. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/__about__.py +21 -0
  208. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/__init__.py +14 -0
  209. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/_compat.py +30 -0
  210. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/_structures.py +70 -0
  211. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/markers.py +301 -0
  212. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/requirements.py +130 -0
  213. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/specifiers.py +774 -0
  214. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/utils.py +63 -0
  215. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/version.py +441 -0
  216. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{pkg_resources.py → pkg_resources/__init__.py} +3125 -2762
  217. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pkg_resources/py31compat.py +22 -0
  218. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/__init__.py +127 -0
  219. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/bar.py +88 -0
  220. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/counter.py +48 -0
  221. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/helpers.py +91 -0
  222. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/spinner.py +44 -0
  223. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pyparsing.py +5720 -0
  224. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/__init__.py +3 -0
  225. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/core.py +13 -0
  226. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/parser.py +374 -0
  227. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/writer.py +127 -0
  228. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/__init__.py +123 -77
  229. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/__version__.py +14 -0
  230. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/_internal_utils.py +42 -0
  231. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/adapters.py +525 -388
  232. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/api.py +152 -120
  233. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/auth.py +293 -193
  234. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/certs.py +18 -24
  235. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/compat.py +73 -115
  236. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/cookies.py +542 -454
  237. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/exceptions.py +122 -75
  238. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/help.py +120 -0
  239. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/hooks.py +34 -45
  240. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/models.py +948 -803
  241. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages.py +16 -0
  242. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py +737 -637
  243. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/status_codes.py +91 -88
  244. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/structures.py +105 -127
  245. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/utils.py +904 -673
  246. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/retrying.py +267 -0
  247. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/six.py +891 -646
  248. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/__init__.py +97 -0
  249. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/_collections.py +319 -0
  250. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/connection.py +373 -0
  251. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/connectionpool.py +905 -710
  252. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
  253. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
  254. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +593 -0
  255. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +343 -0
  256. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/appengine.py +296 -0
  257. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/contrib/ntlmpool.py +112 -120
  258. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +455 -0
  259. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +810 -0
  260. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/socks.py +188 -0
  261. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/exceptions.py +246 -0
  262. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/fields.py +178 -177
  263. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/filepost.py +94 -100
  264. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/__init__.py +5 -4
  265. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
  266. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +53 -0
  267. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/ordered_dict.py +259 -260
  268. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/packages/six.py +868 -0
  269. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/ssl_match_hostname/__init__.py +19 -13
  270. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/ssl_match_hostname/_implementation.py +157 -105
  271. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/poolmanager.py +440 -0
  272. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/request.py +148 -141
  273. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/response.py +626 -0
  274. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/__init__.py +54 -0
  275. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/connection.py +130 -0
  276. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/request.py +118 -0
  277. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/response.py +81 -0
  278. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/retry.py +401 -0
  279. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/selectors.py +581 -0
  280. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/ssl_.py +341 -0
  281. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/util/timeout.py +242 -234
  282. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/util/url.py +230 -162
  283. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/wait.py +40 -0
  284. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/__init__.py +342 -0
  285. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/labels.py +231 -0
  286. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/mklabels.py +59 -0
  287. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/tests.py +153 -0
  288. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/x_user_defined.py +325 -0
  289. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/__init__.py +0 -16
  290. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/markers.py +0 -119
  291. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/sanitizer.py +0 -271
  292. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/__init__.py +0 -16
  293. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/htmlserializer.py +0 -320
  294. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/pulldom.py +0 -63
  295. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/re-vendor.py +0 -34
  296. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/__init__.py +0 -3
  297. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/big5freq.py +0 -925
  298. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/chardetect.py +0 -46
  299. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetgroupprober.py +0 -106
  300. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetprober.py +0 -62
  301. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/codingstatemachine.py +0 -61
  302. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/constants.py +0 -39
  303. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escprober.py +0 -86
  304. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escsm.py +0 -242
  305. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/eucjpprober.py +0 -90
  306. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euckrfreq.py +0 -596
  307. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcharsetprober.py +0 -86
  308. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcssm.py +0 -575
  309. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sbcharsetprober.py +0 -120
  310. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sjisprober.py +0 -91
  311. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/universaldetector.py +0 -170
  312. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py +0 -58
  313. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/_collections.py +0 -205
  314. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connection.py +0 -204
  315. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py +0 -422
  316. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/exceptions.py +0 -126
  317. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/six.py +0 -385
  318. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/poolmanager.py +0 -258
  319. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/response.py +0 -308
  320. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py +0 -27
  321. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py +0 -45
  322. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/request.py +0 -68
  323. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py +0 -13
  324. package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py +0 -133
  325. package/python3.4.2/lib/python3.4/site-packages/pip/backwardcompat/__init__.py +0 -138
  326. package/python3.4.2/lib/python3.4/site-packages/pip/basecommand.py +0 -201
  327. package/python3.4.2/lib/python3.4/site-packages/pip/cmdoptions.py +0 -371
  328. package/python3.4.2/lib/python3.4/site-packages/pip/commands/__init__.py +0 -88
  329. package/python3.4.2/lib/python3.4/site-packages/pip/commands/bundle.py +0 -42
  330. package/python3.4.2/lib/python3.4/site-packages/pip/commands/completion.py +0 -59
  331. package/python3.4.2/lib/python3.4/site-packages/pip/commands/freeze.py +0 -114
  332. package/python3.4.2/lib/python3.4/site-packages/pip/commands/install.py +0 -314
  333. package/python3.4.2/lib/python3.4/site-packages/pip/commands/list.py +0 -162
  334. package/python3.4.2/lib/python3.4/site-packages/pip/commands/search.py +0 -132
  335. package/python3.4.2/lib/python3.4/site-packages/pip/commands/show.py +0 -80
  336. package/python3.4.2/lib/python3.4/site-packages/pip/commands/uninstall.py +0 -59
  337. package/python3.4.2/lib/python3.4/site-packages/pip/commands/unzip.py +0 -7
  338. package/python3.4.2/lib/python3.4/site-packages/pip/commands/wheel.py +0 -195
  339. package/python3.4.2/lib/python3.4/site-packages/pip/commands/zip.py +0 -351
  340. package/python3.4.2/lib/python3.4/site-packages/pip/download.py +0 -644
  341. package/python3.4.2/lib/python3.4/site-packages/pip/exceptions.py +0 -46
  342. package/python3.4.2/lib/python3.4/site-packages/pip/index.py +0 -990
  343. package/python3.4.2/lib/python3.4/site-packages/pip/locations.py +0 -171
  344. package/python3.4.2/lib/python3.4/site-packages/pip/log.py +0 -276
  345. package/python3.4.2/lib/python3.4/site-packages/pip/pep425tags.py +0 -102
  346. package/python3.4.2/lib/python3.4/site-packages/pip/req.py +0 -1931
  347. package/python3.4.2/lib/python3.4/site-packages/pip/runner.py +0 -18
  348. package/python3.4.2/lib/python3.4/site-packages/pip/util.py +0 -720
  349. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/__init__.py +0 -251
  350. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/bazaar.py +0 -131
  351. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/git.py +0 -194
  352. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/mercurial.py +0 -151
  353. package/python3.4.2/lib/python3.4/site-packages/pip/vcs/subversion.py +0 -273
  354. package/python3.4.2/lib/python3.4/site-packages/pip/wheel.py +0 -560
@@ -0,0 +1,609 @@
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
+ from __future__ import absolute_import
11
+
12
+ import warnings
13
+ from functools import partial
14
+ from optparse import SUPPRESS_HELP, Option, OptionGroup
15
+
16
+ from pip._internal.index import (
17
+ FormatControl, fmt_ctl_handle_mutual_exclude, fmt_ctl_no_binary,
18
+ )
19
+ from pip._internal.locations import USER_CACHE_DIR, src_prefix
20
+ from pip._internal.models import PyPI
21
+ from pip._internal.utils.hashes import STRONG_HASHES
22
+ from pip._internal.utils.typing import MYPY_CHECK_RUNNING
23
+ from pip._internal.utils.ui import BAR_TYPES
24
+
25
+ if MYPY_CHECK_RUNNING:
26
+ from typing import Any
27
+
28
+
29
+ def make_option_group(group, parser):
30
+ """
31
+ Return an OptionGroup object
32
+ group -- assumed to be dict with 'name' and 'options' keys
33
+ parser -- an optparse Parser
34
+ """
35
+ option_group = OptionGroup(parser, group['name'])
36
+ for option in group['options']:
37
+ option_group.add_option(option())
38
+ return option_group
39
+
40
+
41
+ def check_install_build_global(options, check_options=None):
42
+ """Disable wheels if per-setup.py call options are set.
43
+
44
+ :param options: The OptionParser options to update.
45
+ :param check_options: The options to check, if not supplied defaults to
46
+ options.
47
+ """
48
+ if check_options is None:
49
+ check_options = options
50
+
51
+ def getname(n):
52
+ return getattr(check_options, n, None)
53
+ names = ["build_options", "global_options", "install_options"]
54
+ if any(map(getname, names)):
55
+ control = options.format_control
56
+ fmt_ctl_no_binary(control)
57
+ warnings.warn(
58
+ 'Disabling all use of wheels due to the use of --build-options '
59
+ '/ --global-options / --install-options.', stacklevel=2,
60
+ )
61
+
62
+
63
+ ###########
64
+ # options #
65
+ ###########
66
+
67
+ help_ = partial(
68
+ Option,
69
+ '-h', '--help',
70
+ dest='help',
71
+ action='help',
72
+ help='Show help.',
73
+ ) # type: Any
74
+
75
+ isolated_mode = partial(
76
+ Option,
77
+ "--isolated",
78
+ dest="isolated_mode",
79
+ action="store_true",
80
+ default=False,
81
+ help=(
82
+ "Run pip in an isolated mode, ignoring environment variables and user "
83
+ "configuration."
84
+ ),
85
+ )
86
+
87
+ require_virtualenv = partial(
88
+ Option,
89
+ # Run only if inside a virtualenv, bail if not.
90
+ '--require-virtualenv', '--require-venv',
91
+ dest='require_venv',
92
+ action='store_true',
93
+ default=False,
94
+ help=SUPPRESS_HELP
95
+ ) # type: Any
96
+
97
+ verbose = partial(
98
+ Option,
99
+ '-v', '--verbose',
100
+ dest='verbose',
101
+ action='count',
102
+ default=0,
103
+ help='Give more output. Option is additive, and can be used up to 3 times.'
104
+ )
105
+
106
+ no_color = partial(
107
+ Option,
108
+ '--no-color',
109
+ dest='no_color',
110
+ action='store_true',
111
+ default=False,
112
+ help="Suppress colored output",
113
+ )
114
+
115
+ version = partial(
116
+ Option,
117
+ '-V', '--version',
118
+ dest='version',
119
+ action='store_true',
120
+ help='Show version and exit.',
121
+ ) # type: Any
122
+
123
+ quiet = partial(
124
+ Option,
125
+ '-q', '--quiet',
126
+ dest='quiet',
127
+ action='count',
128
+ default=0,
129
+ help=(
130
+ 'Give less output. Option is additive, and can be used up to 3'
131
+ ' times (corresponding to WARNING, ERROR, and CRITICAL logging'
132
+ ' levels).'
133
+ ),
134
+ ) # type: Any
135
+
136
+ progress_bar = partial(
137
+ Option,
138
+ '--progress-bar',
139
+ dest='progress_bar',
140
+ type='choice',
141
+ choices=list(BAR_TYPES.keys()),
142
+ default='on',
143
+ help=(
144
+ 'Specify type of progress to be displayed [' +
145
+ '|'.join(BAR_TYPES.keys()) + '] (default: %default)'
146
+ ),
147
+ ) # type: Any
148
+
149
+ log = partial(
150
+ Option,
151
+ "--log", "--log-file", "--local-log",
152
+ dest="log",
153
+ metavar="path",
154
+ help="Path to a verbose appending log."
155
+ ) # type: Any
156
+
157
+ no_input = partial(
158
+ Option,
159
+ # Don't ask for input
160
+ '--no-input',
161
+ dest='no_input',
162
+ action='store_true',
163
+ default=False,
164
+ help=SUPPRESS_HELP
165
+ ) # type: Any
166
+
167
+ proxy = partial(
168
+ Option,
169
+ '--proxy',
170
+ dest='proxy',
171
+ type='str',
172
+ default='',
173
+ help="Specify a proxy in the form [user:passwd@]proxy.server:port."
174
+ ) # type: Any
175
+
176
+ retries = partial(
177
+ Option,
178
+ '--retries',
179
+ dest='retries',
180
+ type='int',
181
+ default=5,
182
+ help="Maximum number of retries each connection should attempt "
183
+ "(default %default times).",
184
+ ) # type: Any
185
+
186
+ timeout = partial(
187
+ Option,
188
+ '--timeout', '--default-timeout',
189
+ metavar='sec',
190
+ dest='timeout',
191
+ type='float',
192
+ default=15,
193
+ help='Set the socket timeout (default %default seconds).',
194
+ ) # type: Any
195
+
196
+ skip_requirements_regex = partial(
197
+ Option,
198
+ # A regex to be used to skip requirements
199
+ '--skip-requirements-regex',
200
+ dest='skip_requirements_regex',
201
+ type='str',
202
+ default='',
203
+ help=SUPPRESS_HELP,
204
+ ) # type: Any
205
+
206
+
207
+ def exists_action():
208
+ return Option(
209
+ # Option when path already exist
210
+ '--exists-action',
211
+ dest='exists_action',
212
+ type='choice',
213
+ choices=['s', 'i', 'w', 'b', 'a'],
214
+ default=[],
215
+ action='append',
216
+ metavar='action',
217
+ help="Default action when a path already exists: "
218
+ "(s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort).",
219
+ )
220
+
221
+
222
+ cert = partial(
223
+ Option,
224
+ '--cert',
225
+ dest='cert',
226
+ type='str',
227
+ metavar='path',
228
+ help="Path to alternate CA bundle.",
229
+ ) # type: Any
230
+
231
+ client_cert = partial(
232
+ Option,
233
+ '--client-cert',
234
+ dest='client_cert',
235
+ type='str',
236
+ default=None,
237
+ metavar='path',
238
+ help="Path to SSL client certificate, a single file containing the "
239
+ "private key and the certificate in PEM format.",
240
+ ) # type: Any
241
+
242
+ index_url = partial(
243
+ Option,
244
+ '-i', '--index-url', '--pypi-url',
245
+ dest='index_url',
246
+ metavar='URL',
247
+ default=PyPI.simple_url,
248
+ help="Base URL of Python Package Index (default %default). "
249
+ "This should point to a repository compliant with PEP 503 "
250
+ "(the simple repository API) or a local directory laid out "
251
+ "in the same format.",
252
+ ) # type: Any
253
+
254
+
255
+ def extra_index_url():
256
+ return Option(
257
+ '--extra-index-url',
258
+ dest='extra_index_urls',
259
+ metavar='URL',
260
+ action='append',
261
+ default=[],
262
+ help="Extra URLs of package indexes to use in addition to "
263
+ "--index-url. Should follow the same rules as "
264
+ "--index-url.",
265
+ )
266
+
267
+
268
+ no_index = partial(
269
+ Option,
270
+ '--no-index',
271
+ dest='no_index',
272
+ action='store_true',
273
+ default=False,
274
+ help='Ignore package index (only looking at --find-links URLs instead).',
275
+ ) # type: Any
276
+
277
+
278
+ def find_links():
279
+ return Option(
280
+ '-f', '--find-links',
281
+ dest='find_links',
282
+ action='append',
283
+ default=[],
284
+ metavar='url',
285
+ help="If a url or path to an html file, then parse for links to "
286
+ "archives. If a local path or file:// url that's a directory, "
287
+ "then look for archives in the directory listing.",
288
+ )
289
+
290
+
291
+ def trusted_host():
292
+ return Option(
293
+ "--trusted-host",
294
+ dest="trusted_hosts",
295
+ action="append",
296
+ metavar="HOSTNAME",
297
+ default=[],
298
+ help="Mark this host as trusted, even though it does not have valid "
299
+ "or any HTTPS.",
300
+ )
301
+
302
+
303
+ # Remove after 1.5
304
+ process_dependency_links = partial(
305
+ Option,
306
+ "--process-dependency-links",
307
+ dest="process_dependency_links",
308
+ action="store_true",
309
+ default=False,
310
+ help="Enable the processing of dependency links.",
311
+ ) # type: Any
312
+
313
+
314
+ def constraints():
315
+ return Option(
316
+ '-c', '--constraint',
317
+ dest='constraints',
318
+ action='append',
319
+ default=[],
320
+ metavar='file',
321
+ help='Constrain versions using the given constraints file. '
322
+ 'This option can be used multiple times.'
323
+ )
324
+
325
+
326
+ def requirements():
327
+ return Option(
328
+ '-r', '--requirement',
329
+ dest='requirements',
330
+ action='append',
331
+ default=[],
332
+ metavar='file',
333
+ help='Install from the given requirements file. '
334
+ 'This option can be used multiple times.'
335
+ )
336
+
337
+
338
+ def editable():
339
+ return Option(
340
+ '-e', '--editable',
341
+ dest='editables',
342
+ action='append',
343
+ default=[],
344
+ metavar='path/url',
345
+ help=('Install a project in editable mode (i.e. setuptools '
346
+ '"develop mode") from a local project path or a VCS url.'),
347
+ )
348
+
349
+
350
+ src = partial(
351
+ Option,
352
+ '--src', '--source', '--source-dir', '--source-directory',
353
+ dest='src_dir',
354
+ metavar='dir',
355
+ default=src_prefix,
356
+ help='Directory to check out editable projects into. '
357
+ 'The default in a virtualenv is "<venv path>/src". '
358
+ 'The default for global installs is "<current dir>/src".'
359
+ ) # type: Any
360
+
361
+
362
+ def _get_format_control(values, option):
363
+ """Get a format_control object."""
364
+ return getattr(values, option.dest)
365
+
366
+
367
+ def _handle_no_binary(option, opt_str, value, parser):
368
+ existing = getattr(parser.values, option.dest)
369
+ fmt_ctl_handle_mutual_exclude(
370
+ value, existing.no_binary, existing.only_binary,
371
+ )
372
+
373
+
374
+ def _handle_only_binary(option, opt_str, value, parser):
375
+ existing = getattr(parser.values, option.dest)
376
+ fmt_ctl_handle_mutual_exclude(
377
+ value, existing.only_binary, existing.no_binary,
378
+ )
379
+
380
+
381
+ def no_binary():
382
+ return Option(
383
+ "--no-binary", dest="format_control", action="callback",
384
+ callback=_handle_no_binary, type="str",
385
+ default=FormatControl(set(), set()),
386
+ help="Do not use binary packages. Can be supplied multiple times, and "
387
+ "each time adds to the existing value. Accepts either :all: to "
388
+ "disable all binary packages, :none: to empty the set, or one or "
389
+ "more package names with commas between them. Note that some "
390
+ "packages are tricky to compile and may fail to install when "
391
+ "this option is used on them.",
392
+ )
393
+
394
+
395
+ def only_binary():
396
+ return Option(
397
+ "--only-binary", dest="format_control", action="callback",
398
+ callback=_handle_only_binary, type="str",
399
+ default=FormatControl(set(), set()),
400
+ help="Do not use source packages. Can be supplied multiple times, and "
401
+ "each time adds to the existing value. Accepts either :all: to "
402
+ "disable all source packages, :none: to empty the set, or one or "
403
+ "more package names with commas between them. Packages without "
404
+ "binary distributions will fail to install when this option is "
405
+ "used on them.",
406
+ )
407
+
408
+
409
+ cache_dir = partial(
410
+ Option,
411
+ "--cache-dir",
412
+ dest="cache_dir",
413
+ default=USER_CACHE_DIR,
414
+ metavar="dir",
415
+ help="Store the cache data in <dir>."
416
+ )
417
+
418
+ no_cache = partial(
419
+ Option,
420
+ "--no-cache-dir",
421
+ dest="cache_dir",
422
+ action="store_false",
423
+ help="Disable the cache.",
424
+ )
425
+
426
+ no_deps = partial(
427
+ Option,
428
+ '--no-deps', '--no-dependencies',
429
+ dest='ignore_dependencies',
430
+ action='store_true',
431
+ default=False,
432
+ help="Don't install package dependencies.",
433
+ ) # type: Any
434
+
435
+ build_dir = partial(
436
+ Option,
437
+ '-b', '--build', '--build-dir', '--build-directory',
438
+ dest='build_dir',
439
+ metavar='dir',
440
+ help='Directory to unpack packages into and build in. Note that '
441
+ 'an initial build still takes place in a temporary directory. '
442
+ 'The location of temporary directories can be controlled by setting '
443
+ 'the TMPDIR environment variable (TEMP on Windows) appropriately. '
444
+ 'When passed, build directories are not cleaned in case of failures.'
445
+ ) # type: Any
446
+
447
+ ignore_requires_python = partial(
448
+ Option,
449
+ '--ignore-requires-python',
450
+ dest='ignore_requires_python',
451
+ action='store_true',
452
+ help='Ignore the Requires-Python information.'
453
+ ) # type: Any
454
+
455
+ no_build_isolation = partial(
456
+ Option,
457
+ '--no-build-isolation',
458
+ dest='build_isolation',
459
+ action='store_false',
460
+ default=True,
461
+ help='Disable isolation when building a modern source distribution. '
462
+ 'Build dependencies specified by PEP 518 must be already installed '
463
+ 'if this option is used.'
464
+ ) # type: Any
465
+
466
+ install_options = partial(
467
+ Option,
468
+ '--install-option',
469
+ dest='install_options',
470
+ action='append',
471
+ metavar='options',
472
+ help="Extra arguments to be supplied to the setup.py install "
473
+ "command (use like --install-option=\"--install-scripts=/usr/local/"
474
+ "bin\"). Use multiple --install-option options to pass multiple "
475
+ "options to setup.py install. If you are using an option with a "
476
+ "directory path, be sure to use absolute path.",
477
+ ) # type: Any
478
+
479
+ global_options = partial(
480
+ Option,
481
+ '--global-option',
482
+ dest='global_options',
483
+ action='append',
484
+ metavar='options',
485
+ help="Extra global options to be supplied to the setup.py "
486
+ "call before the install command.",
487
+ ) # type: Any
488
+
489
+ no_clean = partial(
490
+ Option,
491
+ '--no-clean',
492
+ action='store_true',
493
+ default=False,
494
+ help="Don't clean up build directories)."
495
+ ) # type: Any
496
+
497
+ pre = partial(
498
+ Option,
499
+ '--pre',
500
+ action='store_true',
501
+ default=False,
502
+ help="Include pre-release and development versions. By default, "
503
+ "pip only finds stable versions.",
504
+ ) # type: Any
505
+
506
+ disable_pip_version_check = partial(
507
+ Option,
508
+ "--disable-pip-version-check",
509
+ dest="disable_pip_version_check",
510
+ action="store_true",
511
+ default=False,
512
+ help="Don't periodically check PyPI to determine whether a new version "
513
+ "of pip is available for download. Implied with --no-index.",
514
+ ) # type: Any
515
+
516
+
517
+ # Deprecated, Remove later
518
+ always_unzip = partial(
519
+ Option,
520
+ '-Z', '--always-unzip',
521
+ dest='always_unzip',
522
+ action='store_true',
523
+ help=SUPPRESS_HELP,
524
+ ) # type: Any
525
+
526
+
527
+ def _merge_hash(option, opt_str, value, parser):
528
+ """Given a value spelled "algo:digest", append the digest to a list
529
+ pointed to in a dict by the algo name."""
530
+ if not parser.values.hashes:
531
+ parser.values.hashes = {}
532
+ try:
533
+ algo, digest = value.split(':', 1)
534
+ except ValueError:
535
+ parser.error('Arguments to %s must be a hash name '
536
+ 'followed by a value, like --hash=sha256:abcde...' %
537
+ opt_str)
538
+ if algo not in STRONG_HASHES:
539
+ parser.error('Allowed hash algorithms for %s are %s.' %
540
+ (opt_str, ', '.join(STRONG_HASHES)))
541
+ parser.values.hashes.setdefault(algo, []).append(digest)
542
+
543
+
544
+ hash = partial(
545
+ Option,
546
+ '--hash',
547
+ # Hash values eventually end up in InstallRequirement.hashes due to
548
+ # __dict__ copying in process_line().
549
+ dest='hashes',
550
+ action='callback',
551
+ callback=_merge_hash,
552
+ type='string',
553
+ help="Verify that the package's archive matches this "
554
+ 'hash before installing. Example: --hash=sha256:abcdef...',
555
+ ) # type: Any
556
+
557
+
558
+ require_hashes = partial(
559
+ Option,
560
+ '--require-hashes',
561
+ dest='require_hashes',
562
+ action='store_true',
563
+ default=False,
564
+ help='Require a hash to check each requirement against, for '
565
+ 'repeatable installs. This option is implied when any package in a '
566
+ 'requirements file has a --hash option.',
567
+ ) # type: Any
568
+
569
+
570
+ ##########
571
+ # groups #
572
+ ##########
573
+
574
+ general_group = {
575
+ 'name': 'General Options',
576
+ 'options': [
577
+ help_,
578
+ isolated_mode,
579
+ require_virtualenv,
580
+ verbose,
581
+ version,
582
+ quiet,
583
+ log,
584
+ no_input,
585
+ proxy,
586
+ retries,
587
+ timeout,
588
+ skip_requirements_regex,
589
+ exists_action,
590
+ trusted_host,
591
+ cert,
592
+ client_cert,
593
+ cache_dir,
594
+ no_cache,
595
+ disable_pip_version_check,
596
+ no_color,
597
+ ]
598
+ }
599
+
600
+ index_group = {
601
+ 'name': 'Package Index Options',
602
+ 'options': [
603
+ index_url,
604
+ extra_index_url,
605
+ no_index,
606
+ find_links,
607
+ process_dependency_links,
608
+ ]
609
+ }
@@ -0,0 +1,79 @@
1
+ """
2
+ Package containing all pip commands
3
+ """
4
+ from __future__ import absolute_import
5
+
6
+ from pip._internal.commands.completion import CompletionCommand
7
+ from pip._internal.commands.configuration import ConfigurationCommand
8
+ from pip._internal.commands.download import DownloadCommand
9
+ from pip._internal.commands.freeze import FreezeCommand
10
+ from pip._internal.commands.hash import HashCommand
11
+ from pip._internal.commands.help import HelpCommand
12
+ from pip._internal.commands.list import ListCommand
13
+ from pip._internal.commands.check import CheckCommand
14
+ from pip._internal.commands.search import SearchCommand
15
+ from pip._internal.commands.show import ShowCommand
16
+ from pip._internal.commands.install import InstallCommand
17
+ from pip._internal.commands.uninstall import UninstallCommand
18
+ from pip._internal.commands.wheel import WheelCommand
19
+
20
+ from pip._internal.utils.typing import MYPY_CHECK_RUNNING
21
+
22
+ if MYPY_CHECK_RUNNING:
23
+ from typing import List, Type
24
+ from pip._internal.basecommand import Command
25
+
26
+ commands_order = [
27
+ InstallCommand,
28
+ DownloadCommand,
29
+ UninstallCommand,
30
+ FreezeCommand,
31
+ ListCommand,
32
+ ShowCommand,
33
+ CheckCommand,
34
+ ConfigurationCommand,
35
+ SearchCommand,
36
+ WheelCommand,
37
+ HashCommand,
38
+ CompletionCommand,
39
+ HelpCommand,
40
+ ] # type: List[Type[Command]]
41
+
42
+ commands_dict = {c.name: c for c in commands_order}
43
+
44
+
45
+ def get_summaries(ordered=True):
46
+ """Yields sorted (command name, command summary) tuples."""
47
+
48
+ if ordered:
49
+ cmditems = _sort_commands(commands_dict, commands_order)
50
+ else:
51
+ cmditems = commands_dict.items()
52
+
53
+ for name, command_class in cmditems:
54
+ yield (name, command_class.summary)
55
+
56
+
57
+ def get_similar_commands(name):
58
+ """Command name auto-correct."""
59
+ from difflib import get_close_matches
60
+
61
+ name = name.lower()
62
+
63
+ close_commands = get_close_matches(name, commands_dict.keys())
64
+
65
+ if close_commands:
66
+ return close_commands[0]
67
+ else:
68
+ return False
69
+
70
+
71
+ def _sort_commands(cmddict, order):
72
+ def keyfn(key):
73
+ try:
74
+ return order.index(key[1])
75
+ except ValueError:
76
+ # unordered items should come last
77
+ return 0xff
78
+
79
+ return sorted(cmddict.items(), key=keyfn)