@scrypted/arlo 0.11.26 → 0.11.28

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 (1312) hide show
  1. package/dist/plugin.zip +0 -0
  2. package/package.json +1 -1
  3. package/venv/bin/Activate.ps1 +0 -247
  4. package/venv/bin/activate +0 -69
  5. package/venv/bin/activate.csh +0 -26
  6. package/venv/bin/activate.fish +0 -69
  7. package/venv/bin/normalizer +0 -8
  8. package/venv/bin/pip +0 -8
  9. package/venv/bin/pip3 +0 -8
  10. package/venv/bin/pip3.10 +0 -8
  11. package/venv/lib/python3.10/site-packages/_cffi_backend.cpython-310-x86_64-linux-gnu.so +0 -0
  12. package/venv/lib/python3.10/site-packages/_distutils_hack/__init__.py +0 -132
  13. package/venv/lib/python3.10/site-packages/_distutils_hack/override.py +0 -1
  14. package/venv/lib/python3.10/site-packages/aiohappyeyeballs/__init__.py +0 -13
  15. package/venv/lib/python3.10/site-packages/aiohappyeyeballs/_staggered.py +0 -202
  16. package/venv/lib/python3.10/site-packages/aiohappyeyeballs/impl.py +0 -210
  17. package/venv/lib/python3.10/site-packages/aiohappyeyeballs/py.typed +0 -0
  18. package/venv/lib/python3.10/site-packages/aiohappyeyeballs/types.py +0 -12
  19. package/venv/lib/python3.10/site-packages/aiohappyeyeballs/utils.py +0 -97
  20. package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/INSTALLER +0 -1
  21. package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/LICENSE +0 -279
  22. package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/METADATA +0 -123
  23. package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/RECORD +0 -16
  24. package/venv/lib/python3.10/site-packages/aiohappyeyeballs-2.4.6.dist-info/WHEEL +0 -4
  25. package/venv/lib/python3.10/site-packages/aiohttp/.hash/_cparser.pxd.hash +0 -1
  26. package/venv/lib/python3.10/site-packages/aiohttp/.hash/_find_header.pxd.hash +0 -1
  27. package/venv/lib/python3.10/site-packages/aiohttp/.hash/_http_parser.pyx.hash +0 -1
  28. package/venv/lib/python3.10/site-packages/aiohttp/.hash/_http_writer.pyx.hash +0 -1
  29. package/venv/lib/python3.10/site-packages/aiohttp/.hash/hdrs.py.hash +0 -1
  30. package/venv/lib/python3.10/site-packages/aiohttp/__init__.py +0 -264
  31. package/venv/lib/python3.10/site-packages/aiohttp/_cparser.pxd +0 -158
  32. package/venv/lib/python3.10/site-packages/aiohttp/_find_header.pxd +0 -2
  33. package/venv/lib/python3.10/site-packages/aiohttp/_headers.pxi +0 -83
  34. package/venv/lib/python3.10/site-packages/aiohttp/_http_parser.cpython-310-x86_64-linux-gnu.so +0 -0
  35. package/venv/lib/python3.10/site-packages/aiohttp/_http_parser.pyx +0 -837
  36. package/venv/lib/python3.10/site-packages/aiohttp/_http_writer.cpython-310-x86_64-linux-gnu.so +0 -0
  37. package/venv/lib/python3.10/site-packages/aiohttp/_http_writer.pyx +0 -162
  38. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/.hash/mask.pxd.hash +0 -1
  39. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/.hash/mask.pyx.hash +0 -1
  40. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/.hash/reader_c.pxd.hash +0 -1
  41. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/__init__.py +0 -1
  42. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/helpers.py +0 -147
  43. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/mask.cpython-310-x86_64-linux-gnu.so +0 -0
  44. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/mask.pxd +0 -3
  45. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/mask.pyx +0 -48
  46. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/models.py +0 -84
  47. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader.py +0 -31
  48. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_c.cpython-310-x86_64-linux-gnu.so +0 -0
  49. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_c.pxd +0 -102
  50. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_c.py +0 -468
  51. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/reader_py.py +0 -468
  52. package/venv/lib/python3.10/site-packages/aiohttp/_websocket/writer.py +0 -177
  53. package/venv/lib/python3.10/site-packages/aiohttp/abc.py +0 -253
  54. package/venv/lib/python3.10/site-packages/aiohttp/base_protocol.py +0 -100
  55. package/venv/lib/python3.10/site-packages/aiohttp/client.py +0 -1550
  56. package/venv/lib/python3.10/site-packages/aiohttp/client_exceptions.py +0 -421
  57. package/venv/lib/python3.10/site-packages/aiohttp/client_proto.py +0 -307
  58. package/venv/lib/python3.10/site-packages/aiohttp/client_reqrep.py +0 -1315
  59. package/venv/lib/python3.10/site-packages/aiohttp/client_ws.py +0 -426
  60. package/venv/lib/python3.10/site-packages/aiohttp/compression_utils.py +0 -173
  61. package/venv/lib/python3.10/site-packages/aiohttp/connector.py +0 -1652
  62. package/venv/lib/python3.10/site-packages/aiohttp/cookiejar.py +0 -495
  63. package/venv/lib/python3.10/site-packages/aiohttp/formdata.py +0 -182
  64. package/venv/lib/python3.10/site-packages/aiohttp/hdrs.py +0 -121
  65. package/venv/lib/python3.10/site-packages/aiohttp/helpers.py +0 -944
  66. package/venv/lib/python3.10/site-packages/aiohttp/http.py +0 -72
  67. package/venv/lib/python3.10/site-packages/aiohttp/http_exceptions.py +0 -112
  68. package/venv/lib/python3.10/site-packages/aiohttp/http_parser.py +0 -1046
  69. package/venv/lib/python3.10/site-packages/aiohttp/http_websocket.py +0 -36
  70. package/venv/lib/python3.10/site-packages/aiohttp/http_writer.py +0 -249
  71. package/venv/lib/python3.10/site-packages/aiohttp/log.py +0 -8
  72. package/venv/lib/python3.10/site-packages/aiohttp/multipart.py +0 -1071
  73. package/venv/lib/python3.10/site-packages/aiohttp/payload.py +0 -519
  74. package/venv/lib/python3.10/site-packages/aiohttp/payload_streamer.py +0 -78
  75. package/venv/lib/python3.10/site-packages/aiohttp/py.typed +0 -1
  76. package/venv/lib/python3.10/site-packages/aiohttp/pytest_plugin.py +0 -436
  77. package/venv/lib/python3.10/site-packages/aiohttp/resolver.py +0 -187
  78. package/venv/lib/python3.10/site-packages/aiohttp/streams.py +0 -727
  79. package/venv/lib/python3.10/site-packages/aiohttp/tcp_helpers.py +0 -37
  80. package/venv/lib/python3.10/site-packages/aiohttp/test_utils.py +0 -770
  81. package/venv/lib/python3.10/site-packages/aiohttp/tracing.py +0 -470
  82. package/venv/lib/python3.10/site-packages/aiohttp/typedefs.py +0 -69
  83. package/venv/lib/python3.10/site-packages/aiohttp/web.py +0 -605
  84. package/venv/lib/python3.10/site-packages/aiohttp/web_app.py +0 -620
  85. package/venv/lib/python3.10/site-packages/aiohttp/web_exceptions.py +0 -452
  86. package/venv/lib/python3.10/site-packages/aiohttp/web_fileresponse.py +0 -418
  87. package/venv/lib/python3.10/site-packages/aiohttp/web_log.py +0 -216
  88. package/venv/lib/python3.10/site-packages/aiohttp/web_middlewares.py +0 -121
  89. package/venv/lib/python3.10/site-packages/aiohttp/web_protocol.py +0 -750
  90. package/venv/lib/python3.10/site-packages/aiohttp/web_request.py +0 -916
  91. package/venv/lib/python3.10/site-packages/aiohttp/web_response.py +0 -840
  92. package/venv/lib/python3.10/site-packages/aiohttp/web_routedef.py +0 -214
  93. package/venv/lib/python3.10/site-packages/aiohttp/web_runner.py +0 -399
  94. package/venv/lib/python3.10/site-packages/aiohttp/web_server.py +0 -84
  95. package/venv/lib/python3.10/site-packages/aiohttp/web_urldispatcher.py +0 -1301
  96. package/venv/lib/python3.10/site-packages/aiohttp/web_ws.py +0 -622
  97. package/venv/lib/python3.10/site-packages/aiohttp/worker.py +0 -252
  98. package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/INSTALLER +0 -1
  99. package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/LICENSE.txt +0 -13
  100. package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/METADATA +0 -250
  101. package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/RECORD +0 -132
  102. package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/REQUESTED +0 -0
  103. package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/WHEEL +0 -6
  104. package/venv/lib/python3.10/site-packages/aiohttp-3.11.12.dist-info/top_level.txt +0 -1
  105. package/venv/lib/python3.10/site-packages/aiosignal/__init__.py +0 -36
  106. package/venv/lib/python3.10/site-packages/aiosignal/__init__.pyi +0 -12
  107. package/venv/lib/python3.10/site-packages/aiosignal/py.typed +0 -0
  108. package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/INSTALLER +0 -1
  109. package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/LICENSE +0 -201
  110. package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/METADATA +0 -123
  111. package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/RECORD +0 -10
  112. package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/WHEEL +0 -6
  113. package/venv/lib/python3.10/site-packages/aiosignal-1.3.2.dist-info/top_level.txt +0 -1
  114. package/venv/lib/python3.10/site-packages/async_timeout/__init__.py +0 -276
  115. package/venv/lib/python3.10/site-packages/async_timeout/py.typed +0 -1
  116. package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/INSTALLER +0 -1
  117. package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/LICENSE +0 -13
  118. package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/METADATA +0 -163
  119. package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/RECORD +0 -11
  120. package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/REQUESTED +0 -0
  121. package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/WHEEL +0 -5
  122. package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/top_level.txt +0 -1
  123. package/venv/lib/python3.10/site-packages/async_timeout-5.0.1.dist-info/zip-safe +0 -1
  124. package/venv/lib/python3.10/site-packages/attr/__init__.py +0 -104
  125. package/venv/lib/python3.10/site-packages/attr/__init__.pyi +0 -389
  126. package/venv/lib/python3.10/site-packages/attr/_cmp.py +0 -160
  127. package/venv/lib/python3.10/site-packages/attr/_cmp.pyi +0 -13
  128. package/venv/lib/python3.10/site-packages/attr/_compat.py +0 -94
  129. package/venv/lib/python3.10/site-packages/attr/_config.py +0 -31
  130. package/venv/lib/python3.10/site-packages/attr/_funcs.py +0 -468
  131. package/venv/lib/python3.10/site-packages/attr/_make.py +0 -3055
  132. package/venv/lib/python3.10/site-packages/attr/_next_gen.py +0 -623
  133. package/venv/lib/python3.10/site-packages/attr/_typing_compat.pyi +0 -15
  134. package/venv/lib/python3.10/site-packages/attr/_version_info.py +0 -86
  135. package/venv/lib/python3.10/site-packages/attr/_version_info.pyi +0 -9
  136. package/venv/lib/python3.10/site-packages/attr/converters.py +0 -162
  137. package/venv/lib/python3.10/site-packages/attr/converters.pyi +0 -19
  138. package/venv/lib/python3.10/site-packages/attr/exceptions.py +0 -95
  139. package/venv/lib/python3.10/site-packages/attr/exceptions.pyi +0 -17
  140. package/venv/lib/python3.10/site-packages/attr/filters.py +0 -72
  141. package/venv/lib/python3.10/site-packages/attr/filters.pyi +0 -6
  142. package/venv/lib/python3.10/site-packages/attr/py.typed +0 -0
  143. package/venv/lib/python3.10/site-packages/attr/setters.py +0 -79
  144. package/venv/lib/python3.10/site-packages/attr/setters.pyi +0 -20
  145. package/venv/lib/python3.10/site-packages/attr/validators.py +0 -710
  146. package/venv/lib/python3.10/site-packages/attr/validators.pyi +0 -86
  147. package/venv/lib/python3.10/site-packages/attrs/__init__.py +0 -69
  148. package/venv/lib/python3.10/site-packages/attrs/__init__.pyi +0 -263
  149. package/venv/lib/python3.10/site-packages/attrs/converters.py +0 -3
  150. package/venv/lib/python3.10/site-packages/attrs/exceptions.py +0 -3
  151. package/venv/lib/python3.10/site-packages/attrs/filters.py +0 -3
  152. package/venv/lib/python3.10/site-packages/attrs/py.typed +0 -0
  153. package/venv/lib/python3.10/site-packages/attrs/setters.py +0 -3
  154. package/venv/lib/python3.10/site-packages/attrs/validators.py +0 -3
  155. package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/INSTALLER +0 -1
  156. package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/METADATA +0 -232
  157. package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/RECORD +0 -55
  158. package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/WHEEL +0 -4
  159. package/venv/lib/python3.10/site-packages/attrs-25.1.0.dist-info/licenses/LICENSE +0 -21
  160. package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/INSTALLER +0 -1
  161. package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/METADATA +0 -123
  162. package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/RECORD +0 -90
  163. package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/REQUESTED +0 -0
  164. package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/WHEEL +0 -4
  165. package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/licenses/AUTHORS +0 -49
  166. package/venv/lib/python3.10/site-packages/beautifulsoup4-4.13.3.dist-info/licenses/LICENSE +0 -31
  167. package/venv/lib/python3.10/site-packages/bs4/__init__.py +0 -1170
  168. package/venv/lib/python3.10/site-packages/bs4/_deprecation.py +0 -80
  169. package/venv/lib/python3.10/site-packages/bs4/_typing.py +0 -196
  170. package/venv/lib/python3.10/site-packages/bs4/_warnings.py +0 -98
  171. package/venv/lib/python3.10/site-packages/bs4/builder/__init__.py +0 -848
  172. package/venv/lib/python3.10/site-packages/bs4/builder/_html5lib.py +0 -594
  173. package/venv/lib/python3.10/site-packages/bs4/builder/_htmlparser.py +0 -474
  174. package/venv/lib/python3.10/site-packages/bs4/builder/_lxml.py +0 -490
  175. package/venv/lib/python3.10/site-packages/bs4/css.py +0 -338
  176. package/venv/lib/python3.10/site-packages/bs4/dammit.py +0 -1408
  177. package/venv/lib/python3.10/site-packages/bs4/diagnose.py +0 -268
  178. package/venv/lib/python3.10/site-packages/bs4/element.py +0 -2886
  179. package/venv/lib/python3.10/site-packages/bs4/exceptions.py +0 -28
  180. package/venv/lib/python3.10/site-packages/bs4/filter.py +0 -755
  181. package/venv/lib/python3.10/site-packages/bs4/formatter.py +0 -276
  182. package/venv/lib/python3.10/site-packages/bs4/py.typed +0 -0
  183. package/venv/lib/python3.10/site-packages/bs4/tests/__init__.py +0 -1305
  184. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4670634698080256.testcase +0 -1
  185. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4818336571064320.testcase +0 -1
  186. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4999465949331456.testcase +0 -1
  187. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5000587759190016.testcase +0 -0
  188. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5167584867909632.testcase +0 -0
  189. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5270998950477824.testcase +0 -0
  190. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5375146639360000.testcase +0 -1
  191. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5492400320282624.testcase +0 -0
  192. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5703933063462912.testcase +0 -2
  193. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5843991618256896.testcase +0 -1
  194. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5984173902397440.testcase +0 -0
  195. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6124268085182464.testcase +0 -1
  196. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6241471367348224.testcase +0 -1
  197. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6306874195312640.testcase +0 -1
  198. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6450958476902400.testcase +0 -0
  199. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6600557255327744.testcase +0 -0
  200. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/crash-0d306a50c8ed8bcd0785b67000fcd5dea1d33f08.testcase +0 -0
  201. package/venv/lib/python3.10/site-packages/bs4/tests/fuzz/crash-ffbdfa8a2b26f13537b68d3794b0478a4090ee4a.testcase +0 -0
  202. package/venv/lib/python3.10/site-packages/bs4/tests/test_builder.py +0 -28
  203. package/venv/lib/python3.10/site-packages/bs4/tests/test_builder_registry.py +0 -139
  204. package/venv/lib/python3.10/site-packages/bs4/tests/test_css.py +0 -536
  205. package/venv/lib/python3.10/site-packages/bs4/tests/test_dammit.py +0 -433
  206. package/venv/lib/python3.10/site-packages/bs4/tests/test_element.py +0 -138
  207. package/venv/lib/python3.10/site-packages/bs4/tests/test_filter.py +0 -674
  208. package/venv/lib/python3.10/site-packages/bs4/tests/test_formatter.py +0 -170
  209. package/venv/lib/python3.10/site-packages/bs4/tests/test_fuzz.py +0 -181
  210. package/venv/lib/python3.10/site-packages/bs4/tests/test_html5lib.py +0 -264
  211. package/venv/lib/python3.10/site-packages/bs4/tests/test_htmlparser.py +0 -161
  212. package/venv/lib/python3.10/site-packages/bs4/tests/test_lxml.py +0 -196
  213. package/venv/lib/python3.10/site-packages/bs4/tests/test_navigablestring.py +0 -144
  214. package/venv/lib/python3.10/site-packages/bs4/tests/test_pageelement.py +0 -437
  215. package/venv/lib/python3.10/site-packages/bs4/tests/test_soup.py +0 -602
  216. package/venv/lib/python3.10/site-packages/bs4/tests/test_tag.py +0 -241
  217. package/venv/lib/python3.10/site-packages/bs4/tests/test_tree.py +0 -1452
  218. package/venv/lib/python3.10/site-packages/cachetools/__init__.py +0 -859
  219. package/venv/lib/python3.10/site-packages/cachetools/func.py +0 -121
  220. package/venv/lib/python3.10/site-packages/cachetools/keys.py +0 -62
  221. package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/INSTALLER +0 -1
  222. package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/LICENSE +0 -20
  223. package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/METADATA +0 -151
  224. package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/RECORD +0 -13
  225. package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/REQUESTED +0 -0
  226. package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/WHEEL +0 -5
  227. package/venv/lib/python3.10/site-packages/cachetools-5.5.1.dist-info/top_level.txt +0 -1
  228. package/venv/lib/python3.10/site-packages/certifi/__init__.py +0 -4
  229. package/venv/lib/python3.10/site-packages/certifi/__main__.py +0 -12
  230. package/venv/lib/python3.10/site-packages/certifi/cacert.pem +0 -4897
  231. package/venv/lib/python3.10/site-packages/certifi/core.py +0 -114
  232. package/venv/lib/python3.10/site-packages/certifi/py.typed +0 -0
  233. package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/INSTALLER +0 -1
  234. package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/LICENSE +0 -20
  235. package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/METADATA +0 -77
  236. package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/RECORD +0 -14
  237. package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/WHEEL +0 -5
  238. package/venv/lib/python3.10/site-packages/certifi-2025.1.31.dist-info/top_level.txt +0 -1
  239. package/venv/lib/python3.10/site-packages/cffi/__init__.py +0 -14
  240. package/venv/lib/python3.10/site-packages/cffi/_cffi_errors.h +0 -149
  241. package/venv/lib/python3.10/site-packages/cffi/_cffi_include.h +0 -389
  242. package/venv/lib/python3.10/site-packages/cffi/_embedding.h +0 -550
  243. package/venv/lib/python3.10/site-packages/cffi/_imp_emulation.py +0 -83
  244. package/venv/lib/python3.10/site-packages/cffi/_shimmed_dist_utils.py +0 -45
  245. package/venv/lib/python3.10/site-packages/cffi/api.py +0 -967
  246. package/venv/lib/python3.10/site-packages/cffi/backend_ctypes.py +0 -1121
  247. package/venv/lib/python3.10/site-packages/cffi/cffi_opcode.py +0 -187
  248. package/venv/lib/python3.10/site-packages/cffi/commontypes.py +0 -82
  249. package/venv/lib/python3.10/site-packages/cffi/cparser.py +0 -1015
  250. package/venv/lib/python3.10/site-packages/cffi/error.py +0 -31
  251. package/venv/lib/python3.10/site-packages/cffi/ffiplatform.py +0 -113
  252. package/venv/lib/python3.10/site-packages/cffi/lock.py +0 -30
  253. package/venv/lib/python3.10/site-packages/cffi/model.py +0 -618
  254. package/venv/lib/python3.10/site-packages/cffi/parse_c_type.h +0 -181
  255. package/venv/lib/python3.10/site-packages/cffi/pkgconfig.py +0 -121
  256. package/venv/lib/python3.10/site-packages/cffi/recompiler.py +0 -1598
  257. package/venv/lib/python3.10/site-packages/cffi/setuptools_ext.py +0 -216
  258. package/venv/lib/python3.10/site-packages/cffi/vengine_cpy.py +0 -1084
  259. package/venv/lib/python3.10/site-packages/cffi/vengine_gen.py +0 -679
  260. package/venv/lib/python3.10/site-packages/cffi/verifier.py +0 -306
  261. package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/INSTALLER +0 -1
  262. package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/LICENSE +0 -26
  263. package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/METADATA +0 -40
  264. package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/RECORD +0 -48
  265. package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/WHEEL +0 -6
  266. package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/entry_points.txt +0 -2
  267. package/venv/lib/python3.10/site-packages/cffi-1.17.1.dist-info/top_level.txt +0 -2
  268. package/venv/lib/python3.10/site-packages/charset_normalizer/__init__.py +0 -48
  269. package/venv/lib/python3.10/site-packages/charset_normalizer/__main__.py +0 -6
  270. package/venv/lib/python3.10/site-packages/charset_normalizer/api.py +0 -668
  271. package/venv/lib/python3.10/site-packages/charset_normalizer/cd.py +0 -395
  272. package/venv/lib/python3.10/site-packages/charset_normalizer/cli/__init__.py +0 -8
  273. package/venv/lib/python3.10/site-packages/charset_normalizer/cli/__main__.py +0 -321
  274. package/venv/lib/python3.10/site-packages/charset_normalizer/constant.py +0 -1998
  275. package/venv/lib/python3.10/site-packages/charset_normalizer/legacy.py +0 -66
  276. package/venv/lib/python3.10/site-packages/charset_normalizer/md.cpython-310-x86_64-linux-gnu.so +0 -0
  277. package/venv/lib/python3.10/site-packages/charset_normalizer/md.py +0 -630
  278. package/venv/lib/python3.10/site-packages/charset_normalizer/md__mypyc.cpython-310-x86_64-linux-gnu.so +0 -0
  279. package/venv/lib/python3.10/site-packages/charset_normalizer/models.py +0 -360
  280. package/venv/lib/python3.10/site-packages/charset_normalizer/py.typed +0 -0
  281. package/venv/lib/python3.10/site-packages/charset_normalizer/utils.py +0 -408
  282. package/venv/lib/python3.10/site-packages/charset_normalizer/version.py +0 -8
  283. package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/INSTALLER +0 -1
  284. package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/LICENSE +0 -21
  285. package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/METADATA +0 -721
  286. package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/RECORD +0 -35
  287. package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/WHEEL +0 -6
  288. package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/entry_points.txt +0 -2
  289. package/venv/lib/python3.10/site-packages/charset_normalizer-3.4.1.dist-info/top_level.txt +0 -1
  290. package/venv/lib/python3.10/site-packages/cloudscraper/__init__.py +0 -407
  291. package/venv/lib/python3.10/site-packages/cloudscraper/captcha/2captcha.py +0 -258
  292. package/venv/lib/python3.10/site-packages/cloudscraper/captcha/9kw.py +0 -214
  293. package/venv/lib/python3.10/site-packages/cloudscraper/captcha/__init__.py +0 -47
  294. package/venv/lib/python3.10/site-packages/cloudscraper/captcha/anticaptcha.py +0 -199
  295. package/venv/lib/python3.10/site-packages/cloudscraper/captcha/capmonster.py +0 -199
  296. package/venv/lib/python3.10/site-packages/cloudscraper/captcha/capsolver.py +0 -188
  297. package/venv/lib/python3.10/site-packages/cloudscraper/captcha/deathbycaptcha.py +0 -276
  298. package/venv/lib/python3.10/site-packages/cloudscraper/cloudflare.py +0 -490
  299. package/venv/lib/python3.10/site-packages/cloudscraper/exceptions.py +0 -111
  300. package/venv/lib/python3.10/site-packages/cloudscraper/help.py +0 -72
  301. package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/__init__.py +0 -56
  302. package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/chakracore.py +0 -103
  303. package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/encapsulated.py +0 -62
  304. package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/js2py.py +0 -44
  305. package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/jsunfuck.py +0 -97
  306. package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/native.py +0 -233
  307. package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/nodejs.py +0 -49
  308. package/venv/lib/python3.10/site-packages/cloudscraper/interpreters/v8.py +0 -33
  309. package/venv/lib/python3.10/site-packages/cloudscraper/user_agent/__init__.py +0 -124
  310. package/venv/lib/python3.10/site-packages/cloudscraper/user_agent/browsers.json +0 -7913
  311. package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/INSTALLER +0 -1
  312. package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/LICENSE +0 -22
  313. package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/METADATA +0 -674
  314. package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/RECORD +0 -48
  315. package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/REQUESTED +0 -0
  316. package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/WHEEL +0 -6
  317. package/venv/lib/python3.10/site-packages/cloudscraper-1.2.71.dist-info/top_level.txt +0 -1
  318. package/venv/lib/python3.10/site-packages/curl_cffi/__init__.py +0 -37
  319. package/venv/lib/python3.10/site-packages/curl_cffi/__version__.py +0 -8
  320. package/venv/lib/python3.10/site-packages/curl_cffi/_asyncio_selector.py +0 -344
  321. package/venv/lib/python3.10/site-packages/curl_cffi/_wrapper.abi3.so +0 -0
  322. package/venv/lib/python3.10/site-packages/curl_cffi/aio.py +0 -257
  323. package/venv/lib/python3.10/site-packages/curl_cffi/const.py +0 -581
  324. package/venv/lib/python3.10/site-packages/curl_cffi/curl.py +0 -548
  325. package/venv/lib/python3.10/site-packages/curl_cffi/py.typed +0 -1
  326. package/venv/lib/python3.10/site-packages/curl_cffi/requests/__init__.py +0 -146
  327. package/venv/lib/python3.10/site-packages/curl_cffi/requests/cookies.py +0 -355
  328. package/venv/lib/python3.10/site-packages/curl_cffi/requests/errors.py +0 -7
  329. package/venv/lib/python3.10/site-packages/curl_cffi/requests/exceptions.py +0 -219
  330. package/venv/lib/python3.10/site-packages/curl_cffi/requests/headers.py +0 -348
  331. package/venv/lib/python3.10/site-packages/curl_cffi/requests/impersonate.py +0 -360
  332. package/venv/lib/python3.10/site-packages/curl_cffi/requests/models.py +0 -292
  333. package/venv/lib/python3.10/site-packages/curl_cffi/requests/session.py +0 -1021
  334. package/venv/lib/python3.10/site-packages/curl_cffi/requests/utils.py +0 -663
  335. package/venv/lib/python3.10/site-packages/curl_cffi/requests/websockets.py +0 -711
  336. package/venv/lib/python3.10/site-packages/curl_cffi/utils.py +0 -13
  337. package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/INSTALLER +0 -1
  338. package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/LICENSE +0 -21
  339. package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/METADATA +0 -333
  340. package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/RECORD +0 -43
  341. package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/REQUESTED +0 -0
  342. package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/WHEEL +0 -6
  343. package/venv/lib/python3.10/site-packages/curl_cffi-0.9.0.dist-info/top_level.txt +0 -1
  344. package/venv/lib/python3.10/site-packages/distutils-precedence.pth +0 -1
  345. package/venv/lib/python3.10/site-packages/frozenlist/__init__.py +0 -98
  346. package/venv/lib/python3.10/site-packages/frozenlist/__init__.pyi +0 -47
  347. package/venv/lib/python3.10/site-packages/frozenlist/_frozenlist.cpython-310-x86_64-linux-gnu.so +0 -0
  348. package/venv/lib/python3.10/site-packages/frozenlist/_frozenlist.pyx +0 -123
  349. package/venv/lib/python3.10/site-packages/frozenlist/py.typed +0 -1
  350. package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/INSTALLER +0 -1
  351. package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/LICENSE +0 -201
  352. package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/METADATA +0 -477
  353. package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/RECORD +0 -12
  354. package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/WHEEL +0 -8
  355. package/venv/lib/python3.10/site-packages/frozenlist-1.5.0.dist-info/top_level.txt +0 -1
  356. package/venv/lib/python3.10/site-packages/idna/__init__.py +0 -45
  357. package/venv/lib/python3.10/site-packages/idna/codec.py +0 -122
  358. package/venv/lib/python3.10/site-packages/idna/compat.py +0 -15
  359. package/venv/lib/python3.10/site-packages/idna/core.py +0 -437
  360. package/venv/lib/python3.10/site-packages/idna/idnadata.py +0 -4243
  361. package/venv/lib/python3.10/site-packages/idna/intranges.py +0 -57
  362. package/venv/lib/python3.10/site-packages/idna/package_data.py +0 -1
  363. package/venv/lib/python3.10/site-packages/idna/py.typed +0 -0
  364. package/venv/lib/python3.10/site-packages/idna/uts46data.py +0 -8681
  365. package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/INSTALLER +0 -1
  366. package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/LICENSE.md +0 -31
  367. package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/METADATA +0 -250
  368. package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/RECORD +0 -22
  369. package/venv/lib/python3.10/site-packages/idna-3.10.dist-info/WHEEL +0 -4
  370. package/venv/lib/python3.10/site-packages/multidict/__init__.py +0 -48
  371. package/venv/lib/python3.10/site-packages/multidict/__init__.pyi +0 -152
  372. package/venv/lib/python3.10/site-packages/multidict/_abc.py +0 -48
  373. package/venv/lib/python3.10/site-packages/multidict/_compat.py +0 -14
  374. package/venv/lib/python3.10/site-packages/multidict/_multidict.cpython-310-x86_64-linux-gnu.so +0 -0
  375. package/venv/lib/python3.10/site-packages/multidict/_multidict_base.py +0 -152
  376. package/venv/lib/python3.10/site-packages/multidict/_multidict_py.py +0 -527
  377. package/venv/lib/python3.10/site-packages/multidict/py.typed +0 -1
  378. package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/INSTALLER +0 -1
  379. package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/LICENSE +0 -13
  380. package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/METADATA +0 -140
  381. package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/RECORD +0 -19
  382. package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/WHEEL +0 -6
  383. package/venv/lib/python3.10/site-packages/multidict-6.1.0.dist-info/top_level.txt +0 -1
  384. package/venv/lib/python3.10/site-packages/paho/__init__.py +0 -0
  385. package/venv/lib/python3.10/site-packages/paho/mqtt/__init__.py +0 -5
  386. package/venv/lib/python3.10/site-packages/paho/mqtt/client.py +0 -5004
  387. package/venv/lib/python3.10/site-packages/paho/mqtt/enums.py +0 -113
  388. package/venv/lib/python3.10/site-packages/paho/mqtt/matcher.py +0 -78
  389. package/venv/lib/python3.10/site-packages/paho/mqtt/packettypes.py +0 -43
  390. package/venv/lib/python3.10/site-packages/paho/mqtt/properties.py +0 -421
  391. package/venv/lib/python3.10/site-packages/paho/mqtt/publish.py +0 -306
  392. package/venv/lib/python3.10/site-packages/paho/mqtt/py.typed +0 -0
  393. package/venv/lib/python3.10/site-packages/paho/mqtt/reasoncodes.py +0 -223
  394. package/venv/lib/python3.10/site-packages/paho/mqtt/subscribe.py +0 -281
  395. package/venv/lib/python3.10/site-packages/paho/mqtt/subscribeoptions.py +0 -113
  396. package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/INSTALLER +0 -1
  397. package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/METADATA +0 -635
  398. package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/RECORD +0 -29
  399. package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/REQUESTED +0 -0
  400. package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/WHEEL +0 -4
  401. package/venv/lib/python3.10/site-packages/paho_mqtt-2.1.0.dist-info/licenses/LICENSE.txt +0 -3
  402. package/venv/lib/python3.10/site-packages/pip/__init__.py +0 -13
  403. package/venv/lib/python3.10/site-packages/pip/__main__.py +0 -31
  404. package/venv/lib/python3.10/site-packages/pip/_internal/__init__.py +0 -19
  405. package/venv/lib/python3.10/site-packages/pip/_internal/build_env.py +0 -296
  406. package/venv/lib/python3.10/site-packages/pip/_internal/cache.py +0 -264
  407. package/venv/lib/python3.10/site-packages/pip/_internal/cli/__init__.py +0 -4
  408. package/venv/lib/python3.10/site-packages/pip/_internal/cli/autocompletion.py +0 -171
  409. package/venv/lib/python3.10/site-packages/pip/_internal/cli/base_command.py +0 -220
  410. package/venv/lib/python3.10/site-packages/pip/_internal/cli/cmdoptions.py +0 -1018
  411. package/venv/lib/python3.10/site-packages/pip/_internal/cli/command_context.py +0 -27
  412. package/venv/lib/python3.10/site-packages/pip/_internal/cli/main.py +0 -70
  413. package/venv/lib/python3.10/site-packages/pip/_internal/cli/main_parser.py +0 -87
  414. package/venv/lib/python3.10/site-packages/pip/_internal/cli/parser.py +0 -292
  415. package/venv/lib/python3.10/site-packages/pip/_internal/cli/progress_bars.py +0 -321
  416. package/venv/lib/python3.10/site-packages/pip/_internal/cli/req_command.py +0 -506
  417. package/venv/lib/python3.10/site-packages/pip/_internal/cli/spinners.py +0 -157
  418. package/venv/lib/python3.10/site-packages/pip/_internal/cli/status_codes.py +0 -6
  419. package/venv/lib/python3.10/site-packages/pip/_internal/commands/__init__.py +0 -127
  420. package/venv/lib/python3.10/site-packages/pip/_internal/commands/cache.py +0 -223
  421. package/venv/lib/python3.10/site-packages/pip/_internal/commands/check.py +0 -53
  422. package/venv/lib/python3.10/site-packages/pip/_internal/commands/completion.py +0 -96
  423. package/venv/lib/python3.10/site-packages/pip/_internal/commands/configuration.py +0 -266
  424. package/venv/lib/python3.10/site-packages/pip/_internal/commands/debug.py +0 -202
  425. package/venv/lib/python3.10/site-packages/pip/_internal/commands/download.py +0 -140
  426. package/venv/lib/python3.10/site-packages/pip/_internal/commands/freeze.py +0 -97
  427. package/venv/lib/python3.10/site-packages/pip/_internal/commands/hash.py +0 -59
  428. package/venv/lib/python3.10/site-packages/pip/_internal/commands/help.py +0 -41
  429. package/venv/lib/python3.10/site-packages/pip/_internal/commands/index.py +0 -139
  430. package/venv/lib/python3.10/site-packages/pip/_internal/commands/install.py +0 -771
  431. package/venv/lib/python3.10/site-packages/pip/_internal/commands/list.py +0 -363
  432. package/venv/lib/python3.10/site-packages/pip/_internal/commands/search.py +0 -174
  433. package/venv/lib/python3.10/site-packages/pip/_internal/commands/show.py +0 -178
  434. package/venv/lib/python3.10/site-packages/pip/_internal/commands/uninstall.py +0 -105
  435. package/venv/lib/python3.10/site-packages/pip/_internal/commands/wheel.py +0 -178
  436. package/venv/lib/python3.10/site-packages/pip/_internal/configuration.py +0 -366
  437. package/venv/lib/python3.10/site-packages/pip/_internal/distributions/__init__.py +0 -21
  438. package/venv/lib/python3.10/site-packages/pip/_internal/distributions/base.py +0 -36
  439. package/venv/lib/python3.10/site-packages/pip/_internal/distributions/installed.py +0 -20
  440. package/venv/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py +0 -127
  441. package/venv/lib/python3.10/site-packages/pip/_internal/distributions/wheel.py +0 -31
  442. package/venv/lib/python3.10/site-packages/pip/_internal/exceptions.py +0 -658
  443. package/venv/lib/python3.10/site-packages/pip/_internal/index/__init__.py +0 -2
  444. package/venv/lib/python3.10/site-packages/pip/_internal/index/collector.py +0 -648
  445. package/venv/lib/python3.10/site-packages/pip/_internal/index/package_finder.py +0 -1004
  446. package/venv/lib/python3.10/site-packages/pip/_internal/index/sources.py +0 -224
  447. package/venv/lib/python3.10/site-packages/pip/_internal/locations/__init__.py +0 -520
  448. package/venv/lib/python3.10/site-packages/pip/_internal/locations/_distutils.py +0 -169
  449. package/venv/lib/python3.10/site-packages/pip/_internal/locations/_sysconfig.py +0 -219
  450. package/venv/lib/python3.10/site-packages/pip/_internal/locations/base.py +0 -52
  451. package/venv/lib/python3.10/site-packages/pip/_internal/main.py +0 -12
  452. package/venv/lib/python3.10/site-packages/pip/_internal/metadata/__init__.py +0 -62
  453. package/venv/lib/python3.10/site-packages/pip/_internal/metadata/base.py +0 -546
  454. package/venv/lib/python3.10/site-packages/pip/_internal/metadata/pkg_resources.py +0 -256
  455. package/venv/lib/python3.10/site-packages/pip/_internal/models/__init__.py +0 -2
  456. package/venv/lib/python3.10/site-packages/pip/_internal/models/candidate.py +0 -34
  457. package/venv/lib/python3.10/site-packages/pip/_internal/models/direct_url.py +0 -220
  458. package/venv/lib/python3.10/site-packages/pip/_internal/models/format_control.py +0 -80
  459. package/venv/lib/python3.10/site-packages/pip/_internal/models/index.py +0 -28
  460. package/venv/lib/python3.10/site-packages/pip/_internal/models/link.py +0 -288
  461. package/venv/lib/python3.10/site-packages/pip/_internal/models/scheme.py +0 -31
  462. package/venv/lib/python3.10/site-packages/pip/_internal/models/search_scope.py +0 -129
  463. package/venv/lib/python3.10/site-packages/pip/_internal/models/selection_prefs.py +0 -51
  464. package/venv/lib/python3.10/site-packages/pip/_internal/models/target_python.py +0 -110
  465. package/venv/lib/python3.10/site-packages/pip/_internal/models/wheel.py +0 -89
  466. package/venv/lib/python3.10/site-packages/pip/_internal/network/__init__.py +0 -2
  467. package/venv/lib/python3.10/site-packages/pip/_internal/network/auth.py +0 -323
  468. package/venv/lib/python3.10/site-packages/pip/_internal/network/cache.py +0 -69
  469. package/venv/lib/python3.10/site-packages/pip/_internal/network/download.py +0 -185
  470. package/venv/lib/python3.10/site-packages/pip/_internal/network/lazy_wheel.py +0 -210
  471. package/venv/lib/python3.10/site-packages/pip/_internal/network/session.py +0 -454
  472. package/venv/lib/python3.10/site-packages/pip/_internal/network/utils.py +0 -96
  473. package/venv/lib/python3.10/site-packages/pip/_internal/network/xmlrpc.py +0 -60
  474. package/venv/lib/python3.10/site-packages/pip/_internal/operations/__init__.py +0 -0
  475. package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/__init__.py +0 -0
  476. package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata.py +0 -39
  477. package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_editable.py +0 -41
  478. package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_legacy.py +0 -74
  479. package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel.py +0 -37
  480. package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_editable.py +0 -46
  481. package/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_legacy.py +0 -102
  482. package/venv/lib/python3.10/site-packages/pip/_internal/operations/check.py +0 -149
  483. package/venv/lib/python3.10/site-packages/pip/_internal/operations/freeze.py +0 -254
  484. package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/__init__.py +0 -2
  485. package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/editable_legacy.py +0 -47
  486. package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/legacy.py +0 -120
  487. package/venv/lib/python3.10/site-packages/pip/_internal/operations/install/wheel.py +0 -738
  488. package/venv/lib/python3.10/site-packages/pip/_internal/operations/prepare.py +0 -642
  489. package/venv/lib/python3.10/site-packages/pip/_internal/pyproject.py +0 -168
  490. package/venv/lib/python3.10/site-packages/pip/_internal/req/__init__.py +0 -94
  491. package/venv/lib/python3.10/site-packages/pip/_internal/req/constructors.py +0 -490
  492. package/venv/lib/python3.10/site-packages/pip/_internal/req/req_file.py +0 -536
  493. package/venv/lib/python3.10/site-packages/pip/_internal/req/req_install.py +0 -858
  494. package/venv/lib/python3.10/site-packages/pip/_internal/req/req_set.py +0 -189
  495. package/venv/lib/python3.10/site-packages/pip/_internal/req/req_tracker.py +0 -124
  496. package/venv/lib/python3.10/site-packages/pip/_internal/req/req_uninstall.py +0 -633
  497. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/__init__.py +0 -0
  498. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/base.py +0 -20
  499. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
  500. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/legacy/resolver.py +0 -467
  501. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
  502. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/base.py +0 -141
  503. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py +0 -547
  504. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py +0 -739
  505. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +0 -155
  506. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/provider.py +0 -248
  507. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/reporter.py +0 -68
  508. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/requirements.py +0 -166
  509. package/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py +0 -292
  510. package/venv/lib/python3.10/site-packages/pip/_internal/self_outdated_check.py +0 -189
  511. package/venv/lib/python3.10/site-packages/pip/_internal/utils/__init__.py +0 -0
  512. package/venv/lib/python3.10/site-packages/pip/_internal/utils/_log.py +0 -38
  513. package/venv/lib/python3.10/site-packages/pip/_internal/utils/appdirs.py +0 -52
  514. package/venv/lib/python3.10/site-packages/pip/_internal/utils/compat.py +0 -63
  515. package/venv/lib/python3.10/site-packages/pip/_internal/utils/compatibility_tags.py +0 -165
  516. package/venv/lib/python3.10/site-packages/pip/_internal/utils/datetime.py +0 -11
  517. package/venv/lib/python3.10/site-packages/pip/_internal/utils/deprecation.py +0 -120
  518. package/venv/lib/python3.10/site-packages/pip/_internal/utils/direct_url_helpers.py +0 -87
  519. package/venv/lib/python3.10/site-packages/pip/_internal/utils/distutils_args.py +0 -42
  520. package/venv/lib/python3.10/site-packages/pip/_internal/utils/egg_link.py +0 -75
  521. package/venv/lib/python3.10/site-packages/pip/_internal/utils/encoding.py +0 -36
  522. package/venv/lib/python3.10/site-packages/pip/_internal/utils/entrypoints.py +0 -27
  523. package/venv/lib/python3.10/site-packages/pip/_internal/utils/filesystem.py +0 -182
  524. package/venv/lib/python3.10/site-packages/pip/_internal/utils/filetypes.py +0 -27
  525. package/venv/lib/python3.10/site-packages/pip/_internal/utils/glibc.py +0 -88
  526. package/venv/lib/python3.10/site-packages/pip/_internal/utils/hashes.py +0 -144
  527. package/venv/lib/python3.10/site-packages/pip/_internal/utils/inject_securetransport.py +0 -35
  528. package/venv/lib/python3.10/site-packages/pip/_internal/utils/logging.py +0 -343
  529. package/venv/lib/python3.10/site-packages/pip/_internal/utils/misc.py +0 -653
  530. package/venv/lib/python3.10/site-packages/pip/_internal/utils/models.py +0 -39
  531. package/venv/lib/python3.10/site-packages/pip/_internal/utils/packaging.py +0 -57
  532. package/venv/lib/python3.10/site-packages/pip/_internal/utils/setuptools_build.py +0 -195
  533. package/venv/lib/python3.10/site-packages/pip/_internal/utils/subprocess.py +0 -260
  534. package/venv/lib/python3.10/site-packages/pip/_internal/utils/temp_dir.py +0 -246
  535. package/venv/lib/python3.10/site-packages/pip/_internal/utils/unpacking.py +0 -258
  536. package/venv/lib/python3.10/site-packages/pip/_internal/utils/urls.py +0 -62
  537. package/venv/lib/python3.10/site-packages/pip/_internal/utils/virtualenv.py +0 -104
  538. package/venv/lib/python3.10/site-packages/pip/_internal/utils/wheel.py +0 -136
  539. package/venv/lib/python3.10/site-packages/pip/_internal/vcs/__init__.py +0 -15
  540. package/venv/lib/python3.10/site-packages/pip/_internal/vcs/bazaar.py +0 -101
  541. package/venv/lib/python3.10/site-packages/pip/_internal/vcs/git.py +0 -526
  542. package/venv/lib/python3.10/site-packages/pip/_internal/vcs/mercurial.py +0 -163
  543. package/venv/lib/python3.10/site-packages/pip/_internal/vcs/subversion.py +0 -324
  544. package/venv/lib/python3.10/site-packages/pip/_internal/vcs/versioncontrol.py +0 -705
  545. package/venv/lib/python3.10/site-packages/pip/_internal/wheel_builder.py +0 -377
  546. package/venv/lib/python3.10/site-packages/pip/_vendor/__init__.py +0 -111
  547. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/__init__.py +0 -18
  548. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/_cmd.py +0 -61
  549. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/adapter.py +0 -137
  550. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/cache.py +0 -43
  551. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +0 -6
  552. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +0 -150
  553. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +0 -37
  554. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/compat.py +0 -32
  555. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/controller.py +0 -415
  556. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/filewrapper.py +0 -111
  557. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/heuristics.py +0 -139
  558. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/serialize.py +0 -186
  559. package/venv/lib/python3.10/site-packages/pip/_vendor/cachecontrol/wrapper.py +0 -33
  560. package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/__init__.py +0 -3
  561. package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/__main__.py +0 -12
  562. package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/cacert.pem +0 -4362
  563. package/venv/lib/python3.10/site-packages/pip/_vendor/certifi/core.py +0 -76
  564. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/__init__.py +0 -83
  565. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/big5freq.py +0 -386
  566. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/big5prober.py +0 -47
  567. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/chardistribution.py +0 -233
  568. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/charsetgroupprober.py +0 -107
  569. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/charsetprober.py +0 -145
  570. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/cli/__init__.py +0 -1
  571. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/cli/chardetect.py +0 -84
  572. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/codingstatemachine.py +0 -88
  573. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/compat.py +0 -36
  574. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/cp949prober.py +0 -49
  575. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/enums.py +0 -76
  576. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/escprober.py +0 -101
  577. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/escsm.py +0 -246
  578. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/eucjpprober.py +0 -92
  579. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euckrfreq.py +0 -195
  580. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euckrprober.py +0 -47
  581. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euctwfreq.py +0 -387
  582. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/euctwprober.py +0 -46
  583. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/gb2312freq.py +0 -283
  584. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/gb2312prober.py +0 -46
  585. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/hebrewprober.py +0 -292
  586. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/jisfreq.py +0 -325
  587. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/jpcntx.py +0 -233
  588. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langbulgarianmodel.py +0 -4650
  589. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langgreekmodel.py +0 -4398
  590. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langhebrewmodel.py +0 -4383
  591. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langhungarianmodel.py +0 -4650
  592. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langrussianmodel.py +0 -5718
  593. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langthaimodel.py +0 -4383
  594. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/langturkishmodel.py +0 -4383
  595. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/latin1prober.py +0 -145
  596. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/mbcharsetprober.py +0 -91
  597. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/mbcsgroupprober.py +0 -54
  598. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/mbcssm.py +0 -572
  599. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/metadata/__init__.py +0 -0
  600. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/metadata/languages.py +0 -310
  601. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/sbcharsetprober.py +0 -145
  602. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/sbcsgroupprober.py +0 -83
  603. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/sjisprober.py +0 -92
  604. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/universaldetector.py +0 -286
  605. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/utf8prober.py +0 -82
  606. package/venv/lib/python3.10/site-packages/pip/_vendor/chardet/version.py +0 -9
  607. package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/__init__.py +0 -6
  608. package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/ansi.py +0 -102
  609. package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/ansitowin32.py +0 -258
  610. package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/initialise.py +0 -80
  611. package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/win32.py +0 -152
  612. package/venv/lib/python3.10/site-packages/pip/_vendor/colorama/winterm.py +0 -169
  613. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/__init__.py +0 -23
  614. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/compat.py +0 -1116
  615. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/database.py +0 -1345
  616. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/index.py +0 -509
  617. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/locators.py +0 -1300
  618. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/manifest.py +0 -393
  619. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/markers.py +0 -152
  620. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/metadata.py +0 -1058
  621. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/resources.py +0 -358
  622. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/scripts.py +0 -429
  623. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/util.py +0 -1932
  624. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/version.py +0 -739
  625. package/venv/lib/python3.10/site-packages/pip/_vendor/distlib/wheel.py +0 -1053
  626. package/venv/lib/python3.10/site-packages/pip/_vendor/distro.py +0 -1386
  627. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/__init__.py +0 -35
  628. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_ihatexml.py +0 -289
  629. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_inputstream.py +0 -918
  630. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_tokenizer.py +0 -1735
  631. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_trie/__init__.py +0 -5
  632. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_trie/_base.py +0 -40
  633. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_trie/py.py +0 -67
  634. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/_utils.py +0 -159
  635. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/constants.py +0 -2946
  636. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/__init__.py +0 -0
  637. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +0 -29
  638. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/base.py +0 -12
  639. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +0 -73
  640. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/lint.py +0 -93
  641. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +0 -207
  642. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +0 -916
  643. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/filters/whitespace.py +0 -38
  644. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/html5parser.py +0 -2795
  645. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/serializer.py +0 -409
  646. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +0 -30
  647. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py +0 -54
  648. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +0 -50
  649. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +0 -88
  650. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/base.py +0 -417
  651. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +0 -239
  652. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +0 -343
  653. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +0 -392
  654. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +0 -154
  655. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/base.py +0 -252
  656. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +0 -43
  657. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +0 -131
  658. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/etree_lxml.py +0 -215
  659. package/venv/lib/python3.10/site-packages/pip/_vendor/html5lib/treewalkers/genshi.py +0 -69
  660. package/venv/lib/python3.10/site-packages/pip/_vendor/idna/__init__.py +0 -44
  661. package/venv/lib/python3.10/site-packages/pip/_vendor/idna/codec.py +0 -112
  662. package/venv/lib/python3.10/site-packages/pip/_vendor/idna/compat.py +0 -13
  663. package/venv/lib/python3.10/site-packages/pip/_vendor/idna/core.py +0 -397
  664. package/venv/lib/python3.10/site-packages/pip/_vendor/idna/idnadata.py +0 -2137
  665. package/venv/lib/python3.10/site-packages/pip/_vendor/idna/intranges.py +0 -54
  666. package/venv/lib/python3.10/site-packages/pip/_vendor/idna/package_data.py +0 -2
  667. package/venv/lib/python3.10/site-packages/pip/_vendor/idna/uts46data.py +0 -8512
  668. package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/__init__.py +0 -54
  669. package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/_version.py +0 -1
  670. package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/exceptions.py +0 -48
  671. package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/ext.py +0 -193
  672. package/venv/lib/python3.10/site-packages/pip/_vendor/msgpack/fallback.py +0 -1012
  673. package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/__about__.py +0 -26
  674. package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/__init__.py +0 -25
  675. package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/_manylinux.py +0 -301
  676. package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/_musllinux.py +0 -136
  677. package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/_structures.py +0 -61
  678. package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/markers.py +0 -304
  679. package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/requirements.py +0 -146
  680. package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/specifiers.py +0 -802
  681. package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/tags.py +0 -487
  682. package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/utils.py +0 -136
  683. package/venv/lib/python3.10/site-packages/pip/_vendor/packaging/version.py +0 -504
  684. package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/__init__.py +0 -6
  685. package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/build.py +0 -127
  686. package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/check.py +0 -207
  687. package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/colorlog.py +0 -115
  688. package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/compat.py +0 -51
  689. package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/dirtools.py +0 -44
  690. package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/envbuild.py +0 -171
  691. package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/__init__.py +0 -17
  692. package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py +0 -363
  693. package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/meta.py +0 -92
  694. package/venv/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py +0 -375
  695. package/venv/lib/python3.10/site-packages/pip/_vendor/pkg_resources/__init__.py +0 -3296
  696. package/venv/lib/python3.10/site-packages/pip/_vendor/pkg_resources/py31compat.py +0 -23
  697. package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/__init__.py +0 -331
  698. package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/__main__.py +0 -46
  699. package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/android.py +0 -119
  700. package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/api.py +0 -156
  701. package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/macos.py +0 -64
  702. package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/unix.py +0 -181
  703. package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/version.py +0 -4
  704. package/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/windows.py +0 -182
  705. package/venv/lib/python3.10/site-packages/pip/_vendor/progress/__init__.py +0 -189
  706. package/venv/lib/python3.10/site-packages/pip/_vendor/progress/bar.py +0 -93
  707. package/venv/lib/python3.10/site-packages/pip/_vendor/progress/colors.py +0 -79
  708. package/venv/lib/python3.10/site-packages/pip/_vendor/progress/counter.py +0 -47
  709. package/venv/lib/python3.10/site-packages/pip/_vendor/progress/spinner.py +0 -45
  710. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/__init__.py +0 -83
  711. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/__main__.py +0 -17
  712. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/cmdline.py +0 -663
  713. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/console.py +0 -70
  714. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/filter.py +0 -71
  715. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/filters/__init__.py +0 -937
  716. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatter.py +0 -94
  717. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/__init__.py +0 -153
  718. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/_mapping.py +0 -84
  719. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/bbcode.py +0 -108
  720. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/groff.py +0 -168
  721. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/html.py +0 -983
  722. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/img.py +0 -641
  723. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/irc.py +0 -179
  724. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/latex.py +0 -511
  725. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/other.py +0 -161
  726. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/pangomarkup.py +0 -83
  727. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/rtf.py +0 -146
  728. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/svg.py +0 -188
  729. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/terminal.py +0 -127
  730. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/formatters/terminal256.py +0 -338
  731. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexer.py +0 -879
  732. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexers/__init__.py +0 -341
  733. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexers/_mapping.py +0 -580
  734. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/lexers/python.py +0 -1188
  735. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/modeline.py +0 -43
  736. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/plugin.py +0 -69
  737. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/regexopt.py +0 -91
  738. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/scanner.py +0 -104
  739. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/sphinxext.py +0 -155
  740. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/style.py +0 -197
  741. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/styles/__init__.py +0 -93
  742. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/token.py +0 -212
  743. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/unistring.py +0 -153
  744. package/venv/lib/python3.10/site-packages/pip/_vendor/pygments/util.py +0 -308
  745. package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/__init__.py +0 -328
  746. package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/actions.py +0 -207
  747. package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/common.py +0 -424
  748. package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/core.py +0 -5789
  749. package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/diagram/__init__.py +0 -593
  750. package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/exceptions.py +0 -267
  751. package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/helpers.py +0 -1069
  752. package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/results.py +0 -760
  753. package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/testing.py +0 -331
  754. package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/unicode.py +0 -332
  755. package/venv/lib/python3.10/site-packages/pip/_vendor/pyparsing/util.py +0 -235
  756. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/__init__.py +0 -154
  757. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/__version__.py +0 -14
  758. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/_internal_utils.py +0 -42
  759. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/adapters.py +0 -538
  760. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/api.py +0 -159
  761. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/auth.py +0 -305
  762. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/certs.py +0 -18
  763. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/compat.py +0 -77
  764. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/cookies.py +0 -549
  765. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/exceptions.py +0 -133
  766. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/help.py +0 -132
  767. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/hooks.py +0 -34
  768. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/models.py +0 -973
  769. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/packages.py +0 -16
  770. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/sessions.py +0 -771
  771. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/status_codes.py +0 -123
  772. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/structures.py +0 -105
  773. package/venv/lib/python3.10/site-packages/pip/_vendor/requests/utils.py +0 -1060
  774. package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/__init__.py +0 -26
  775. package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/compat/__init__.py +0 -0
  776. package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py +0 -6
  777. package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/providers.py +0 -133
  778. package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/reporters.py +0 -43
  779. package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py +0 -482
  780. package/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py +0 -165
  781. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/__init__.py +0 -172
  782. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/__main__.py +0 -280
  783. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_cell_widths.py +0 -451
  784. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_emoji_codes.py +0 -3610
  785. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_emoji_replace.py +0 -32
  786. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_extension.py +0 -10
  787. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_inspect.py +0 -210
  788. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_log_render.py +0 -94
  789. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_loop.py +0 -43
  790. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_lru_cache.py +0 -34
  791. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_palettes.py +0 -309
  792. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_pick.py +0 -17
  793. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_ratio.py +0 -160
  794. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_spinners.py +0 -848
  795. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_stack.py +0 -16
  796. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_timer.py +0 -19
  797. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_windows.py +0 -72
  798. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/_wrap.py +0 -55
  799. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/abc.py +0 -33
  800. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/align.py +0 -312
  801. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/ansi.py +0 -228
  802. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/bar.py +0 -94
  803. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/box.py +0 -483
  804. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/cells.py +0 -147
  805. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/color.py +0 -581
  806. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/color_triplet.py +0 -38
  807. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/columns.py +0 -187
  808. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/console.py +0 -2211
  809. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/constrain.py +0 -37
  810. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/containers.py +0 -167
  811. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/control.py +0 -175
  812. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/default_styles.py +0 -183
  813. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/diagnose.py +0 -6
  814. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/emoji.py +0 -96
  815. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/errors.py +0 -34
  816. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/file_proxy.py +0 -54
  817. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/filesize.py +0 -89
  818. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/highlighter.py +0 -147
  819. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/json.py +0 -140
  820. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/jupyter.py +0 -92
  821. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/layout.py +0 -444
  822. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/live.py +0 -365
  823. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/live_render.py +0 -113
  824. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/logging.py +0 -268
  825. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/markup.py +0 -244
  826. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/measure.py +0 -149
  827. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/padding.py +0 -141
  828. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/pager.py +0 -34
  829. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/palette.py +0 -100
  830. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/panel.py +0 -250
  831. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/pretty.py +0 -903
  832. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/progress.py +0 -1036
  833. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/progress_bar.py +0 -216
  834. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/prompt.py +0 -376
  835. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/protocol.py +0 -42
  836. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/region.py +0 -10
  837. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/repr.py +0 -151
  838. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/rule.py +0 -115
  839. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/scope.py +0 -86
  840. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/screen.py +0 -54
  841. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/segment.py +0 -720
  842. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/spinner.py +0 -134
  843. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/status.py +0 -132
  844. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/style.py +0 -785
  845. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/styled.py +0 -42
  846. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/syntax.py +0 -735
  847. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/table.py +0 -968
  848. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/tabulate.py +0 -51
  849. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/terminal_theme.py +0 -55
  850. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/text.py +0 -1282
  851. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/theme.py +0 -112
  852. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/themes.py +0 -5
  853. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/traceback.py +0 -678
  854. package/venv/lib/python3.10/site-packages/pip/_vendor/rich/tree.py +0 -249
  855. package/venv/lib/python3.10/site-packages/pip/_vendor/six.py +0 -998
  856. package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/__init__.py +0 -517
  857. package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/_asyncio.py +0 -92
  858. package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/_utils.py +0 -68
  859. package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/after.py +0 -46
  860. package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/before.py +0 -41
  861. package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/before_sleep.py +0 -58
  862. package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/nap.py +0 -43
  863. package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/retry.py +0 -213
  864. package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/stop.py +0 -96
  865. package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/tornadoweb.py +0 -59
  866. package/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/wait.py +0 -191
  867. package/venv/lib/python3.10/site-packages/pip/_vendor/tomli/__init__.py +0 -6
  868. package/venv/lib/python3.10/site-packages/pip/_vendor/tomli/_parser.py +0 -703
  869. package/venv/lib/python3.10/site-packages/pip/_vendor/tomli/_re.py +0 -83
  870. package/venv/lib/python3.10/site-packages/pip/_vendor/typing_extensions.py +0 -2296
  871. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/__init__.py +0 -85
  872. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/_collections.py +0 -355
  873. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/_version.py +0 -2
  874. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/connection.py +0 -569
  875. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/connectionpool.py +0 -1113
  876. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
  877. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +0 -36
  878. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
  879. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +0 -519
  880. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +0 -397
  881. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/appengine.py +0 -314
  882. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +0 -130
  883. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +0 -511
  884. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +0 -922
  885. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/contrib/socks.py +0 -216
  886. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/exceptions.py +0 -323
  887. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/fields.py +0 -274
  888. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/filepost.py +0 -98
  889. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
  890. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
  891. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +0 -51
  892. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/packages/six.py +0 -1077
  893. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/poolmanager.py +0 -539
  894. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/request.py +0 -170
  895. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py +0 -821
  896. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/__init__.py +0 -49
  897. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/connection.py +0 -149
  898. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/proxy.py +0 -57
  899. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/queue.py +0 -22
  900. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/request.py +0 -143
  901. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/response.py +0 -107
  902. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/retry.py +0 -622
  903. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/ssl_.py +0 -495
  904. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +0 -161
  905. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/ssltransport.py +0 -221
  906. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/timeout.py +0 -268
  907. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/url.py +0 -432
  908. package/venv/lib/python3.10/site-packages/pip/_vendor/urllib3/util/wait.py +0 -153
  909. package/venv/lib/python3.10/site-packages/pip/_vendor/vendor.txt +0 -25
  910. package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/__init__.py +0 -342
  911. package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/labels.py +0 -231
  912. package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/mklabels.py +0 -59
  913. package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/tests.py +0 -153
  914. package/venv/lib/python3.10/site-packages/pip/_vendor/webencodings/x_user_defined.py +0 -325
  915. package/venv/lib/python3.10/site-packages/pip/py.typed +0 -4
  916. package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/INSTALLER +0 -1
  917. package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/LICENSE.txt +0 -20
  918. package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/METADATA +0 -92
  919. package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/RECORD +0 -1037
  920. package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/REQUESTED +0 -0
  921. package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/WHEEL +0 -5
  922. package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/entry_points.txt +0 -5
  923. package/venv/lib/python3.10/site-packages/pip-22.0.2.dist-info/top_level.txt +0 -1
  924. package/venv/lib/python3.10/site-packages/pkg_resources/__init__.py +0 -3303
  925. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/__init__.py +0 -0
  926. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/appdirs.py +0 -608
  927. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__about__.py +0 -26
  928. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__init__.py +0 -25
  929. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/_manylinux.py +0 -301
  930. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/_musllinux.py +0 -136
  931. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/_structures.py +0 -67
  932. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/markers.py +0 -304
  933. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/requirements.py +0 -146
  934. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/specifiers.py +0 -828
  935. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/tags.py +0 -484
  936. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/utils.py +0 -136
  937. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py +0 -504
  938. package/venv/lib/python3.10/site-packages/pkg_resources/_vendor/pyparsing.py +0 -5742
  939. package/venv/lib/python3.10/site-packages/pkg_resources/extern/__init__.py +0 -73
  940. package/venv/lib/python3.10/site-packages/pkg_resources/tests/data/my-test-package-source/setup.py +0 -6
  941. package/venv/lib/python3.10/site-packages/propcache/__init__.py +0 -32
  942. package/venv/lib/python3.10/site-packages/propcache/_helpers.py +0 -39
  943. package/venv/lib/python3.10/site-packages/propcache/_helpers_c.cpython-310-x86_64-linux-gnu.so +0 -0
  944. package/venv/lib/python3.10/site-packages/propcache/_helpers_c.pyx +0 -84
  945. package/venv/lib/python3.10/site-packages/propcache/_helpers_py.py +0 -56
  946. package/venv/lib/python3.10/site-packages/propcache/api.py +0 -8
  947. package/venv/lib/python3.10/site-packages/propcache/py.typed +0 -1
  948. package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/INSTALLER +0 -1
  949. package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/LICENSE +0 -202
  950. package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/METADATA +0 -275
  951. package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/NOTICE +0 -13
  952. package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/RECORD +0 -18
  953. package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/WHEEL +0 -6
  954. package/venv/lib/python3.10/site-packages/propcache-0.2.1.dist-info/top_level.txt +0 -1
  955. package/venv/lib/python3.10/site-packages/pycparser/__init__.py +0 -93
  956. package/venv/lib/python3.10/site-packages/pycparser/_ast_gen.py +0 -336
  957. package/venv/lib/python3.10/site-packages/pycparser/_build_tables.py +0 -40
  958. package/venv/lib/python3.10/site-packages/pycparser/_c_ast.cfg +0 -195
  959. package/venv/lib/python3.10/site-packages/pycparser/ast_transforms.py +0 -164
  960. package/venv/lib/python3.10/site-packages/pycparser/c_ast.py +0 -1125
  961. package/venv/lib/python3.10/site-packages/pycparser/c_generator.py +0 -502
  962. package/venv/lib/python3.10/site-packages/pycparser/c_lexer.py +0 -555
  963. package/venv/lib/python3.10/site-packages/pycparser/c_parser.py +0 -1950
  964. package/venv/lib/python3.10/site-packages/pycparser/lextab.py +0 -10
  965. package/venv/lib/python3.10/site-packages/pycparser/ply/__init__.py +0 -5
  966. package/venv/lib/python3.10/site-packages/pycparser/ply/cpp.py +0 -905
  967. package/venv/lib/python3.10/site-packages/pycparser/ply/ctokens.py +0 -133
  968. package/venv/lib/python3.10/site-packages/pycparser/ply/lex.py +0 -1099
  969. package/venv/lib/python3.10/site-packages/pycparser/ply/yacc.py +0 -3494
  970. package/venv/lib/python3.10/site-packages/pycparser/ply/ygen.py +0 -74
  971. package/venv/lib/python3.10/site-packages/pycparser/plyparser.py +0 -133
  972. package/venv/lib/python3.10/site-packages/pycparser/yacctab.py +0 -369
  973. package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/INSTALLER +0 -1
  974. package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/LICENSE +0 -27
  975. package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/METADATA +0 -28
  976. package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/RECORD +0 -41
  977. package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/WHEEL +0 -5
  978. package/venv/lib/python3.10/site-packages/pycparser-2.22.dist-info/top_level.txt +0 -1
  979. package/venv/lib/python3.10/site-packages/pyparsing/__init__.py +0 -326
  980. package/venv/lib/python3.10/site-packages/pyparsing/actions.py +0 -219
  981. package/venv/lib/python3.10/site-packages/pyparsing/common.py +0 -434
  982. package/venv/lib/python3.10/site-packages/pyparsing/core.py +0 -6226
  983. package/venv/lib/python3.10/site-packages/pyparsing/diagram/__init__.py +0 -744
  984. package/venv/lib/python3.10/site-packages/pyparsing/exceptions.py +0 -314
  985. package/venv/lib/python3.10/site-packages/pyparsing/helpers.py +0 -1102
  986. package/venv/lib/python3.10/site-packages/pyparsing/py.typed +0 -0
  987. package/venv/lib/python3.10/site-packages/pyparsing/results.py +0 -816
  988. package/venv/lib/python3.10/site-packages/pyparsing/testing.py +0 -362
  989. package/venv/lib/python3.10/site-packages/pyparsing/unicode.py +0 -356
  990. package/venv/lib/python3.10/site-packages/pyparsing/util.py +0 -398
  991. package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/INSTALLER +0 -1
  992. package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/LICENSE +0 -18
  993. package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/METADATA +0 -124
  994. package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/RECORD +0 -28
  995. package/venv/lib/python3.10/site-packages/pyparsing-3.2.1.dist-info/WHEEL +0 -4
  996. package/venv/lib/python3.10/site-packages/requests/__init__.py +0 -184
  997. package/venv/lib/python3.10/site-packages/requests/__version__.py +0 -14
  998. package/venv/lib/python3.10/site-packages/requests/_internal_utils.py +0 -50
  999. package/venv/lib/python3.10/site-packages/requests/adapters.py +0 -719
  1000. package/venv/lib/python3.10/site-packages/requests/api.py +0 -157
  1001. package/venv/lib/python3.10/site-packages/requests/auth.py +0 -314
  1002. package/venv/lib/python3.10/site-packages/requests/certs.py +0 -17
  1003. package/venv/lib/python3.10/site-packages/requests/compat.py +0 -94
  1004. package/venv/lib/python3.10/site-packages/requests/cookies.py +0 -561
  1005. package/venv/lib/python3.10/site-packages/requests/exceptions.py +0 -151
  1006. package/venv/lib/python3.10/site-packages/requests/help.py +0 -134
  1007. package/venv/lib/python3.10/site-packages/requests/hooks.py +0 -33
  1008. package/venv/lib/python3.10/site-packages/requests/models.py +0 -1037
  1009. package/venv/lib/python3.10/site-packages/requests/packages.py +0 -23
  1010. package/venv/lib/python3.10/site-packages/requests/sessions.py +0 -831
  1011. package/venv/lib/python3.10/site-packages/requests/status_codes.py +0 -128
  1012. package/venv/lib/python3.10/site-packages/requests/structures.py +0 -99
  1013. package/venv/lib/python3.10/site-packages/requests/utils.py +0 -1096
  1014. package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/INSTALLER +0 -1
  1015. package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/LICENSE +0 -175
  1016. package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/METADATA +0 -119
  1017. package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/RECORD +0 -43
  1018. package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/REQUESTED +0 -0
  1019. package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/WHEEL +0 -5
  1020. package/venv/lib/python3.10/site-packages/requests-2.32.3.dist-info/top_level.txt +0 -1
  1021. package/venv/lib/python3.10/site-packages/requests_toolbelt/__init__.py +0 -34
  1022. package/venv/lib/python3.10/site-packages/requests_toolbelt/_compat.py +0 -302
  1023. package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/__init__.py +0 -15
  1024. package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/appengine.py +0 -206
  1025. package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/fingerprint.py +0 -48
  1026. package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/host_header_ssl.py +0 -43
  1027. package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/socket_options.py +0 -129
  1028. package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/source.py +0 -67
  1029. package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/ssl.py +0 -66
  1030. package/venv/lib/python3.10/site-packages/requests_toolbelt/adapters/x509.py +0 -196
  1031. package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/__init__.py +0 -0
  1032. package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/_digest_auth_compat.py +0 -29
  1033. package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/guess.py +0 -146
  1034. package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/handler.py +0 -142
  1035. package/venv/lib/python3.10/site-packages/requests_toolbelt/auth/http_proxy_digest.py +0 -103
  1036. package/venv/lib/python3.10/site-packages/requests_toolbelt/cookies/__init__.py +0 -0
  1037. package/venv/lib/python3.10/site-packages/requests_toolbelt/cookies/forgetful.py +0 -7
  1038. package/venv/lib/python3.10/site-packages/requests_toolbelt/downloadutils/__init__.py +0 -0
  1039. package/venv/lib/python3.10/site-packages/requests_toolbelt/downloadutils/stream.py +0 -176
  1040. package/venv/lib/python3.10/site-packages/requests_toolbelt/downloadutils/tee.py +0 -123
  1041. package/venv/lib/python3.10/site-packages/requests_toolbelt/exceptions.py +0 -25
  1042. package/venv/lib/python3.10/site-packages/requests_toolbelt/multipart/__init__.py +0 -31
  1043. package/venv/lib/python3.10/site-packages/requests_toolbelt/multipart/decoder.py +0 -156
  1044. package/venv/lib/python3.10/site-packages/requests_toolbelt/multipart/encoder.py +0 -655
  1045. package/venv/lib/python3.10/site-packages/requests_toolbelt/sessions.py +0 -89
  1046. package/venv/lib/python3.10/site-packages/requests_toolbelt/streaming_iterator.py +0 -116
  1047. package/venv/lib/python3.10/site-packages/requests_toolbelt/threaded/__init__.py +0 -97
  1048. package/venv/lib/python3.10/site-packages/requests_toolbelt/threaded/pool.py +0 -211
  1049. package/venv/lib/python3.10/site-packages/requests_toolbelt/threaded/thread.py +0 -53
  1050. package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/__init__.py +0 -0
  1051. package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/deprecated.py +0 -91
  1052. package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/dump.py +0 -198
  1053. package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/formdata.py +0 -108
  1054. package/venv/lib/python3.10/site-packages/requests_toolbelt/utils/user_agent.py +0 -143
  1055. package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/AUTHORS.rst +0 -57
  1056. package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/INSTALLER +0 -1
  1057. package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/LICENSE +0 -13
  1058. package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/METADATA +0 -521
  1059. package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/RECORD +0 -75
  1060. package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/WHEEL +0 -6
  1061. package/venv/lib/python3.10/site-packages/requests_toolbelt-1.0.0.dist-info/top_level.txt +0 -1
  1062. package/venv/lib/python3.10/site-packages/scrypted_arlo_go/__init__.py +0 -1
  1063. package/venv/lib/python3.10/site-packages/scrypted_arlo_go/_scrypted_arlo_go.cpython-310-x86_64-linux-gnu.h +0 -555
  1064. package/venv/lib/python3.10/site-packages/scrypted_arlo_go/_scrypted_arlo_go.cpython-310-x86_64-linux-gnu.so +0 -0
  1065. package/venv/lib/python3.10/site-packages/scrypted_arlo_go/build.py +0 -344
  1066. package/venv/lib/python3.10/site-packages/scrypted_arlo_go/go.py +0 -2215
  1067. package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go.c +0 -6019
  1068. package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go.go +0 -3612
  1069. package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go.py +0 -1910
  1070. package/venv/lib/python3.10/site-packages/scrypted_arlo_go/scrypted_arlo_go_go.h +0 -555
  1071. package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/INSTALLER +0 -1
  1072. package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/METADATA +0 -11
  1073. package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/RECORD +0 -19
  1074. package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/REQUESTED +0 -0
  1075. package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/WHEEL +0 -8
  1076. package/venv/lib/python3.10/site-packages/scrypted_arlo_go-0.7.6.dist-info/top_level.txt +0 -1
  1077. package/venv/lib/python3.10/site-packages/setuptools/__init__.py +0 -242
  1078. package/venv/lib/python3.10/site-packages/setuptools/_deprecation_warning.py +0 -7
  1079. package/venv/lib/python3.10/site-packages/setuptools/_distutils/__init__.py +0 -24
  1080. package/venv/lib/python3.10/site-packages/setuptools/_distutils/_msvccompiler.py +0 -561
  1081. package/venv/lib/python3.10/site-packages/setuptools/_distutils/archive_util.py +0 -256
  1082. package/venv/lib/python3.10/site-packages/setuptools/_distutils/bcppcompiler.py +0 -393
  1083. package/venv/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py +0 -1123
  1084. package/venv/lib/python3.10/site-packages/setuptools/_distutils/cmd.py +0 -403
  1085. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/__init__.py +0 -31
  1086. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist.py +0 -143
  1087. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_dumb.py +0 -123
  1088. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_msi.py +0 -749
  1089. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_rpm.py +0 -579
  1090. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/bdist_wininst.py +0 -377
  1091. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build.py +0 -157
  1092. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_clib.py +0 -209
  1093. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py +0 -755
  1094. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_py.py +0 -392
  1095. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/build_scripts.py +0 -152
  1096. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/check.py +0 -148
  1097. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/clean.py +0 -76
  1098. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/config.py +0 -344
  1099. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install.py +0 -721
  1100. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_data.py +0 -79
  1101. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_egg_info.py +0 -84
  1102. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_headers.py +0 -47
  1103. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_lib.py +0 -217
  1104. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/install_scripts.py +0 -60
  1105. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/py37compat.py +0 -30
  1106. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/register.py +0 -304
  1107. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py +0 -494
  1108. package/venv/lib/python3.10/site-packages/setuptools/_distutils/command/upload.py +0 -214
  1109. package/venv/lib/python3.10/site-packages/setuptools/_distutils/config.py +0 -130
  1110. package/venv/lib/python3.10/site-packages/setuptools/_distutils/core.py +0 -249
  1111. package/venv/lib/python3.10/site-packages/setuptools/_distutils/cygwinccompiler.py +0 -425
  1112. package/venv/lib/python3.10/site-packages/setuptools/_distutils/debug.py +0 -5
  1113. package/venv/lib/python3.10/site-packages/setuptools/_distutils/dep_util.py +0 -92
  1114. package/venv/lib/python3.10/site-packages/setuptools/_distutils/dir_util.py +0 -210
  1115. package/venv/lib/python3.10/site-packages/setuptools/_distutils/dist.py +0 -1257
  1116. package/venv/lib/python3.10/site-packages/setuptools/_distutils/errors.py +0 -97
  1117. package/venv/lib/python3.10/site-packages/setuptools/_distutils/extension.py +0 -240
  1118. package/venv/lib/python3.10/site-packages/setuptools/_distutils/fancy_getopt.py +0 -457
  1119. package/venv/lib/python3.10/site-packages/setuptools/_distutils/file_util.py +0 -238
  1120. package/venv/lib/python3.10/site-packages/setuptools/_distutils/filelist.py +0 -355
  1121. package/venv/lib/python3.10/site-packages/setuptools/_distutils/log.py +0 -77
  1122. package/venv/lib/python3.10/site-packages/setuptools/_distutils/msvc9compiler.py +0 -788
  1123. package/venv/lib/python3.10/site-packages/setuptools/_distutils/msvccompiler.py +0 -643
  1124. package/venv/lib/python3.10/site-packages/setuptools/_distutils/py35compat.py +0 -19
  1125. package/venv/lib/python3.10/site-packages/setuptools/_distutils/py38compat.py +0 -7
  1126. package/venv/lib/python3.10/site-packages/setuptools/_distutils/spawn.py +0 -106
  1127. package/venv/lib/python3.10/site-packages/setuptools/_distutils/sysconfig.py +0 -601
  1128. package/venv/lib/python3.10/site-packages/setuptools/_distutils/text_file.py +0 -286
  1129. package/venv/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py +0 -325
  1130. package/venv/lib/python3.10/site-packages/setuptools/_distutils/util.py +0 -548
  1131. package/venv/lib/python3.10/site-packages/setuptools/_distutils/version.py +0 -363
  1132. package/venv/lib/python3.10/site-packages/setuptools/_distutils/versionpredicate.py +0 -169
  1133. package/venv/lib/python3.10/site-packages/setuptools/_imp.py +0 -82
  1134. package/venv/lib/python3.10/site-packages/setuptools/_vendor/__init__.py +0 -0
  1135. package/venv/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/__init__.py +0 -4
  1136. package/venv/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/more.py +0 -3825
  1137. package/venv/lib/python3.10/site-packages/setuptools/_vendor/more_itertools/recipes.py +0 -620
  1138. package/venv/lib/python3.10/site-packages/setuptools/_vendor/ordered_set.py +0 -488
  1139. package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/__about__.py +0 -26
  1140. package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/__init__.py +0 -25
  1141. package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/_manylinux.py +0 -301
  1142. package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/_musllinux.py +0 -136
  1143. package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/_structures.py +0 -67
  1144. package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/markers.py +0 -304
  1145. package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/requirements.py +0 -146
  1146. package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/specifiers.py +0 -828
  1147. package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/tags.py +0 -484
  1148. package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/utils.py +0 -136
  1149. package/venv/lib/python3.10/site-packages/setuptools/_vendor/packaging/version.py +0 -504
  1150. package/venv/lib/python3.10/site-packages/setuptools/_vendor/pyparsing.py +0 -5742
  1151. package/venv/lib/python3.10/site-packages/setuptools/archive_util.py +0 -205
  1152. package/venv/lib/python3.10/site-packages/setuptools/build_meta.py +0 -290
  1153. package/venv/lib/python3.10/site-packages/setuptools/cli-32.exe +0 -0
  1154. package/venv/lib/python3.10/site-packages/setuptools/cli-64.exe +0 -0
  1155. package/venv/lib/python3.10/site-packages/setuptools/cli-arm64.exe +0 -0
  1156. package/venv/lib/python3.10/site-packages/setuptools/cli.exe +0 -0
  1157. package/venv/lib/python3.10/site-packages/setuptools/command/__init__.py +0 -8
  1158. package/venv/lib/python3.10/site-packages/setuptools/command/alias.py +0 -78
  1159. package/venv/lib/python3.10/site-packages/setuptools/command/bdist_egg.py +0 -456
  1160. package/venv/lib/python3.10/site-packages/setuptools/command/bdist_rpm.py +0 -40
  1161. package/venv/lib/python3.10/site-packages/setuptools/command/build_clib.py +0 -101
  1162. package/venv/lib/python3.10/site-packages/setuptools/command/build_ext.py +0 -328
  1163. package/venv/lib/python3.10/site-packages/setuptools/command/build_py.py +0 -242
  1164. package/venv/lib/python3.10/site-packages/setuptools/command/develop.py +0 -193
  1165. package/venv/lib/python3.10/site-packages/setuptools/command/dist_info.py +0 -36
  1166. package/venv/lib/python3.10/site-packages/setuptools/command/easy_install.py +0 -2354
  1167. package/venv/lib/python3.10/site-packages/setuptools/command/egg_info.py +0 -755
  1168. package/venv/lib/python3.10/site-packages/setuptools/command/install.py +0 -132
  1169. package/venv/lib/python3.10/site-packages/setuptools/command/install_egg_info.py +0 -82
  1170. package/venv/lib/python3.10/site-packages/setuptools/command/install_lib.py +0 -148
  1171. package/venv/lib/python3.10/site-packages/setuptools/command/install_scripts.py +0 -69
  1172. package/venv/lib/python3.10/site-packages/setuptools/command/launcher manifest.xml +0 -15
  1173. package/venv/lib/python3.10/site-packages/setuptools/command/py36compat.py +0 -134
  1174. package/venv/lib/python3.10/site-packages/setuptools/command/register.py +0 -18
  1175. package/venv/lib/python3.10/site-packages/setuptools/command/rotate.py +0 -64
  1176. package/venv/lib/python3.10/site-packages/setuptools/command/saveopts.py +0 -22
  1177. package/venv/lib/python3.10/site-packages/setuptools/command/sdist.py +0 -196
  1178. package/venv/lib/python3.10/site-packages/setuptools/command/setopt.py +0 -149
  1179. package/venv/lib/python3.10/site-packages/setuptools/command/test.py +0 -252
  1180. package/venv/lib/python3.10/site-packages/setuptools/command/upload.py +0 -17
  1181. package/venv/lib/python3.10/site-packages/setuptools/command/upload_docs.py +0 -202
  1182. package/venv/lib/python3.10/site-packages/setuptools/config.py +0 -751
  1183. package/venv/lib/python3.10/site-packages/setuptools/dep_util.py +0 -25
  1184. package/venv/lib/python3.10/site-packages/setuptools/depends.py +0 -176
  1185. package/venv/lib/python3.10/site-packages/setuptools/dist.py +0 -1156
  1186. package/venv/lib/python3.10/site-packages/setuptools/errors.py +0 -40
  1187. package/venv/lib/python3.10/site-packages/setuptools/extension.py +0 -55
  1188. package/venv/lib/python3.10/site-packages/setuptools/extern/__init__.py +0 -73
  1189. package/venv/lib/python3.10/site-packages/setuptools/glob.py +0 -167
  1190. package/venv/lib/python3.10/site-packages/setuptools/gui-32.exe +0 -0
  1191. package/venv/lib/python3.10/site-packages/setuptools/gui-64.exe +0 -0
  1192. package/venv/lib/python3.10/site-packages/setuptools/gui-arm64.exe +0 -0
  1193. package/venv/lib/python3.10/site-packages/setuptools/gui.exe +0 -0
  1194. package/venv/lib/python3.10/site-packages/setuptools/installer.py +0 -104
  1195. package/venv/lib/python3.10/site-packages/setuptools/launch.py +0 -36
  1196. package/venv/lib/python3.10/site-packages/setuptools/monkey.py +0 -177
  1197. package/venv/lib/python3.10/site-packages/setuptools/msvc.py +0 -1805
  1198. package/venv/lib/python3.10/site-packages/setuptools/namespaces.py +0 -107
  1199. package/venv/lib/python3.10/site-packages/setuptools/package_index.py +0 -1150
  1200. package/venv/lib/python3.10/site-packages/setuptools/py34compat.py +0 -13
  1201. package/venv/lib/python3.10/site-packages/setuptools/sandbox.py +0 -530
  1202. package/venv/lib/python3.10/site-packages/setuptools/script (dev).tmpl +0 -6
  1203. package/venv/lib/python3.10/site-packages/setuptools/script.tmpl +0 -3
  1204. package/venv/lib/python3.10/site-packages/setuptools/unicode_utils.py +0 -42
  1205. package/venv/lib/python3.10/site-packages/setuptools/version.py +0 -6
  1206. package/venv/lib/python3.10/site-packages/setuptools/wheel.py +0 -213
  1207. package/venv/lib/python3.10/site-packages/setuptools/windows_support.py +0 -29
  1208. package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/INSTALLER +0 -1
  1209. package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/LICENSE +0 -19
  1210. package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/METADATA +0 -125
  1211. package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/RECORD +0 -298
  1212. package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/REQUESTED +0 -0
  1213. package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/WHEEL +0 -5
  1214. package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/entry_points.txt +0 -56
  1215. package/venv/lib/python3.10/site-packages/setuptools-59.6.0.dist-info/top_level.txt +0 -4
  1216. package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/INSTALLER +0 -1
  1217. package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/LICENSE +0 -18
  1218. package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/METADATA +0 -43
  1219. package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/RECORD +0 -8
  1220. package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/WHEEL +0 -6
  1221. package/venv/lib/python3.10/site-packages/six-1.17.0.dist-info/top_level.txt +0 -1
  1222. package/venv/lib/python3.10/site-packages/six.py +0 -1003
  1223. package/venv/lib/python3.10/site-packages/soupsieve/__init__.py +0 -168
  1224. package/venv/lib/python3.10/site-packages/soupsieve/__meta__.py +0 -197
  1225. package/venv/lib/python3.10/site-packages/soupsieve/css_match.py +0 -1582
  1226. package/venv/lib/python3.10/site-packages/soupsieve/css_parser.py +0 -1289
  1227. package/venv/lib/python3.10/site-packages/soupsieve/css_types.py +0 -407
  1228. package/venv/lib/python3.10/site-packages/soupsieve/pretty.py +0 -139
  1229. package/venv/lib/python3.10/site-packages/soupsieve/py.typed +0 -0
  1230. package/venv/lib/python3.10/site-packages/soupsieve/util.py +0 -117
  1231. package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/INSTALLER +0 -1
  1232. package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/METADATA +0 -114
  1233. package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/RECORD +0 -20
  1234. package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/WHEEL +0 -4
  1235. package/venv/lib/python3.10/site-packages/soupsieve-2.6.dist-info/licenses/LICENSE.md +0 -21
  1236. package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/PKG-INFO +0 -98
  1237. package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/SOURCES.txt +0 -12
  1238. package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/dependency_links.txt +0 -1
  1239. package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/installed-files.txt +0 -7
  1240. package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/requires.txt +0 -2
  1241. package/venv/lib/python3.10/site-packages/sseclient-0.0.22.egg-info/top_level.txt +0 -1
  1242. package/venv/lib/python3.10/site-packages/sseclient.py +0 -165
  1243. package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/INSTALLER +0 -1
  1244. package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/LICENSE +0 -279
  1245. package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/METADATA +0 -67
  1246. package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/RECORD +0 -7
  1247. package/venv/lib/python3.10/site-packages/typing_extensions-4.12.2.dist-info/WHEEL +0 -4
  1248. package/venv/lib/python3.10/site-packages/typing_extensions.py +0 -3641
  1249. package/venv/lib/python3.10/site-packages/urllib3/__init__.py +0 -211
  1250. package/venv/lib/python3.10/site-packages/urllib3/_base_connection.py +0 -165
  1251. package/venv/lib/python3.10/site-packages/urllib3/_collections.py +0 -479
  1252. package/venv/lib/python3.10/site-packages/urllib3/_request_methods.py +0 -278
  1253. package/venv/lib/python3.10/site-packages/urllib3/_version.py +0 -16
  1254. package/venv/lib/python3.10/site-packages/urllib3/connection.py +0 -1044
  1255. package/venv/lib/python3.10/site-packages/urllib3/connectionpool.py +0 -1178
  1256. package/venv/lib/python3.10/site-packages/urllib3/contrib/__init__.py +0 -0
  1257. package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/__init__.py +0 -16
  1258. package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/connection.py +0 -255
  1259. package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/emscripten_fetch_worker.js +0 -110
  1260. package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/fetch.py +0 -708
  1261. package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/request.py +0 -22
  1262. package/venv/lib/python3.10/site-packages/urllib3/contrib/emscripten/response.py +0 -285
  1263. package/venv/lib/python3.10/site-packages/urllib3/contrib/pyopenssl.py +0 -554
  1264. package/venv/lib/python3.10/site-packages/urllib3/contrib/socks.py +0 -228
  1265. package/venv/lib/python3.10/site-packages/urllib3/exceptions.py +0 -327
  1266. package/venv/lib/python3.10/site-packages/urllib3/fields.py +0 -341
  1267. package/venv/lib/python3.10/site-packages/urllib3/filepost.py +0 -89
  1268. package/venv/lib/python3.10/site-packages/urllib3/http2/__init__.py +0 -53
  1269. package/venv/lib/python3.10/site-packages/urllib3/http2/connection.py +0 -356
  1270. package/venv/lib/python3.10/site-packages/urllib3/http2/probe.py +0 -87
  1271. package/venv/lib/python3.10/site-packages/urllib3/poolmanager.py +0 -637
  1272. package/venv/lib/python3.10/site-packages/urllib3/py.typed +0 -2
  1273. package/venv/lib/python3.10/site-packages/urllib3/response.py +0 -1278
  1274. package/venv/lib/python3.10/site-packages/urllib3/util/__init__.py +0 -42
  1275. package/venv/lib/python3.10/site-packages/urllib3/util/connection.py +0 -137
  1276. package/venv/lib/python3.10/site-packages/urllib3/util/proxy.py +0 -43
  1277. package/venv/lib/python3.10/site-packages/urllib3/util/request.py +0 -258
  1278. package/venv/lib/python3.10/site-packages/urllib3/util/response.py +0 -101
  1279. package/venv/lib/python3.10/site-packages/urllib3/util/retry.py +0 -533
  1280. package/venv/lib/python3.10/site-packages/urllib3/util/ssl_.py +0 -504
  1281. package/venv/lib/python3.10/site-packages/urllib3/util/ssl_match_hostname.py +0 -159
  1282. package/venv/lib/python3.10/site-packages/urllib3/util/ssltransport.py +0 -271
  1283. package/venv/lib/python3.10/site-packages/urllib3/util/timeout.py +0 -275
  1284. package/venv/lib/python3.10/site-packages/urllib3/util/url.py +0 -469
  1285. package/venv/lib/python3.10/site-packages/urllib3/util/util.py +0 -42
  1286. package/venv/lib/python3.10/site-packages/urllib3/util/wait.py +0 -124
  1287. package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/INSTALLER +0 -1
  1288. package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/METADATA +0 -154
  1289. package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/RECORD +0 -80
  1290. package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/REQUESTED +0 -0
  1291. package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/WHEEL +0 -4
  1292. package/venv/lib/python3.10/site-packages/urllib3-2.3.0.dist-info/licenses/LICENSE.txt +0 -21
  1293. package/venv/lib/python3.10/site-packages/yarl/__init__.py +0 -14
  1294. package/venv/lib/python3.10/site-packages/yarl/_parse.py +0 -189
  1295. package/venv/lib/python3.10/site-packages/yarl/_path.py +0 -41
  1296. package/venv/lib/python3.10/site-packages/yarl/_query.py +0 -118
  1297. package/venv/lib/python3.10/site-packages/yarl/_quoters.py +0 -32
  1298. package/venv/lib/python3.10/site-packages/yarl/_quoting.py +0 -18
  1299. package/venv/lib/python3.10/site-packages/yarl/_quoting_c.cpython-310-x86_64-linux-gnu.so +0 -0
  1300. package/venv/lib/python3.10/site-packages/yarl/_quoting_c.pyi +0 -16
  1301. package/venv/lib/python3.10/site-packages/yarl/_quoting_c.pyx +0 -423
  1302. package/venv/lib/python3.10/site-packages/yarl/_quoting_py.py +0 -197
  1303. package/venv/lib/python3.10/site-packages/yarl/_url.py +0 -1584
  1304. package/venv/lib/python3.10/site-packages/yarl/py.typed +0 -1
  1305. package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/INSTALLER +0 -1
  1306. package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/LICENSE +0 -202
  1307. package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/METADATA +0 -2279
  1308. package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/NOTICE +0 -13
  1309. package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/RECORD +0 -27
  1310. package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/WHEEL +0 -6
  1311. package/venv/lib/python3.10/site-packages/yarl-1.18.3.dist-info/top_level.txt +0 -1
  1312. package/venv/pyvenv.cfg +0 -3
@@ -1,2354 +0,0 @@
1
- """
2
- Easy Install
3
- ------------
4
-
5
- A tool for doing automatic download/extract/build of distutils-based Python
6
- packages. For detailed documentation, see the accompanying EasyInstall.txt
7
- file, or visit the `EasyInstall home page`__.
8
-
9
- __ https://setuptools.pypa.io/en/latest/deprecated/easy_install.html
10
-
11
- """
12
-
13
- from glob import glob
14
- from distutils.util import get_platform
15
- from distutils.util import convert_path, subst_vars
16
- from distutils.errors import (
17
- DistutilsArgError, DistutilsOptionError,
18
- DistutilsError, DistutilsPlatformError,
19
- )
20
- from distutils.command.install import INSTALL_SCHEMES, SCHEME_KEYS
21
- from distutils import log, dir_util
22
- from distutils.command.build_scripts import first_line_re
23
- from distutils.spawn import find_executable
24
- import sys
25
- import os
26
- import zipimport
27
- import shutil
28
- import tempfile
29
- import zipfile
30
- import re
31
- import stat
32
- import random
33
- import textwrap
34
- import warnings
35
- import site
36
- import struct
37
- import contextlib
38
- import subprocess
39
- import shlex
40
- import io
41
- import configparser
42
-
43
-
44
- from sysconfig import get_config_vars, get_path
45
-
46
- from setuptools import SetuptoolsDeprecationWarning
47
-
48
- from setuptools import Command
49
- from setuptools.sandbox import run_setup
50
- from setuptools.command import setopt
51
- from setuptools.archive_util import unpack_archive
52
- from setuptools.package_index import (
53
- PackageIndex, parse_requirement_arg, URL_SCHEME,
54
- )
55
- from setuptools.command import bdist_egg, egg_info
56
- from setuptools.wheel import Wheel
57
- from pkg_resources import (
58
- yield_lines, normalize_path, resource_string, ensure_directory,
59
- get_distribution, find_distributions, Environment, Requirement,
60
- Distribution, PathMetadata, EggMetadata, WorkingSet, DistributionNotFound,
61
- VersionConflict, DEVELOP_DIST,
62
- )
63
- import pkg_resources
64
-
65
- # Turn on PEP440Warnings
66
- warnings.filterwarnings("default", category=pkg_resources.PEP440Warning)
67
-
68
- __all__ = [
69
- 'samefile', 'easy_install', 'PthDistributions', 'extract_wininst_cfg',
70
- 'get_exe_prefixes',
71
- ]
72
-
73
-
74
- def is_64bit():
75
- return struct.calcsize("P") == 8
76
-
77
-
78
- def samefile(p1, p2):
79
- """
80
- Determine if two paths reference the same file.
81
-
82
- Augments os.path.samefile to work on Windows and
83
- suppresses errors if the path doesn't exist.
84
- """
85
- both_exist = os.path.exists(p1) and os.path.exists(p2)
86
- use_samefile = hasattr(os.path, 'samefile') and both_exist
87
- if use_samefile:
88
- return os.path.samefile(p1, p2)
89
- norm_p1 = os.path.normpath(os.path.normcase(p1))
90
- norm_p2 = os.path.normpath(os.path.normcase(p2))
91
- return norm_p1 == norm_p2
92
-
93
-
94
- def _to_bytes(s):
95
- return s.encode('utf8')
96
-
97
-
98
- def isascii(s):
99
- try:
100
- s.encode('ascii')
101
- return True
102
- except UnicodeError:
103
- return False
104
-
105
-
106
- def _one_liner(text):
107
- return textwrap.dedent(text).strip().replace('\n', '; ')
108
-
109
-
110
- class easy_install(Command):
111
- """Manage a download/build/install process"""
112
- description = "Find/get/install Python packages"
113
- command_consumes_arguments = True
114
-
115
- user_options = [
116
- ('prefix=', None, "installation prefix"),
117
- ("zip-ok", "z", "install package as a zipfile"),
118
- ("multi-version", "m", "make apps have to require() a version"),
119
- ("upgrade", "U", "force upgrade (searches PyPI for latest versions)"),
120
- ("install-dir=", "d", "install package to DIR"),
121
- ("script-dir=", "s", "install scripts to DIR"),
122
- ("exclude-scripts", "x", "Don't install scripts"),
123
- ("always-copy", "a", "Copy all needed packages to install dir"),
124
- ("index-url=", "i", "base URL of Python Package Index"),
125
- ("find-links=", "f", "additional URL(s) to search for packages"),
126
- ("build-directory=", "b",
127
- "download/extract/build in DIR; keep the results"),
128
- ('optimize=', 'O',
129
- "also compile with optimization: -O1 for \"python -O\", "
130
- "-O2 for \"python -OO\", and -O0 to disable [default: -O0]"),
131
- ('record=', None,
132
- "filename in which to record list of installed files"),
133
- ('always-unzip', 'Z', "don't install as a zipfile, no matter what"),
134
- ('site-dirs=', 'S', "list of directories where .pth files work"),
135
- ('editable', 'e', "Install specified packages in editable form"),
136
- ('no-deps', 'N', "don't install dependencies"),
137
- ('allow-hosts=', 'H', "pattern(s) that hostnames must match"),
138
- ('local-snapshots-ok', 'l',
139
- "allow building eggs from local checkouts"),
140
- ('version', None, "print version information and exit"),
141
- ('install-layout=', None, "installation layout to choose (known values: deb)"),
142
- ('force-installation-into-system-dir', '0', "force installation into /usr"),
143
- ('no-find-links', None,
144
- "Don't load find-links defined in packages being installed"),
145
- ('user', None, "install in user site-package '%s'" % site.USER_SITE)
146
- ]
147
- boolean_options = [
148
- 'zip-ok', 'multi-version', 'exclude-scripts', 'upgrade', 'always-copy',
149
- 'editable',
150
- 'no-deps', 'local-snapshots-ok', 'version', 'force-installation-into-system-dir'
151
- 'user'
152
- ]
153
-
154
- negative_opt = {'always-unzip': 'zip-ok'}
155
- create_index = PackageIndex
156
-
157
- def initialize_options(self):
158
- warnings.warn(
159
- "easy_install command is deprecated. "
160
- "Use build and pip and other standards-based tools.",
161
- EasyInstallDeprecationWarning,
162
- )
163
-
164
- # the --user option seems to be an opt-in one,
165
- # so the default should be False.
166
- self.user = 0
167
- self.zip_ok = self.local_snapshots_ok = None
168
- self.install_dir = self.script_dir = self.exclude_scripts = None
169
- self.index_url = None
170
- self.find_links = None
171
- self.build_directory = None
172
- self.args = None
173
- self.optimize = self.record = None
174
- self.upgrade = self.always_copy = self.multi_version = None
175
- self.editable = self.no_deps = self.allow_hosts = None
176
- self.root = self.prefix = self.no_report = None
177
- self.version = None
178
- self.install_purelib = None # for pure module distributions
179
- self.install_platlib = None # non-pure (dists w/ extensions)
180
- self.install_headers = None # for C/C++ headers
181
- self.install_lib = None # set to either purelib or platlib
182
- self.install_scripts = None
183
- self.install_data = None
184
- self.install_base = None
185
- self.install_platbase = None
186
- if site.ENABLE_USER_SITE:
187
- self.install_userbase = site.USER_BASE
188
- self.install_usersite = site.USER_SITE
189
- else:
190
- self.install_userbase = None
191
- self.install_usersite = None
192
- self.no_find_links = None
193
-
194
- # Options not specifiable via command line
195
- self.package_index = None
196
- self.pth_file = self.always_copy_from = None
197
- self.site_dirs = None
198
- self.installed_projects = {}
199
- # enable custom installation, known values: deb
200
- self.install_layout = None
201
- self.force_installation_into_system_dir = None
202
- self.multiarch = None
203
-
204
- # Always read easy_install options, even if we are subclassed, or have
205
- # an independent instance created. This ensures that defaults will
206
- # always come from the standard configuration file(s)' "easy_install"
207
- # section, even if this is a "develop" or "install" command, or some
208
- # other embedding.
209
- self._dry_run = None
210
- self.verbose = self.distribution.verbose
211
- self.distribution._set_command_options(
212
- self, self.distribution.get_option_dict('easy_install')
213
- )
214
-
215
- def delete_blockers(self, blockers):
216
- extant_blockers = (
217
- filename for filename in blockers
218
- if os.path.exists(filename) or os.path.islink(filename)
219
- )
220
- list(map(self._delete_path, extant_blockers))
221
-
222
- def _delete_path(self, path):
223
- log.info("Deleting %s", path)
224
- if self.dry_run:
225
- return
226
-
227
- is_tree = os.path.isdir(path) and not os.path.islink(path)
228
- remover = rmtree if is_tree else os.unlink
229
- remover(path)
230
-
231
- @staticmethod
232
- def _render_version():
233
- """
234
- Render the Setuptools version and installation details, then exit.
235
- """
236
- ver = '{}.{}'.format(*sys.version_info)
237
- dist = get_distribution('setuptools')
238
- tmpl = 'setuptools {dist.version} from {dist.location} (Python {ver})'
239
- print(tmpl.format(**locals()))
240
- raise SystemExit()
241
-
242
- def finalize_options(self): # noqa: C901 # is too complex (25) # FIXME
243
- self.version and self._render_version()
244
-
245
- py_version = sys.version.split()[0]
246
- prefix, exec_prefix = get_config_vars('prefix', 'exec_prefix')
247
-
248
- self.config_vars = {
249
- 'dist_name': self.distribution.get_name(),
250
- 'dist_version': self.distribution.get_version(),
251
- 'dist_fullname': self.distribution.get_fullname(),
252
- 'py_version': py_version,
253
- 'py_version_short': py_version[0:3],
254
- 'py_version_nodot': py_version[0] + py_version[2],
255
- 'sys_prefix': prefix,
256
- 'prefix': prefix,
257
- 'sys_exec_prefix': exec_prefix,
258
- 'exec_prefix': exec_prefix,
259
- # Only python 3.2+ has abiflags
260
- 'abiflags': getattr(sys, 'abiflags', ''),
261
- }
262
-
263
- if site.ENABLE_USER_SITE:
264
- self.config_vars['userbase'] = self.install_userbase
265
- self.config_vars['usersite'] = self.install_usersite
266
-
267
- elif self.user:
268
- log.warn("WARNING: The user site-packages directory is disabled.")
269
-
270
- self._fix_install_dir_for_user_site()
271
-
272
- self.expand_basedirs()
273
- self.expand_dirs()
274
-
275
- if self.install_layout:
276
- if not self.install_layout.lower() in ['deb']:
277
- raise DistutilsOptionError("unknown value for --install-layout")
278
- self.install_layout = self.install_layout.lower()
279
-
280
- import sysconfig
281
- if sys.version_info[:2] >= (3, 3):
282
- self.multiarch = sysconfig.get_config_var('MULTIARCH')
283
-
284
- self._expand(
285
- 'install_dir', 'script_dir', 'build_directory',
286
- 'site_dirs',
287
- )
288
- # If a non-default installation directory was specified, default the
289
- # script directory to match it.
290
- if self.script_dir is None:
291
- self.script_dir = self.install_dir
292
-
293
- if self.no_find_links is None:
294
- self.no_find_links = False
295
-
296
- # Let install_dir get set by install_lib command, which in turn
297
- # gets its info from the install command, and takes into account
298
- # --prefix and --home and all that other crud.
299
- self.set_undefined_options(
300
- 'install_lib', ('install_dir', 'install_dir')
301
- )
302
- # Likewise, set default script_dir from 'install_scripts.install_dir'
303
- self.set_undefined_options(
304
- 'install_scripts', ('install_dir', 'script_dir')
305
- )
306
-
307
- if self.user and self.install_purelib:
308
- self.install_dir = self.install_purelib
309
- self.script_dir = self.install_scripts
310
-
311
- if self.prefix == '/usr' and not self.force_installation_into_system_dir:
312
- raise DistutilsOptionError("""installation into /usr
313
-
314
- Trying to install into the system managed parts of the file system. Please
315
- consider to install to another location, or use the option
316
- --force-installation-into-system-dir to overwrite this warning.
317
- """)
318
-
319
- # default --record from the install command
320
- self.set_undefined_options('install', ('record', 'record'))
321
- # Should this be moved to the if statement below? It's not used
322
- # elsewhere
323
- normpath = map(normalize_path, sys.path)
324
- self.all_site_dirs = get_site_dirs()
325
- if self.site_dirs is not None:
326
- site_dirs = [
327
- os.path.expanduser(s.strip()) for s in
328
- self.site_dirs.split(',')
329
- ]
330
- for d in site_dirs:
331
- if not os.path.isdir(d):
332
- log.warn("%s (in --site-dirs) does not exist", d)
333
- elif normalize_path(d) not in normpath:
334
- raise DistutilsOptionError(
335
- d + " (in --site-dirs) is not on sys.path"
336
- )
337
- else:
338
- self.all_site_dirs.append(normalize_path(d))
339
- if not self.editable:
340
- self.check_site_dir()
341
- self.index_url = self.index_url or "https://pypi.org/simple/"
342
- self.shadow_path = self.all_site_dirs[:]
343
- for path_item in self.install_dir, normalize_path(self.script_dir):
344
- if path_item not in self.shadow_path:
345
- self.shadow_path.insert(0, path_item)
346
-
347
- if self.allow_hosts is not None:
348
- hosts = [s.strip() for s in self.allow_hosts.split(',')]
349
- else:
350
- hosts = ['*']
351
- if self.package_index is None:
352
- self.package_index = self.create_index(
353
- self.index_url, search_path=self.shadow_path, hosts=hosts,
354
- )
355
- self.local_index = Environment(self.shadow_path + sys.path)
356
-
357
- if self.find_links is not None:
358
- if isinstance(self.find_links, str):
359
- self.find_links = self.find_links.split()
360
- else:
361
- self.find_links = []
362
- if self.local_snapshots_ok:
363
- self.package_index.scan_egg_links(self.shadow_path + sys.path)
364
- if not self.no_find_links:
365
- self.package_index.add_find_links(self.find_links)
366
- self.set_undefined_options('install_lib', ('optimize', 'optimize'))
367
- if not isinstance(self.optimize, int):
368
- try:
369
- self.optimize = int(self.optimize)
370
- if not (0 <= self.optimize <= 2):
371
- raise ValueError
372
- except ValueError as e:
373
- raise DistutilsOptionError(
374
- "--optimize must be 0, 1, or 2"
375
- ) from e
376
-
377
- if self.editable and not self.build_directory:
378
- raise DistutilsArgError(
379
- "Must specify a build directory (-b) when using --editable"
380
- )
381
- if not self.args:
382
- raise DistutilsArgError(
383
- "No urls, filenames, or requirements specified (see --help)")
384
-
385
- self.outputs = []
386
-
387
- def _fix_install_dir_for_user_site(self):
388
- """
389
- Fix the install_dir if "--user" was used.
390
- """
391
- if not self.user or not site.ENABLE_USER_SITE:
392
- return
393
-
394
- self.create_home_path()
395
- if self.install_userbase is None:
396
- msg = "User base directory is not specified"
397
- raise DistutilsPlatformError(msg)
398
- self.install_base = self.install_platbase = self.install_userbase
399
- scheme_name = os.name.replace('posix', 'unix') + '_user'
400
- self.select_scheme(scheme_name)
401
-
402
- def _expand_attrs(self, attrs):
403
- for attr in attrs:
404
- val = getattr(self, attr)
405
- if val is not None:
406
- if os.name == 'posix' or os.name == 'nt':
407
- val = os.path.expanduser(val)
408
- val = subst_vars(val, self.config_vars)
409
- setattr(self, attr, val)
410
-
411
- def expand_basedirs(self):
412
- """Calls `os.path.expanduser` on install_base, install_platbase and
413
- root."""
414
- self._expand_attrs(['install_base', 'install_platbase', 'root'])
415
-
416
- def expand_dirs(self):
417
- """Calls `os.path.expanduser` on install dirs."""
418
- dirs = [
419
- 'install_purelib',
420
- 'install_platlib',
421
- 'install_lib',
422
- 'install_headers',
423
- 'install_scripts',
424
- 'install_data',
425
- ]
426
- self._expand_attrs(dirs)
427
-
428
- def run(self, show_deprecation=True):
429
- if show_deprecation:
430
- self.announce(
431
- "WARNING: The easy_install command is deprecated "
432
- "and will be removed in a future version.",
433
- log.WARN,
434
- )
435
- if self.verbose != self.distribution.verbose:
436
- log.set_verbosity(self.verbose)
437
- try:
438
- for spec in self.args:
439
- self.easy_install(spec, not self.no_deps)
440
- if self.record:
441
- outputs = list(sorted(self.outputs))
442
- if self.root: # strip any package prefix
443
- root_len = len(self.root)
444
- for counter in range(len(outputs)):
445
- outputs[counter] = outputs[counter][root_len:]
446
- from distutils import file_util
447
-
448
- self.execute(
449
- file_util.write_file, (self.record, outputs),
450
- "writing list of installed files to '%s'" %
451
- self.record
452
- )
453
- self.warn_deprecated_options()
454
- finally:
455
- log.set_verbosity(self.distribution.verbose)
456
-
457
- def pseudo_tempname(self):
458
- """Return a pseudo-tempname base in the install directory.
459
- This code is intentionally naive; if a malicious party can write to
460
- the target directory you're already in deep doodoo.
461
- """
462
- try:
463
- pid = os.getpid()
464
- except Exception:
465
- pid = random.randint(0, sys.maxsize)
466
- return os.path.join(self.install_dir, "test-easy-install-%s" % pid)
467
-
468
- def warn_deprecated_options(self):
469
- pass
470
-
471
- def check_site_dir(self): # noqa: C901 # is too complex (12) # FIXME
472
- """Verify that self.install_dir is .pth-capable dir, if needed"""
473
-
474
- instdir = normalize_path(self.install_dir)
475
- pth_file = os.path.join(instdir, 'easy-install.pth')
476
-
477
- if not os.path.exists(instdir):
478
- try:
479
- os.makedirs(instdir)
480
- except (OSError, IOError):
481
- self.cant_write_to_target()
482
-
483
- # Is it a configured, PYTHONPATH, implicit, or explicit site dir?
484
- is_site_dir = instdir in self.all_site_dirs
485
-
486
- if not is_site_dir and not self.multi_version:
487
- # No? Then directly test whether it does .pth file processing
488
- is_site_dir = self.check_pth_processing()
489
- else:
490
- # make sure we can write to target dir
491
- testfile = self.pseudo_tempname() + '.write-test'
492
- test_exists = os.path.exists(testfile)
493
- try:
494
- if test_exists:
495
- os.unlink(testfile)
496
- open(testfile, 'w').close()
497
- os.unlink(testfile)
498
- except (OSError, IOError):
499
- self.cant_write_to_target()
500
-
501
- if not is_site_dir and not self.multi_version:
502
- # Can't install non-multi to non-site dir with easy_install
503
- pythonpath = os.environ.get('PYTHONPATH', '')
504
- log.warn(self.__no_default_msg, self.install_dir, pythonpath)
505
-
506
- if is_site_dir:
507
- if self.pth_file is None:
508
- self.pth_file = PthDistributions(pth_file, self.all_site_dirs)
509
- else:
510
- self.pth_file = None
511
-
512
- if self.multi_version and not os.path.exists(pth_file):
513
- self.pth_file = None # don't create a .pth file
514
- self.install_dir = instdir
515
-
516
- __cant_write_msg = textwrap.dedent("""
517
- can't create or remove files in install directory
518
-
519
- The following error occurred while trying to add or remove files in the
520
- installation directory:
521
-
522
- %s
523
-
524
- The installation directory you specified (via --install-dir, --prefix, or
525
- the distutils default setting) was:
526
-
527
- %s
528
- """).lstrip() # noqa
529
-
530
- __not_exists_id = textwrap.dedent("""
531
- This directory does not currently exist. Please create it and try again, or
532
- choose a different installation directory (using the -d or --install-dir
533
- option).
534
- """).lstrip() # noqa
535
-
536
- __access_msg = textwrap.dedent("""
537
- Perhaps your account does not have write access to this directory? If the
538
- installation directory is a system-owned directory, you may need to sign in
539
- as the administrator or "root" account. If you do not have administrative
540
- access to this machine, you may wish to choose a different installation
541
- directory, preferably one that is listed in your PYTHONPATH environment
542
- variable.
543
-
544
- For information on other options, you may wish to consult the
545
- documentation at:
546
-
547
- https://setuptools.pypa.io/en/latest/deprecated/easy_install.html
548
-
549
- Please make the appropriate changes for your system and try again.
550
- """).lstrip() # noqa
551
-
552
- def cant_write_to_target(self):
553
- msg = self.__cant_write_msg % (sys.exc_info()[1], self.install_dir,)
554
-
555
- if not os.path.exists(self.install_dir):
556
- msg += '\n' + self.__not_exists_id
557
- else:
558
- msg += '\n' + self.__access_msg
559
- raise DistutilsError(msg)
560
-
561
- def check_pth_processing(self):
562
- """Empirically verify whether .pth files are supported in inst. dir"""
563
- instdir = self.install_dir
564
- log.info("Checking .pth file support in %s", instdir)
565
- pth_file = self.pseudo_tempname() + ".pth"
566
- ok_file = pth_file + '.ok'
567
- ok_exists = os.path.exists(ok_file)
568
- tmpl = _one_liner("""
569
- import os
570
- f = open({ok_file!r}, 'w')
571
- f.write('OK')
572
- f.close()
573
- """) + '\n'
574
- try:
575
- if ok_exists:
576
- os.unlink(ok_file)
577
- dirname = os.path.dirname(ok_file)
578
- os.makedirs(dirname, exist_ok=True)
579
- f = open(pth_file, 'w')
580
- except (OSError, IOError):
581
- self.cant_write_to_target()
582
- else:
583
- try:
584
- f.write(tmpl.format(**locals()))
585
- f.close()
586
- f = None
587
- executable = sys.executable
588
- if os.name == 'nt':
589
- dirname, basename = os.path.split(executable)
590
- alt = os.path.join(dirname, 'pythonw.exe')
591
- use_alt = (
592
- basename.lower() == 'python.exe' and
593
- os.path.exists(alt)
594
- )
595
- if use_alt:
596
- # use pythonw.exe to avoid opening a console window
597
- executable = alt
598
-
599
- from distutils.spawn import spawn
600
-
601
- spawn([executable, '-E', '-c', 'pass'], 0)
602
-
603
- if os.path.exists(ok_file):
604
- log.info(
605
- "TEST PASSED: %s appears to support .pth files",
606
- instdir
607
- )
608
- return True
609
- finally:
610
- if f:
611
- f.close()
612
- if os.path.exists(ok_file):
613
- os.unlink(ok_file)
614
- if os.path.exists(pth_file):
615
- os.unlink(pth_file)
616
- if not self.multi_version:
617
- log.warn("TEST FAILED: %s does NOT support .pth files", instdir)
618
- return False
619
-
620
- def install_egg_scripts(self, dist):
621
- """Write all the scripts for `dist`, unless scripts are excluded"""
622
- if not self.exclude_scripts and dist.metadata_isdir('scripts'):
623
- for script_name in dist.metadata_listdir('scripts'):
624
- if dist.metadata_isdir('scripts/' + script_name):
625
- # The "script" is a directory, likely a Python 3
626
- # __pycache__ directory, so skip it.
627
- continue
628
- self.install_script(
629
- dist, script_name,
630
- dist.get_metadata('scripts/' + script_name)
631
- )
632
- self.install_wrapper_scripts(dist)
633
-
634
- def add_output(self, path):
635
- if os.path.isdir(path):
636
- for base, dirs, files in os.walk(path):
637
- for filename in files:
638
- self.outputs.append(os.path.join(base, filename))
639
- else:
640
- self.outputs.append(path)
641
-
642
- def not_editable(self, spec):
643
- if self.editable:
644
- raise DistutilsArgError(
645
- "Invalid argument %r: you can't use filenames or URLs "
646
- "with --editable (except via the --find-links option)."
647
- % (spec,)
648
- )
649
-
650
- def check_editable(self, spec):
651
- if not self.editable:
652
- return
653
-
654
- if os.path.exists(os.path.join(self.build_directory, spec.key)):
655
- raise DistutilsArgError(
656
- "%r already exists in %s; can't do a checkout there" %
657
- (spec.key, self.build_directory)
658
- )
659
-
660
- @contextlib.contextmanager
661
- def _tmpdir(self):
662
- tmpdir = tempfile.mkdtemp(prefix=u"easy_install-")
663
- try:
664
- # cast to str as workaround for #709 and #710 and #712
665
- yield str(tmpdir)
666
- finally:
667
- os.path.exists(tmpdir) and rmtree(tmpdir)
668
-
669
- def easy_install(self, spec, deps=False):
670
- with self._tmpdir() as tmpdir:
671
- if not isinstance(spec, Requirement):
672
- if URL_SCHEME(spec):
673
- # It's a url, download it to tmpdir and process
674
- self.not_editable(spec)
675
- dl = self.package_index.download(spec, tmpdir)
676
- return self.install_item(None, dl, tmpdir, deps, True)
677
-
678
- elif os.path.exists(spec):
679
- # Existing file or directory, just process it directly
680
- self.not_editable(spec)
681
- return self.install_item(None, spec, tmpdir, deps, True)
682
- else:
683
- spec = parse_requirement_arg(spec)
684
-
685
- self.check_editable(spec)
686
- dist = self.package_index.fetch_distribution(
687
- spec, tmpdir, self.upgrade, self.editable,
688
- not self.always_copy, self.local_index
689
- )
690
- if dist is None:
691
- msg = "Could not find suitable distribution for %r" % spec
692
- if self.always_copy:
693
- msg += " (--always-copy skips system and development eggs)"
694
- raise DistutilsError(msg)
695
- elif dist.precedence == DEVELOP_DIST:
696
- # .egg-info dists don't need installing, just process deps
697
- self.process_distribution(spec, dist, deps, "Using")
698
- return dist
699
- else:
700
- return self.install_item(spec, dist.location, tmpdir, deps)
701
-
702
- def install_item(self, spec, download, tmpdir, deps, install_needed=False):
703
-
704
- # Installation is also needed if file in tmpdir or is not an egg
705
- install_needed = install_needed or self.always_copy
706
- install_needed = install_needed or os.path.dirname(download) == tmpdir
707
- install_needed = install_needed or not download.endswith('.egg')
708
- install_needed = install_needed or (
709
- self.always_copy_from is not None and
710
- os.path.dirname(normalize_path(download)) ==
711
- normalize_path(self.always_copy_from)
712
- )
713
-
714
- if spec and not install_needed:
715
- # at this point, we know it's a local .egg, we just don't know if
716
- # it's already installed.
717
- for dist in self.local_index[spec.project_name]:
718
- if dist.location == download:
719
- break
720
- else:
721
- install_needed = True # it's not in the local index
722
-
723
- log.info("Processing %s", os.path.basename(download))
724
-
725
- if install_needed:
726
- dists = self.install_eggs(spec, download, tmpdir)
727
- for dist in dists:
728
- self.process_distribution(spec, dist, deps)
729
- else:
730
- dists = [self.egg_distribution(download)]
731
- self.process_distribution(spec, dists[0], deps, "Using")
732
-
733
- if spec is not None:
734
- for dist in dists:
735
- if dist in spec:
736
- return dist
737
-
738
- def select_scheme(self, name):
739
- """Sets the install directories by applying the install schemes."""
740
- # it's the caller's problem if they supply a bad name!
741
- scheme = INSTALL_SCHEMES[name]
742
- for key in SCHEME_KEYS:
743
- attrname = 'install_' + key
744
- if getattr(self, attrname) is None:
745
- setattr(self, attrname, scheme[key])
746
-
747
- # FIXME: 'easy_install.process_distribution' is too complex (12)
748
- def process_distribution( # noqa: C901
749
- self, requirement, dist, deps=True, *info,
750
- ):
751
- self.update_pth(dist)
752
- self.package_index.add(dist)
753
- if dist in self.local_index[dist.key]:
754
- self.local_index.remove(dist)
755
- self.local_index.add(dist)
756
- self.install_egg_scripts(dist)
757
- self.installed_projects[dist.key] = dist
758
- log.info(self.installation_report(requirement, dist, *info))
759
- if (dist.has_metadata('dependency_links.txt') and
760
- not self.no_find_links):
761
- self.package_index.add_find_links(
762
- dist.get_metadata_lines('dependency_links.txt')
763
- )
764
- if not deps and not self.always_copy:
765
- return
766
- elif requirement is not None and dist.key != requirement.key:
767
- log.warn("Skipping dependencies for %s", dist)
768
- return # XXX this is not the distribution we were looking for
769
- elif requirement is None or dist not in requirement:
770
- # if we wound up with a different version, resolve what we've got
771
- distreq = dist.as_requirement()
772
- requirement = Requirement(str(distreq))
773
- log.info("Processing dependencies for %s", requirement)
774
- try:
775
- distros = WorkingSet([]).resolve(
776
- [requirement], self.local_index, self.easy_install
777
- )
778
- except DistributionNotFound as e:
779
- raise DistutilsError(str(e)) from e
780
- except VersionConflict as e:
781
- raise DistutilsError(e.report()) from e
782
- if self.always_copy or self.always_copy_from:
783
- # Force all the relevant distros to be copied or activated
784
- for dist in distros:
785
- if dist.key not in self.installed_projects:
786
- self.easy_install(dist.as_requirement())
787
- log.info("Finished processing dependencies for %s", requirement)
788
-
789
- def should_unzip(self, dist):
790
- if self.zip_ok is not None:
791
- return not self.zip_ok
792
- if dist.has_metadata('not-zip-safe'):
793
- return True
794
- if not dist.has_metadata('zip-safe'):
795
- return True
796
- return False
797
-
798
- def maybe_move(self, spec, dist_filename, setup_base):
799
- dst = os.path.join(self.build_directory, spec.key)
800
- if os.path.exists(dst):
801
- msg = (
802
- "%r already exists in %s; build directory %s will not be kept"
803
- )
804
- log.warn(msg, spec.key, self.build_directory, setup_base)
805
- return setup_base
806
- if os.path.isdir(dist_filename):
807
- setup_base = dist_filename
808
- else:
809
- if os.path.dirname(dist_filename) == setup_base:
810
- os.unlink(dist_filename) # get it out of the tmp dir
811
- contents = os.listdir(setup_base)
812
- if len(contents) == 1:
813
- dist_filename = os.path.join(setup_base, contents[0])
814
- if os.path.isdir(dist_filename):
815
- # if the only thing there is a directory, move it instead
816
- setup_base = dist_filename
817
- ensure_directory(dst)
818
- shutil.move(setup_base, dst)
819
- return dst
820
-
821
- def install_wrapper_scripts(self, dist):
822
- if self.exclude_scripts:
823
- return
824
- for args in ScriptWriter.best().get_args(dist):
825
- self.write_script(*args)
826
-
827
- def install_script(self, dist, script_name, script_text, dev_path=None):
828
- """Generate a legacy script wrapper and install it"""
829
- spec = str(dist.as_requirement())
830
- is_script = is_python_script(script_text, script_name)
831
-
832
- if is_script:
833
- body = self._load_template(dev_path) % locals()
834
- script_text = ScriptWriter.get_header(script_text) + body
835
- self.write_script(script_name, _to_bytes(script_text), 'b')
836
-
837
- @staticmethod
838
- def _load_template(dev_path):
839
- """
840
- There are a couple of template scripts in the package. This
841
- function loads one of them and prepares it for use.
842
- """
843
- # See https://github.com/pypa/setuptools/issues/134 for info
844
- # on script file naming and downstream issues with SVR4
845
- name = 'script.tmpl'
846
- if dev_path:
847
- name = name.replace('.tmpl', ' (dev).tmpl')
848
-
849
- raw_bytes = resource_string('setuptools', name)
850
- return raw_bytes.decode('utf-8')
851
-
852
- def write_script(self, script_name, contents, mode="t", blockers=()):
853
- """Write an executable file to the scripts directory"""
854
- self.delete_blockers( # clean up old .py/.pyw w/o a script
855
- [os.path.join(self.script_dir, x) for x in blockers]
856
- )
857
- log.info("Installing %s script to %s", script_name, self.script_dir)
858
- target = os.path.join(self.script_dir, script_name)
859
- self.add_output(target)
860
-
861
- if self.dry_run:
862
- return
863
-
864
- mask = current_umask()
865
- ensure_directory(target)
866
- if os.path.exists(target):
867
- os.unlink(target)
868
- with open(target, "w" + mode) as f:
869
- f.write(contents)
870
- chmod(target, 0o777 - mask)
871
-
872
- def install_eggs(self, spec, dist_filename, tmpdir):
873
- # .egg dirs or files are already built, so just return them
874
- installer_map = {
875
- '.egg': self.install_egg,
876
- '.exe': self.install_exe,
877
- '.whl': self.install_wheel,
878
- }
879
- try:
880
- install_dist = installer_map[
881
- dist_filename.lower()[-4:]
882
- ]
883
- except KeyError:
884
- pass
885
- else:
886
- return [install_dist(dist_filename, tmpdir)]
887
-
888
- # Anything else, try to extract and build
889
- setup_base = tmpdir
890
- if os.path.isfile(dist_filename) and not dist_filename.endswith('.py'):
891
- unpack_archive(dist_filename, tmpdir, self.unpack_progress)
892
- elif os.path.isdir(dist_filename):
893
- setup_base = os.path.abspath(dist_filename)
894
-
895
- if (setup_base.startswith(tmpdir) # something we downloaded
896
- and self.build_directory and spec is not None):
897
- setup_base = self.maybe_move(spec, dist_filename, setup_base)
898
-
899
- # Find the setup.py file
900
- setup_script = os.path.join(setup_base, 'setup.py')
901
-
902
- if not os.path.exists(setup_script):
903
- setups = glob(os.path.join(setup_base, '*', 'setup.py'))
904
- if not setups:
905
- raise DistutilsError(
906
- "Couldn't find a setup script in %s" %
907
- os.path.abspath(dist_filename)
908
- )
909
- if len(setups) > 1:
910
- raise DistutilsError(
911
- "Multiple setup scripts in %s" %
912
- os.path.abspath(dist_filename)
913
- )
914
- setup_script = setups[0]
915
-
916
- # Now run it, and return the result
917
- if self.editable:
918
- log.info(self.report_editable(spec, setup_script))
919
- return []
920
- else:
921
- return self.build_and_install(setup_script, setup_base)
922
-
923
- def egg_distribution(self, egg_path):
924
- if os.path.isdir(egg_path):
925
- metadata = PathMetadata(egg_path, os.path.join(egg_path,
926
- 'EGG-INFO'))
927
- else:
928
- metadata = EggMetadata(zipimport.zipimporter(egg_path))
929
- return Distribution.from_filename(egg_path, metadata=metadata)
930
-
931
- # FIXME: 'easy_install.install_egg' is too complex (11)
932
- def install_egg(self, egg_path, tmpdir): # noqa: C901
933
- destination = os.path.join(
934
- self.install_dir,
935
- os.path.basename(egg_path),
936
- )
937
- destination = os.path.abspath(destination)
938
- if not self.dry_run:
939
- ensure_directory(destination)
940
-
941
- dist = self.egg_distribution(egg_path)
942
- if not samefile(egg_path, destination):
943
- if os.path.isdir(destination) and not os.path.islink(destination):
944
- dir_util.remove_tree(destination, dry_run=self.dry_run)
945
- elif os.path.exists(destination):
946
- self.execute(
947
- os.unlink,
948
- (destination,),
949
- "Removing " + destination,
950
- )
951
- try:
952
- new_dist_is_zipped = False
953
- if os.path.isdir(egg_path):
954
- if egg_path.startswith(tmpdir):
955
- f, m = shutil.move, "Moving"
956
- else:
957
- f, m = shutil.copytree, "Copying"
958
- elif self.should_unzip(dist):
959
- self.mkpath(destination)
960
- f, m = self.unpack_and_compile, "Extracting"
961
- else:
962
- new_dist_is_zipped = True
963
- if egg_path.startswith(tmpdir):
964
- f, m = shutil.move, "Moving"
965
- else:
966
- f, m = shutil.copy2, "Copying"
967
- self.execute(
968
- f,
969
- (egg_path, destination),
970
- (m + " %s to %s") % (
971
- os.path.basename(egg_path),
972
- os.path.dirname(destination)
973
- ),
974
- )
975
- update_dist_caches(
976
- destination,
977
- fix_zipimporter_caches=new_dist_is_zipped,
978
- )
979
- except Exception:
980
- update_dist_caches(destination, fix_zipimporter_caches=False)
981
- raise
982
-
983
- self.add_output(destination)
984
- return self.egg_distribution(destination)
985
-
986
- def install_exe(self, dist_filename, tmpdir):
987
- # See if it's valid, get data
988
- cfg = extract_wininst_cfg(dist_filename)
989
- if cfg is None:
990
- raise DistutilsError(
991
- "%s is not a valid distutils Windows .exe" % dist_filename
992
- )
993
- # Create a dummy distribution object until we build the real distro
994
- dist = Distribution(
995
- None,
996
- project_name=cfg.get('metadata', 'name'),
997
- version=cfg.get('metadata', 'version'), platform=get_platform(),
998
- )
999
-
1000
- # Convert the .exe to an unpacked egg
1001
- egg_path = os.path.join(tmpdir, dist.egg_name() + '.egg')
1002
- dist.location = egg_path
1003
- egg_tmp = egg_path + '.tmp'
1004
- _egg_info = os.path.join(egg_tmp, 'EGG-INFO')
1005
- pkg_inf = os.path.join(_egg_info, 'PKG-INFO')
1006
- ensure_directory(pkg_inf) # make sure EGG-INFO dir exists
1007
- dist._provider = PathMetadata(egg_tmp, _egg_info) # XXX
1008
- self.exe_to_egg(dist_filename, egg_tmp)
1009
-
1010
- # Write EGG-INFO/PKG-INFO
1011
- if not os.path.exists(pkg_inf):
1012
- f = open(pkg_inf, 'w')
1013
- f.write('Metadata-Version: 1.0\n')
1014
- for k, v in cfg.items('metadata'):
1015
- if k != 'target_version':
1016
- f.write('%s: %s\n' % (k.replace('_', '-').title(), v))
1017
- f.close()
1018
- script_dir = os.path.join(_egg_info, 'scripts')
1019
- # delete entry-point scripts to avoid duping
1020
- self.delete_blockers([
1021
- os.path.join(script_dir, args[0])
1022
- for args in ScriptWriter.get_args(dist)
1023
- ])
1024
- # Build .egg file from tmpdir
1025
- bdist_egg.make_zipfile(
1026
- egg_path, egg_tmp, verbose=self.verbose, dry_run=self.dry_run,
1027
- )
1028
- # install the .egg
1029
- return self.install_egg(egg_path, tmpdir)
1030
-
1031
- # FIXME: 'easy_install.exe_to_egg' is too complex (12)
1032
- def exe_to_egg(self, dist_filename, egg_tmp): # noqa: C901
1033
- """Extract a bdist_wininst to the directories an egg would use"""
1034
- # Check for .pth file and set up prefix translations
1035
- prefixes = get_exe_prefixes(dist_filename)
1036
- to_compile = []
1037
- native_libs = []
1038
- top_level = {}
1039
-
1040
- def process(src, dst):
1041
- s = src.lower()
1042
- for old, new in prefixes:
1043
- if s.startswith(old):
1044
- src = new + src[len(old):]
1045
- parts = src.split('/')
1046
- dst = os.path.join(egg_tmp, *parts)
1047
- dl = dst.lower()
1048
- if dl.endswith('.pyd') or dl.endswith('.dll'):
1049
- parts[-1] = bdist_egg.strip_module(parts[-1])
1050
- top_level[os.path.splitext(parts[0])[0]] = 1
1051
- native_libs.append(src)
1052
- elif dl.endswith('.py') and old != 'SCRIPTS/':
1053
- top_level[os.path.splitext(parts[0])[0]] = 1
1054
- to_compile.append(dst)
1055
- return dst
1056
- if not src.endswith('.pth'):
1057
- log.warn("WARNING: can't process %s", src)
1058
- return None
1059
-
1060
- # extract, tracking .pyd/.dll->native_libs and .py -> to_compile
1061
- unpack_archive(dist_filename, egg_tmp, process)
1062
- stubs = []
1063
- for res in native_libs:
1064
- if res.lower().endswith('.pyd'): # create stubs for .pyd's
1065
- parts = res.split('/')
1066
- resource = parts[-1]
1067
- parts[-1] = bdist_egg.strip_module(parts[-1]) + '.py'
1068
- pyfile = os.path.join(egg_tmp, *parts)
1069
- to_compile.append(pyfile)
1070
- stubs.append(pyfile)
1071
- bdist_egg.write_stub(resource, pyfile)
1072
- self.byte_compile(to_compile) # compile .py's
1073
- bdist_egg.write_safety_flag(
1074
- os.path.join(egg_tmp, 'EGG-INFO'),
1075
- bdist_egg.analyze_egg(egg_tmp, stubs)) # write zip-safety flag
1076
-
1077
- for name in 'top_level', 'native_libs':
1078
- if locals()[name]:
1079
- txt = os.path.join(egg_tmp, 'EGG-INFO', name + '.txt')
1080
- if not os.path.exists(txt):
1081
- f = open(txt, 'w')
1082
- f.write('\n'.join(locals()[name]) + '\n')
1083
- f.close()
1084
-
1085
- def install_wheel(self, wheel_path, tmpdir):
1086
- wheel = Wheel(wheel_path)
1087
- assert wheel.is_compatible()
1088
- destination = os.path.join(self.install_dir, wheel.egg_name())
1089
- destination = os.path.abspath(destination)
1090
- if not self.dry_run:
1091
- ensure_directory(destination)
1092
- if os.path.isdir(destination) and not os.path.islink(destination):
1093
- dir_util.remove_tree(destination, dry_run=self.dry_run)
1094
- elif os.path.exists(destination):
1095
- self.execute(
1096
- os.unlink,
1097
- (destination,),
1098
- "Removing " + destination,
1099
- )
1100
- try:
1101
- self.execute(
1102
- wheel.install_as_egg,
1103
- (destination,),
1104
- ("Installing %s to %s") % (
1105
- os.path.basename(wheel_path),
1106
- os.path.dirname(destination)
1107
- ),
1108
- )
1109
- finally:
1110
- update_dist_caches(destination, fix_zipimporter_caches=False)
1111
- self.add_output(destination)
1112
- return self.egg_distribution(destination)
1113
-
1114
- __mv_warning = textwrap.dedent("""
1115
- Because this distribution was installed --multi-version, before you can
1116
- import modules from this package in an application, you will need to
1117
- 'import pkg_resources' and then use a 'require()' call similar to one of
1118
- these examples, in order to select the desired version:
1119
-
1120
- pkg_resources.require("%(name)s") # latest installed version
1121
- pkg_resources.require("%(name)s==%(version)s") # this exact version
1122
- pkg_resources.require("%(name)s>=%(version)s") # this version or higher
1123
- """).lstrip() # noqa
1124
-
1125
- __id_warning = textwrap.dedent("""
1126
- Note also that the installation directory must be on sys.path at runtime for
1127
- this to work. (e.g. by being the application's script directory, by being on
1128
- PYTHONPATH, or by being added to sys.path by your code.)
1129
- """) # noqa
1130
-
1131
- def installation_report(self, req, dist, what="Installed"):
1132
- """Helpful installation message for display to package users"""
1133
- msg = "\n%(what)s %(eggloc)s%(extras)s"
1134
- if self.multi_version and not self.no_report:
1135
- msg += '\n' + self.__mv_warning
1136
- if self.install_dir not in map(normalize_path, sys.path):
1137
- msg += '\n' + self.__id_warning
1138
-
1139
- eggloc = dist.location
1140
- name = dist.project_name
1141
- version = dist.version
1142
- extras = '' # TODO: self.report_extras(req, dist)
1143
- return msg % locals()
1144
-
1145
- __editable_msg = textwrap.dedent("""
1146
- Extracted editable version of %(spec)s to %(dirname)s
1147
-
1148
- If it uses setuptools in its setup script, you can activate it in
1149
- "development" mode by going to that directory and running::
1150
-
1151
- %(python)s setup.py develop
1152
-
1153
- See the setuptools documentation for the "develop" command for more info.
1154
- """).lstrip() # noqa
1155
-
1156
- def report_editable(self, spec, setup_script):
1157
- dirname = os.path.dirname(setup_script)
1158
- python = sys.executable
1159
- return '\n' + self.__editable_msg % locals()
1160
-
1161
- def run_setup(self, setup_script, setup_base, args):
1162
- sys.modules.setdefault('distutils.command.bdist_egg', bdist_egg)
1163
- sys.modules.setdefault('distutils.command.egg_info', egg_info)
1164
-
1165
- args = list(args)
1166
- if self.verbose > 2:
1167
- v = 'v' * (self.verbose - 1)
1168
- args.insert(0, '-' + v)
1169
- elif self.verbose < 2:
1170
- args.insert(0, '-q')
1171
- if self.dry_run:
1172
- args.insert(0, '-n')
1173
- log.info(
1174
- "Running %s %s", setup_script[len(setup_base) + 1:], ' '.join(args)
1175
- )
1176
- try:
1177
- run_setup(setup_script, args)
1178
- except SystemExit as v:
1179
- raise DistutilsError(
1180
- "Setup script exited with %s" % (v.args[0],)
1181
- ) from v
1182
-
1183
- def build_and_install(self, setup_script, setup_base):
1184
- args = ['bdist_egg', '--dist-dir']
1185
-
1186
- dist_dir = tempfile.mkdtemp(
1187
- prefix='egg-dist-tmp-', dir=os.path.dirname(setup_script)
1188
- )
1189
- try:
1190
- self._set_fetcher_options(os.path.dirname(setup_script))
1191
- args.append(dist_dir)
1192
-
1193
- self.run_setup(setup_script, setup_base, args)
1194
- all_eggs = Environment([dist_dir])
1195
- eggs = []
1196
- for key in all_eggs:
1197
- for dist in all_eggs[key]:
1198
- eggs.append(self.install_egg(dist.location, setup_base))
1199
- if not eggs and not self.dry_run:
1200
- log.warn("No eggs found in %s (setup script problem?)",
1201
- dist_dir)
1202
- return eggs
1203
- finally:
1204
- rmtree(dist_dir)
1205
- log.set_verbosity(self.verbose) # restore our log verbosity
1206
-
1207
- def _set_fetcher_options(self, base):
1208
- """
1209
- When easy_install is about to run bdist_egg on a source dist, that
1210
- source dist might have 'setup_requires' directives, requiring
1211
- additional fetching. Ensure the fetcher options given to easy_install
1212
- are available to that command as well.
1213
- """
1214
- # find the fetch options from easy_install and write them out
1215
- # to the setup.cfg file.
1216
- ei_opts = self.distribution.get_option_dict('easy_install').copy()
1217
- fetch_directives = (
1218
- 'find_links', 'site_dirs', 'index_url', 'optimize', 'allow_hosts',
1219
- )
1220
- fetch_options = {}
1221
- for key, val in ei_opts.items():
1222
- if key not in fetch_directives:
1223
- continue
1224
- fetch_options[key] = val[1]
1225
- # create a settings dictionary suitable for `edit_config`
1226
- settings = dict(easy_install=fetch_options)
1227
- cfg_filename = os.path.join(base, 'setup.cfg')
1228
- setopt.edit_config(cfg_filename, settings)
1229
-
1230
- def update_pth(self, dist): # noqa: C901 # is too complex (11) # FIXME
1231
- if self.pth_file is None:
1232
- return
1233
-
1234
- for d in self.pth_file[dist.key]: # drop old entries
1235
- if not self.multi_version and d.location == dist.location:
1236
- continue
1237
-
1238
- log.info("Removing %s from easy-install.pth file", d)
1239
- self.pth_file.remove(d)
1240
- if d.location in self.shadow_path:
1241
- self.shadow_path.remove(d.location)
1242
-
1243
- if not self.multi_version:
1244
- if dist.location in self.pth_file.paths:
1245
- log.info(
1246
- "%s is already the active version in easy-install.pth",
1247
- dist,
1248
- )
1249
- else:
1250
- log.info("Adding %s to easy-install.pth file", dist)
1251
- self.pth_file.add(dist) # add new entry
1252
- if dist.location not in self.shadow_path:
1253
- self.shadow_path.append(dist.location)
1254
-
1255
- if self.dry_run:
1256
- return
1257
-
1258
- self.pth_file.save()
1259
-
1260
- if dist.key != 'setuptools':
1261
- return
1262
-
1263
- # Ensure that setuptools itself never becomes unavailable!
1264
- # XXX should this check for latest version?
1265
- filename = os.path.join(self.install_dir, 'setuptools.pth')
1266
- if os.path.islink(filename):
1267
- os.unlink(filename)
1268
- with open(filename, 'wt') as f:
1269
- f.write(self.pth_file.make_relative(dist.location) + '\n')
1270
-
1271
- def unpack_progress(self, src, dst):
1272
- # Progress filter for unpacking
1273
- log.debug("Unpacking %s to %s", src, dst)
1274
- return dst # only unpack-and-compile skips files for dry run
1275
-
1276
- def unpack_and_compile(self, egg_path, destination):
1277
- to_compile = []
1278
- to_chmod = []
1279
-
1280
- def pf(src, dst):
1281
- if dst.endswith('.py') and not src.startswith('EGG-INFO/'):
1282
- to_compile.append(dst)
1283
- elif dst.endswith('.dll') or dst.endswith('.so'):
1284
- to_chmod.append(dst)
1285
- self.unpack_progress(src, dst)
1286
- return not self.dry_run and dst or None
1287
-
1288
- unpack_archive(egg_path, destination, pf)
1289
- self.byte_compile(to_compile)
1290
- if not self.dry_run:
1291
- for f in to_chmod:
1292
- mode = ((os.stat(f)[stat.ST_MODE]) | 0o555) & 0o7755
1293
- chmod(f, mode)
1294
-
1295
- def byte_compile(self, to_compile):
1296
- if sys.dont_write_bytecode:
1297
- return
1298
-
1299
- from distutils.util import byte_compile
1300
-
1301
- try:
1302
- # try to make the byte compile messages quieter
1303
- log.set_verbosity(self.verbose - 1)
1304
-
1305
- byte_compile(to_compile, optimize=0, force=1, dry_run=self.dry_run)
1306
- if self.optimize:
1307
- byte_compile(
1308
- to_compile, optimize=self.optimize, force=1,
1309
- dry_run=self.dry_run,
1310
- )
1311
- finally:
1312
- log.set_verbosity(self.verbose) # restore original verbosity
1313
-
1314
- __no_default_msg = textwrap.dedent("""
1315
- bad install directory or PYTHONPATH
1316
-
1317
- You are attempting to install a package to a directory that is not
1318
- on PYTHONPATH and which Python does not read ".pth" files from. The
1319
- installation directory you specified (via --install-dir, --prefix, or
1320
- the distutils default setting) was:
1321
-
1322
- %s
1323
-
1324
- and your PYTHONPATH environment variable currently contains:
1325
-
1326
- %r
1327
-
1328
- Here are some of your options for correcting the problem:
1329
-
1330
- * You can choose a different installation directory, i.e., one that is
1331
- on PYTHONPATH or supports .pth files
1332
-
1333
- * You can add the installation directory to the PYTHONPATH environment
1334
- variable. (It must then also be on PYTHONPATH whenever you run
1335
- Python and want to use the package(s) you are installing.)
1336
-
1337
- * You can set up the installation directory to support ".pth" files by
1338
- using one of the approaches described here:
1339
-
1340
- https://setuptools.pypa.io/en/latest/deprecated/easy_install.html#custom-installation-locations
1341
-
1342
-
1343
- Please make the appropriate changes for your system and try again.
1344
- """).strip()
1345
-
1346
- def create_home_path(self):
1347
- """Create directories under ~."""
1348
- if not self.user:
1349
- return
1350
- home = convert_path(os.path.expanduser("~"))
1351
- for name, path in self.config_vars.items():
1352
- if path.startswith(home) and not os.path.isdir(path):
1353
- self.debug_print("os.makedirs('%s', 0o700)" % path)
1354
- os.makedirs(path, 0o700)
1355
-
1356
- if sys.version[:3] in ('2.3', '2.4', '2.5') or 'real_prefix' in sys.__dict__:
1357
- sitedir_name = 'site-packages'
1358
- else:
1359
- sitedir_name = 'dist-packages'
1360
-
1361
- INSTALL_SCHEMES = dict(
1362
- posix=dict(
1363
- install_dir='$base/lib/python$py_version_short/site-packages',
1364
- script_dir='$base/bin',
1365
- ),
1366
- unix_local = dict(
1367
- install_dir = '$base/local/lib/python$py_version_short/%s' % sitedir_name,
1368
- script_dir = '$base/local/bin',
1369
- ),
1370
- posix_local = dict(
1371
- install_dir = '$base/local/lib/python$py_version_short/%s' % sitedir_name,
1372
- script_dir = '$base/local/bin',
1373
- ),
1374
- deb_system = dict(
1375
- install_dir = '$base/lib/python3/%s' % sitedir_name,
1376
- script_dir = '$base/bin',
1377
- ),
1378
- )
1379
-
1380
- DEFAULT_SCHEME = dict(
1381
- install_dir='$base/Lib/site-packages',
1382
- script_dir='$base/Scripts',
1383
- )
1384
-
1385
- def _expand(self, *attrs):
1386
- config_vars = self.get_finalized_command('install').config_vars
1387
-
1388
- if self.prefix or self.install_layout:
1389
- if self.install_layout and self.install_layout in ['deb']:
1390
- scheme_name = "deb_system"
1391
- self.prefix = '/usr'
1392
- elif self.prefix or 'real_prefix' in sys.__dict__:
1393
- scheme_name = os.name
1394
- else:
1395
- scheme_name = "posix_local"
1396
- # Set default install_dir/scripts from --prefix
1397
- config_vars = config_vars.copy()
1398
- config_vars['base'] = self.prefix
1399
- scheme = self.INSTALL_SCHEMES.get(scheme_name,self.DEFAULT_SCHEME)
1400
- for attr, val in scheme.items():
1401
- if getattr(self, attr, None) is None:
1402
- setattr(self, attr, val)
1403
-
1404
- from distutils.util import subst_vars
1405
-
1406
- for attr in attrs:
1407
- val = getattr(self, attr)
1408
- if val is not None:
1409
- val = subst_vars(val, config_vars)
1410
- if os.name == 'posix':
1411
- val = os.path.expanduser(val)
1412
- setattr(self, attr, val)
1413
-
1414
-
1415
- def _pythonpath():
1416
- items = os.environ.get('PYTHONPATH', '').split(os.pathsep)
1417
- return filter(None, items)
1418
-
1419
-
1420
- def get_site_dirs():
1421
- """
1422
- Return a list of 'site' dirs
1423
- """
1424
-
1425
- sitedirs = []
1426
-
1427
- # start with PYTHONPATH
1428
- sitedirs.extend(_pythonpath())
1429
-
1430
- prefixes = [sys.prefix]
1431
- if sys.exec_prefix != sys.prefix:
1432
- prefixes.append(sys.exec_prefix)
1433
- for prefix in prefixes:
1434
- if not prefix:
1435
- continue
1436
-
1437
- if sys.platform in ('os2emx', 'riscos'):
1438
- sitedirs.append(os.path.join(prefix, "Lib", "site-packages"))
1439
- elif os.sep == '/':
1440
- sitedirs.extend([
1441
- os.path.join(
1442
- prefix,
1443
- "local/lib",
1444
- "python" + sys.version[:3],
1445
- "dist-packages",
1446
- ),
1447
- os.path.join(
1448
- prefix,
1449
- "lib",
1450
- "python{}.{}".format(*sys.version_info),
1451
- "dist-packages",
1452
- ),
1453
- os.path.join(prefix, "lib", "site-python"),
1454
- ])
1455
- else:
1456
- sitedirs.extend([
1457
- prefix,
1458
- os.path.join(prefix, "lib", "site-packages"),
1459
- ])
1460
- if sys.platform != 'darwin':
1461
- continue
1462
-
1463
- # for framework builds *only* we add the standard Apple
1464
- # locations. Currently only per-user, but /Library and
1465
- # /Network/Library could be added too
1466
- if 'Python.framework' not in prefix:
1467
- continue
1468
-
1469
- home = os.environ.get('HOME')
1470
- if not home:
1471
- continue
1472
-
1473
- home_sp = os.path.join(
1474
- home,
1475
- 'Library',
1476
- 'Python',
1477
- '{}.{}'.format(*sys.version_info),
1478
- 'site-packages',
1479
- )
1480
- sitedirs.append(home_sp)
1481
- lib_paths = get_path('purelib'), get_path('platlib')
1482
-
1483
- sitedirs.extend(s for s in lib_paths if s not in sitedirs)
1484
-
1485
- if site.ENABLE_USER_SITE:
1486
- sitedirs.append(site.USER_SITE)
1487
-
1488
- with contextlib.suppress(AttributeError):
1489
- sitedirs.extend(site.getsitepackages())
1490
-
1491
- sitedirs = list(map(normalize_path, sitedirs))
1492
-
1493
- return sitedirs
1494
-
1495
-
1496
- def expand_paths(inputs): # noqa: C901 # is too complex (11) # FIXME
1497
- """Yield sys.path directories that might contain "old-style" packages"""
1498
-
1499
- seen = {}
1500
-
1501
- for dirname in inputs:
1502
- dirname = normalize_path(dirname)
1503
- if dirname in seen:
1504
- continue
1505
-
1506
- seen[dirname] = 1
1507
- if not os.path.isdir(dirname):
1508
- continue
1509
-
1510
- files = os.listdir(dirname)
1511
- yield dirname, files
1512
-
1513
- for name in files:
1514
- if not name.endswith('.pth'):
1515
- # We only care about the .pth files
1516
- continue
1517
- if name in ('easy-install.pth', 'setuptools.pth'):
1518
- # Ignore .pth files that we control
1519
- continue
1520
-
1521
- # Read the .pth file
1522
- f = open(os.path.join(dirname, name))
1523
- lines = list(yield_lines(f))
1524
- f.close()
1525
-
1526
- # Yield existing non-dupe, non-import directory lines from it
1527
- for line in lines:
1528
- if line.startswith("import"):
1529
- continue
1530
-
1531
- line = normalize_path(line.rstrip())
1532
- if line in seen:
1533
- continue
1534
-
1535
- seen[line] = 1
1536
- if not os.path.isdir(line):
1537
- continue
1538
-
1539
- yield line, os.listdir(line)
1540
-
1541
-
1542
- def extract_wininst_cfg(dist_filename):
1543
- """Extract configuration data from a bdist_wininst .exe
1544
-
1545
- Returns a configparser.RawConfigParser, or None
1546
- """
1547
- f = open(dist_filename, 'rb')
1548
- try:
1549
- endrec = zipfile._EndRecData(f)
1550
- if endrec is None:
1551
- return None
1552
-
1553
- prepended = (endrec[9] - endrec[5]) - endrec[6]
1554
- if prepended < 12: # no wininst data here
1555
- return None
1556
- f.seek(prepended - 12)
1557
-
1558
- tag, cfglen, bmlen = struct.unpack("<iii", f.read(12))
1559
- if tag not in (0x1234567A, 0x1234567B):
1560
- return None # not a valid tag
1561
-
1562
- f.seek(prepended - (12 + cfglen))
1563
- init = {'version': '', 'target_version': ''}
1564
- cfg = configparser.RawConfigParser(init)
1565
- try:
1566
- part = f.read(cfglen)
1567
- # Read up to the first null byte.
1568
- config = part.split(b'\0', 1)[0]
1569
- # Now the config is in bytes, but for RawConfigParser, it should
1570
- # be text, so decode it.
1571
- config = config.decode(sys.getfilesystemencoding())
1572
- cfg.read_file(io.StringIO(config))
1573
- except configparser.Error:
1574
- return None
1575
- if not cfg.has_section('metadata') or not cfg.has_section('Setup'):
1576
- return None
1577
- return cfg
1578
-
1579
- finally:
1580
- f.close()
1581
-
1582
-
1583
- def get_exe_prefixes(exe_filename):
1584
- """Get exe->egg path translations for a given .exe file"""
1585
-
1586
- prefixes = [
1587
- ('PURELIB/', ''),
1588
- ('PLATLIB/pywin32_system32', ''),
1589
- ('PLATLIB/', ''),
1590
- ('SCRIPTS/', 'EGG-INFO/scripts/'),
1591
- ('DATA/lib/site-packages', ''),
1592
- ]
1593
- z = zipfile.ZipFile(exe_filename)
1594
- try:
1595
- for info in z.infolist():
1596
- name = info.filename
1597
- parts = name.split('/')
1598
- if len(parts) == 3 and parts[2] == 'PKG-INFO':
1599
- if parts[1].endswith('.egg-info'):
1600
- prefixes.insert(0, ('/'.join(parts[:2]), 'EGG-INFO/'))
1601
- break
1602
- if len(parts) != 2 or not name.endswith('.pth'):
1603
- continue
1604
- if name.endswith('-nspkg.pth'):
1605
- continue
1606
- if parts[0].upper() in ('PURELIB', 'PLATLIB'):
1607
- contents = z.read(name).decode()
1608
- for pth in yield_lines(contents):
1609
- pth = pth.strip().replace('\\', '/')
1610
- if not pth.startswith('import'):
1611
- prefixes.append((('%s/%s/' % (parts[0], pth)), ''))
1612
- finally:
1613
- z.close()
1614
- prefixes = [(x.lower(), y) for x, y in prefixes]
1615
- prefixes.sort()
1616
- prefixes.reverse()
1617
- return prefixes
1618
-
1619
-
1620
- class PthDistributions(Environment):
1621
- """A .pth file with Distribution paths in it"""
1622
-
1623
- dirty = False
1624
-
1625
- def __init__(self, filename, sitedirs=()):
1626
- self.filename = filename
1627
- self.sitedirs = list(map(normalize_path, sitedirs))
1628
- self.basedir = normalize_path(os.path.dirname(self.filename))
1629
- self._load()
1630
- Environment.__init__(self, [], None, None)
1631
- for path in yield_lines(self.paths):
1632
- list(map(self.add, find_distributions(path, True)))
1633
-
1634
- def _load(self):
1635
- self.paths = []
1636
- saw_import = False
1637
- seen = dict.fromkeys(self.sitedirs)
1638
- if os.path.isfile(self.filename):
1639
- f = open(self.filename, 'rt')
1640
- for line in f:
1641
- if line.startswith('import'):
1642
- saw_import = True
1643
- continue
1644
- path = line.rstrip()
1645
- self.paths.append(path)
1646
- if not path.strip() or path.strip().startswith('#'):
1647
- continue
1648
- # skip non-existent paths, in case somebody deleted a package
1649
- # manually, and duplicate paths as well
1650
- path = self.paths[-1] = normalize_path(
1651
- os.path.join(self.basedir, path)
1652
- )
1653
- if not os.path.exists(path) or path in seen:
1654
- self.paths.pop() # skip it
1655
- self.dirty = True # we cleaned up, so we're dirty now :)
1656
- continue
1657
- seen[path] = 1
1658
- f.close()
1659
-
1660
- if self.paths and not saw_import:
1661
- self.dirty = True # ensure anything we touch has import wrappers
1662
- while self.paths and not self.paths[-1].strip():
1663
- self.paths.pop()
1664
-
1665
- def save(self):
1666
- """Write changed .pth file back to disk"""
1667
- if not self.dirty:
1668
- return
1669
-
1670
- rel_paths = list(map(self.make_relative, self.paths))
1671
- if rel_paths:
1672
- log.debug("Saving %s", self.filename)
1673
- lines = self._wrap_lines(rel_paths)
1674
- data = '\n'.join(lines) + '\n'
1675
-
1676
- if os.path.islink(self.filename):
1677
- os.unlink(self.filename)
1678
- with open(self.filename, 'wt') as f:
1679
- f.write(data)
1680
-
1681
- elif os.path.exists(self.filename):
1682
- log.debug("Deleting empty %s", self.filename)
1683
- os.unlink(self.filename)
1684
-
1685
- self.dirty = False
1686
-
1687
- @staticmethod
1688
- def _wrap_lines(lines):
1689
- return lines
1690
-
1691
- def add(self, dist):
1692
- """Add `dist` to the distribution map"""
1693
- new_path = (
1694
- dist.location not in self.paths and (
1695
- dist.location not in self.sitedirs or
1696
- # account for '.' being in PYTHONPATH
1697
- dist.location == os.getcwd()
1698
- )
1699
- )
1700
- if new_path:
1701
- self.paths.append(dist.location)
1702
- self.dirty = True
1703
- Environment.add(self, dist)
1704
-
1705
- def remove(self, dist):
1706
- """Remove `dist` from the distribution map"""
1707
- while dist.location in self.paths:
1708
- self.paths.remove(dist.location)
1709
- self.dirty = True
1710
- Environment.remove(self, dist)
1711
-
1712
- def make_relative(self, path):
1713
- npath, last = os.path.split(normalize_path(path))
1714
- baselen = len(self.basedir)
1715
- parts = [last]
1716
- sep = os.altsep == '/' and '/' or os.sep
1717
- while len(npath) >= baselen:
1718
- if npath == self.basedir:
1719
- parts.append(os.curdir)
1720
- parts.reverse()
1721
- return sep.join(parts)
1722
- npath, last = os.path.split(npath)
1723
- parts.append(last)
1724
- else:
1725
- return path
1726
-
1727
-
1728
- class RewritePthDistributions(PthDistributions):
1729
- @classmethod
1730
- def _wrap_lines(cls, lines):
1731
- yield cls.prelude
1732
- for line in lines:
1733
- yield line
1734
- yield cls.postlude
1735
-
1736
- prelude = _one_liner("""
1737
- import sys
1738
- sys.__plen = len(sys.path)
1739
- """)
1740
- postlude = _one_liner("""
1741
- import sys
1742
- new = sys.path[sys.__plen:]
1743
- del sys.path[sys.__plen:]
1744
- p = getattr(sys, '__egginsert', 0)
1745
- sys.path[p:p] = new
1746
- sys.__egginsert = p + len(new)
1747
- """)
1748
-
1749
-
1750
- if os.environ.get('SETUPTOOLS_SYS_PATH_TECHNIQUE', 'raw') == 'rewrite':
1751
- PthDistributions = RewritePthDistributions
1752
-
1753
-
1754
- def _first_line_re():
1755
- """
1756
- Return a regular expression based on first_line_re suitable for matching
1757
- strings.
1758
- """
1759
- if isinstance(first_line_re.pattern, str):
1760
- return first_line_re
1761
-
1762
- # first_line_re in Python >=3.1.4 and >=3.2.1 is a bytes pattern.
1763
- return re.compile(first_line_re.pattern.decode())
1764
-
1765
-
1766
- def auto_chmod(func, arg, exc):
1767
- if func in [os.unlink, os.remove] and os.name == 'nt':
1768
- chmod(arg, stat.S_IWRITE)
1769
- return func(arg)
1770
- et, ev, _ = sys.exc_info()
1771
- # TODO: This code doesn't make sense. What is it trying to do?
1772
- raise (ev[0], ev[1] + (" %s %s" % (func, arg)))
1773
-
1774
-
1775
- def update_dist_caches(dist_path, fix_zipimporter_caches):
1776
- """
1777
- Fix any globally cached `dist_path` related data
1778
-
1779
- `dist_path` should be a path of a newly installed egg distribution (zipped
1780
- or unzipped).
1781
-
1782
- sys.path_importer_cache contains finder objects that have been cached when
1783
- importing data from the original distribution. Any such finders need to be
1784
- cleared since the replacement distribution might be packaged differently,
1785
- e.g. a zipped egg distribution might get replaced with an unzipped egg
1786
- folder or vice versa. Having the old finders cached may then cause Python
1787
- to attempt loading modules from the replacement distribution using an
1788
- incorrect loader.
1789
-
1790
- zipimport.zipimporter objects are Python loaders charged with importing
1791
- data packaged inside zip archives. If stale loaders referencing the
1792
- original distribution, are left behind, they can fail to load modules from
1793
- the replacement distribution. E.g. if an old zipimport.zipimporter instance
1794
- is used to load data from a new zipped egg archive, it may cause the
1795
- operation to attempt to locate the requested data in the wrong location -
1796
- one indicated by the original distribution's zip archive directory
1797
- information. Such an operation may then fail outright, e.g. report having
1798
- read a 'bad local file header', or even worse, it may fail silently &
1799
- return invalid data.
1800
-
1801
- zipimport._zip_directory_cache contains cached zip archive directory
1802
- information for all existing zipimport.zipimporter instances and all such
1803
- instances connected to the same archive share the same cached directory
1804
- information.
1805
-
1806
- If asked, and the underlying Python implementation allows it, we can fix
1807
- all existing zipimport.zipimporter instances instead of having to track
1808
- them down and remove them one by one, by updating their shared cached zip
1809
- archive directory information. This, of course, assumes that the
1810
- replacement distribution is packaged as a zipped egg.
1811
-
1812
- If not asked to fix existing zipimport.zipimporter instances, we still do
1813
- our best to clear any remaining zipimport.zipimporter related cached data
1814
- that might somehow later get used when attempting to load data from the new
1815
- distribution and thus cause such load operations to fail. Note that when
1816
- tracking down such remaining stale data, we can not catch every conceivable
1817
- usage from here, and we clear only those that we know of and have found to
1818
- cause problems if left alive. Any remaining caches should be updated by
1819
- whomever is in charge of maintaining them, i.e. they should be ready to
1820
- handle us replacing their zip archives with new distributions at runtime.
1821
-
1822
- """
1823
- # There are several other known sources of stale zipimport.zipimporter
1824
- # instances that we do not clear here, but might if ever given a reason to
1825
- # do so:
1826
- # * Global setuptools pkg_resources.working_set (a.k.a. 'master working
1827
- # set') may contain distributions which may in turn contain their
1828
- # zipimport.zipimporter loaders.
1829
- # * Several zipimport.zipimporter loaders held by local variables further
1830
- # up the function call stack when running the setuptools installation.
1831
- # * Already loaded modules may have their __loader__ attribute set to the
1832
- # exact loader instance used when importing them. Python 3.4 docs state
1833
- # that this information is intended mostly for introspection and so is
1834
- # not expected to cause us problems.
1835
- normalized_path = normalize_path(dist_path)
1836
- _uncache(normalized_path, sys.path_importer_cache)
1837
- if fix_zipimporter_caches:
1838
- _replace_zip_directory_cache_data(normalized_path)
1839
- else:
1840
- # Here, even though we do not want to fix existing and now stale
1841
- # zipimporter cache information, we still want to remove it. Related to
1842
- # Python's zip archive directory information cache, we clear each of
1843
- # its stale entries in two phases:
1844
- # 1. Clear the entry so attempting to access zip archive information
1845
- # via any existing stale zipimport.zipimporter instances fails.
1846
- # 2. Remove the entry from the cache so any newly constructed
1847
- # zipimport.zipimporter instances do not end up using old stale
1848
- # zip archive directory information.
1849
- # This whole stale data removal step does not seem strictly necessary,
1850
- # but has been left in because it was done before we started replacing
1851
- # the zip archive directory information cache content if possible, and
1852
- # there are no relevant unit tests that we can depend on to tell us if
1853
- # this is really needed.
1854
- _remove_and_clear_zip_directory_cache_data(normalized_path)
1855
-
1856
-
1857
- def _collect_zipimporter_cache_entries(normalized_path, cache):
1858
- """
1859
- Return zipimporter cache entry keys related to a given normalized path.
1860
-
1861
- Alternative path spellings (e.g. those using different character case or
1862
- those using alternative path separators) related to the same path are
1863
- included. Any sub-path entries are included as well, i.e. those
1864
- corresponding to zip archives embedded in other zip archives.
1865
-
1866
- """
1867
- result = []
1868
- prefix_len = len(normalized_path)
1869
- for p in cache:
1870
- np = normalize_path(p)
1871
- if (np.startswith(normalized_path) and
1872
- np[prefix_len:prefix_len + 1] in (os.sep, '')):
1873
- result.append(p)
1874
- return result
1875
-
1876
-
1877
- def _update_zipimporter_cache(normalized_path, cache, updater=None):
1878
- """
1879
- Update zipimporter cache data for a given normalized path.
1880
-
1881
- Any sub-path entries are processed as well, i.e. those corresponding to zip
1882
- archives embedded in other zip archives.
1883
-
1884
- Given updater is a callable taking a cache entry key and the original entry
1885
- (after already removing the entry from the cache), and expected to update
1886
- the entry and possibly return a new one to be inserted in its place.
1887
- Returning None indicates that the entry should not be replaced with a new
1888
- one. If no updater is given, the cache entries are simply removed without
1889
- any additional processing, the same as if the updater simply returned None.
1890
-
1891
- """
1892
- for p in _collect_zipimporter_cache_entries(normalized_path, cache):
1893
- # N.B. pypy's custom zipimport._zip_directory_cache implementation does
1894
- # not support the complete dict interface:
1895
- # * Does not support item assignment, thus not allowing this function
1896
- # to be used only for removing existing cache entries.
1897
- # * Does not support the dict.pop() method, forcing us to use the
1898
- # get/del patterns instead. For more detailed information see the
1899
- # following links:
1900
- # https://github.com/pypa/setuptools/issues/202#issuecomment-202913420
1901
- # http://bit.ly/2h9itJX
1902
- old_entry = cache[p]
1903
- del cache[p]
1904
- new_entry = updater and updater(p, old_entry)
1905
- if new_entry is not None:
1906
- cache[p] = new_entry
1907
-
1908
-
1909
- def _uncache(normalized_path, cache):
1910
- _update_zipimporter_cache(normalized_path, cache)
1911
-
1912
-
1913
- def _remove_and_clear_zip_directory_cache_data(normalized_path):
1914
- def clear_and_remove_cached_zip_archive_directory_data(path, old_entry):
1915
- old_entry.clear()
1916
-
1917
- _update_zipimporter_cache(
1918
- normalized_path, zipimport._zip_directory_cache,
1919
- updater=clear_and_remove_cached_zip_archive_directory_data)
1920
-
1921
-
1922
- # PyPy Python implementation does not allow directly writing to the
1923
- # zipimport._zip_directory_cache and so prevents us from attempting to correct
1924
- # its content. The best we can do there is clear the problematic cache content
1925
- # and have PyPy repopulate it as needed. The downside is that if there are any
1926
- # stale zipimport.zipimporter instances laying around, attempting to use them
1927
- # will fail due to not having its zip archive directory information available
1928
- # instead of being automatically corrected to use the new correct zip archive
1929
- # directory information.
1930
- if '__pypy__' in sys.builtin_module_names:
1931
- _replace_zip_directory_cache_data = \
1932
- _remove_and_clear_zip_directory_cache_data
1933
- else:
1934
-
1935
- def _replace_zip_directory_cache_data(normalized_path):
1936
- def replace_cached_zip_archive_directory_data(path, old_entry):
1937
- # N.B. In theory, we could load the zip directory information just
1938
- # once for all updated path spellings, and then copy it locally and
1939
- # update its contained path strings to contain the correct
1940
- # spelling, but that seems like a way too invasive move (this cache
1941
- # structure is not officially documented anywhere and could in
1942
- # theory change with new Python releases) for no significant
1943
- # benefit.
1944
- old_entry.clear()
1945
- zipimport.zipimporter(path)
1946
- old_entry.update(zipimport._zip_directory_cache[path])
1947
- return old_entry
1948
-
1949
- _update_zipimporter_cache(
1950
- normalized_path, zipimport._zip_directory_cache,
1951
- updater=replace_cached_zip_archive_directory_data)
1952
-
1953
-
1954
- def is_python(text, filename='<string>'):
1955
- "Is this string a valid Python script?"
1956
- try:
1957
- compile(text, filename, 'exec')
1958
- except (SyntaxError, TypeError):
1959
- return False
1960
- else:
1961
- return True
1962
-
1963
-
1964
- def is_sh(executable):
1965
- """Determine if the specified executable is a .sh (contains a #! line)"""
1966
- try:
1967
- with io.open(executable, encoding='latin-1') as fp:
1968
- magic = fp.read(2)
1969
- except (OSError, IOError):
1970
- return executable
1971
- return magic == '#!'
1972
-
1973
-
1974
- def nt_quote_arg(arg):
1975
- """Quote a command line argument according to Windows parsing rules"""
1976
- return subprocess.list2cmdline([arg])
1977
-
1978
-
1979
- def is_python_script(script_text, filename):
1980
- """Is this text, as a whole, a Python script? (as opposed to shell/bat/etc.
1981
- """
1982
- if filename.endswith('.py') or filename.endswith('.pyw'):
1983
- return True # extension says it's Python
1984
- if is_python(script_text, filename):
1985
- return True # it's syntactically valid Python
1986
- if script_text.startswith('#!'):
1987
- # It begins with a '#!' line, so check if 'python' is in it somewhere
1988
- return 'python' in script_text.splitlines()[0].lower()
1989
-
1990
- return False # Not any Python I can recognize
1991
-
1992
-
1993
- try:
1994
- from os import chmod as _chmod
1995
- except ImportError:
1996
- # Jython compatibility
1997
- def _chmod(*args):
1998
- pass
1999
-
2000
-
2001
- def chmod(path, mode):
2002
- log.debug("changing mode of %s to %o", path, mode)
2003
- try:
2004
- _chmod(path, mode)
2005
- except os.error as e:
2006
- log.debug("chmod failed: %s", e)
2007
-
2008
-
2009
- class CommandSpec(list):
2010
- """
2011
- A command spec for a #! header, specified as a list of arguments akin to
2012
- those passed to Popen.
2013
- """
2014
-
2015
- options = []
2016
- split_args = dict()
2017
-
2018
- @classmethod
2019
- def best(cls):
2020
- """
2021
- Choose the best CommandSpec class based on environmental conditions.
2022
- """
2023
- return cls
2024
-
2025
- @classmethod
2026
- def _sys_executable(cls):
2027
- _default = os.path.normpath(sys.executable)
2028
- return os.environ.get('__PYVENV_LAUNCHER__', _default)
2029
-
2030
- @classmethod
2031
- def from_param(cls, param):
2032
- """
2033
- Construct a CommandSpec from a parameter to build_scripts, which may
2034
- be None.
2035
- """
2036
- if isinstance(param, cls):
2037
- return param
2038
- if isinstance(param, list):
2039
- return cls(param)
2040
- if param is None:
2041
- return cls.from_environment()
2042
- # otherwise, assume it's a string.
2043
- return cls.from_string(param)
2044
-
2045
- @classmethod
2046
- def from_environment(cls):
2047
- return cls([cls._sys_executable()])
2048
-
2049
- @classmethod
2050
- def from_string(cls, string):
2051
- """
2052
- Construct a command spec from a simple string representing a command
2053
- line parseable by shlex.split.
2054
- """
2055
- items = shlex.split(string, **cls.split_args)
2056
- return cls(items)
2057
-
2058
- def install_options(self, script_text):
2059
- self.options = shlex.split(self._extract_options(script_text))
2060
- cmdline = subprocess.list2cmdline(self)
2061
- if not isascii(cmdline):
2062
- self.options[:0] = ['-x']
2063
-
2064
- @staticmethod
2065
- def _extract_options(orig_script):
2066
- """
2067
- Extract any options from the first line of the script.
2068
- """
2069
- first = (orig_script + '\n').splitlines()[0]
2070
- match = _first_line_re().match(first)
2071
- options = match.group(1) or '' if match else ''
2072
- return options.strip()
2073
-
2074
- def as_header(self):
2075
- return self._render(self + list(self.options))
2076
-
2077
- @staticmethod
2078
- def _strip_quotes(item):
2079
- _QUOTES = '"\''
2080
- for q in _QUOTES:
2081
- if item.startswith(q) and item.endswith(q):
2082
- return item[1:-1]
2083
- return item
2084
-
2085
- @staticmethod
2086
- def _render(items):
2087
- cmdline = subprocess.list2cmdline(
2088
- CommandSpec._strip_quotes(item.strip()) for item in items)
2089
- return '#!' + cmdline + '\n'
2090
-
2091
-
2092
- # For pbr compat; will be removed in a future version.
2093
- sys_executable = CommandSpec._sys_executable()
2094
-
2095
-
2096
- class WindowsCommandSpec(CommandSpec):
2097
- split_args = dict(posix=False)
2098
-
2099
-
2100
- class ScriptWriter:
2101
- """
2102
- Encapsulates behavior around writing entry point scripts for console and
2103
- gui apps.
2104
- """
2105
-
2106
- template = textwrap.dedent(r"""
2107
- # EASY-INSTALL-ENTRY-SCRIPT: %(spec)r,%(group)r,%(name)r
2108
- import re
2109
- import sys
2110
-
2111
- # for compatibility with easy_install; see #2198
2112
- __requires__ = %(spec)r
2113
-
2114
- try:
2115
- from importlib.metadata import distribution
2116
- except ImportError:
2117
- try:
2118
- from importlib_metadata import distribution
2119
- except ImportError:
2120
- from pkg_resources import load_entry_point
2121
-
2122
-
2123
- def importlib_load_entry_point(spec, group, name):
2124
- dist_name, _, _ = spec.partition('==')
2125
- matches = (
2126
- entry_point
2127
- for entry_point in distribution(dist_name).entry_points
2128
- if entry_point.group == group and entry_point.name == name
2129
- )
2130
- return next(matches).load()
2131
-
2132
-
2133
- globals().setdefault('load_entry_point', importlib_load_entry_point)
2134
-
2135
-
2136
- if __name__ == '__main__':
2137
- sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
2138
- sys.exit(load_entry_point(%(spec)r, %(group)r, %(name)r)())
2139
- """).lstrip()
2140
-
2141
- command_spec_class = CommandSpec
2142
-
2143
- @classmethod
2144
- def get_script_args(cls, dist, executable=None, wininst=False):
2145
- # for backward compatibility
2146
- warnings.warn("Use get_args", EasyInstallDeprecationWarning)
2147
- writer = (WindowsScriptWriter if wininst else ScriptWriter).best()
2148
- header = cls.get_script_header("", executable, wininst)
2149
- return writer.get_args(dist, header)
2150
-
2151
- @classmethod
2152
- def get_script_header(cls, script_text, executable=None, wininst=False):
2153
- # for backward compatibility
2154
- warnings.warn(
2155
- "Use get_header", EasyInstallDeprecationWarning, stacklevel=2)
2156
- if wininst:
2157
- executable = "python.exe"
2158
- return cls.get_header(script_text, executable)
2159
-
2160
- @classmethod
2161
- def get_args(cls, dist, header=None):
2162
- """
2163
- Yield write_script() argument tuples for a distribution's
2164
- console_scripts and gui_scripts entry points.
2165
- """
2166
- if header is None:
2167
- header = cls.get_header()
2168
- spec = str(dist.as_requirement())
2169
- for type_ in 'console', 'gui':
2170
- group = type_ + '_scripts'
2171
- for name, ep in dist.get_entry_map(group).items():
2172
- cls._ensure_safe_name(name)
2173
- script_text = cls.template % locals()
2174
- args = cls._get_script_args(type_, name, header, script_text)
2175
- for res in args:
2176
- yield res
2177
-
2178
- @staticmethod
2179
- def _ensure_safe_name(name):
2180
- """
2181
- Prevent paths in *_scripts entry point names.
2182
- """
2183
- has_path_sep = re.search(r'[\\/]', name)
2184
- if has_path_sep:
2185
- raise ValueError("Path separators not allowed in script names")
2186
-
2187
- @classmethod
2188
- def get_writer(cls, force_windows):
2189
- # for backward compatibility
2190
- warnings.warn("Use best", EasyInstallDeprecationWarning)
2191
- return WindowsScriptWriter.best() if force_windows else cls.best()
2192
-
2193
- @classmethod
2194
- def best(cls):
2195
- """
2196
- Select the best ScriptWriter for this environment.
2197
- """
2198
- if sys.platform == 'win32' or (os.name == 'java' and os._name == 'nt'):
2199
- return WindowsScriptWriter.best()
2200
- else:
2201
- return cls
2202
-
2203
- @classmethod
2204
- def _get_script_args(cls, type_, name, header, script_text):
2205
- # Simply write the stub with no extension.
2206
- yield (name, header + script_text)
2207
-
2208
- @classmethod
2209
- def get_header(cls, script_text="", executable=None):
2210
- """Create a #! line, getting options (if any) from script_text"""
2211
- cmd = cls.command_spec_class.best().from_param(executable)
2212
- cmd.install_options(script_text)
2213
- return cmd.as_header()
2214
-
2215
-
2216
- class WindowsScriptWriter(ScriptWriter):
2217
- command_spec_class = WindowsCommandSpec
2218
-
2219
- @classmethod
2220
- def get_writer(cls):
2221
- # for backward compatibility
2222
- warnings.warn("Use best", EasyInstallDeprecationWarning)
2223
- return cls.best()
2224
-
2225
- @classmethod
2226
- def best(cls):
2227
- """
2228
- Select the best ScriptWriter suitable for Windows
2229
- """
2230
- writer_lookup = dict(
2231
- executable=WindowsExecutableLauncherWriter,
2232
- natural=cls,
2233
- )
2234
- # for compatibility, use the executable launcher by default
2235
- launcher = os.environ.get('SETUPTOOLS_LAUNCHER', 'executable')
2236
- return writer_lookup[launcher]
2237
-
2238
- @classmethod
2239
- def _get_script_args(cls, type_, name, header, script_text):
2240
- "For Windows, add a .py extension"
2241
- ext = dict(console='.pya', gui='.pyw')[type_]
2242
- if ext not in os.environ['PATHEXT'].lower().split(';'):
2243
- msg = (
2244
- "{ext} not listed in PATHEXT; scripts will not be "
2245
- "recognized as executables."
2246
- ).format(**locals())
2247
- warnings.warn(msg, UserWarning)
2248
- old = ['.pya', '.py', '-script.py', '.pyc', '.pyo', '.pyw', '.exe']
2249
- old.remove(ext)
2250
- header = cls._adjust_header(type_, header)
2251
- blockers = [name + x for x in old]
2252
- yield name + ext, header + script_text, 't', blockers
2253
-
2254
- @classmethod
2255
- def _adjust_header(cls, type_, orig_header):
2256
- """
2257
- Make sure 'pythonw' is used for gui and 'python' is used for
2258
- console (regardless of what sys.executable is).
2259
- """
2260
- pattern = 'pythonw.exe'
2261
- repl = 'python.exe'
2262
- if type_ == 'gui':
2263
- pattern, repl = repl, pattern
2264
- pattern_ob = re.compile(re.escape(pattern), re.IGNORECASE)
2265
- new_header = pattern_ob.sub(string=orig_header, repl=repl)
2266
- return new_header if cls._use_header(new_header) else orig_header
2267
-
2268
- @staticmethod
2269
- def _use_header(new_header):
2270
- """
2271
- Should _adjust_header use the replaced header?
2272
-
2273
- On non-windows systems, always use. On
2274
- Windows systems, only use the replaced header if it resolves
2275
- to an executable on the system.
2276
- """
2277
- clean_header = new_header[2:-1].strip('"')
2278
- return sys.platform != 'win32' or find_executable(clean_header)
2279
-
2280
-
2281
- class WindowsExecutableLauncherWriter(WindowsScriptWriter):
2282
- @classmethod
2283
- def _get_script_args(cls, type_, name, header, script_text):
2284
- """
2285
- For Windows, add a .py extension and an .exe launcher
2286
- """
2287
- if type_ == 'gui':
2288
- launcher_type = 'gui'
2289
- ext = '-script.pyw'
2290
- old = ['.pyw']
2291
- else:
2292
- launcher_type = 'cli'
2293
- ext = '-script.py'
2294
- old = ['.py', '.pyc', '.pyo']
2295
- hdr = cls._adjust_header(type_, header)
2296
- blockers = [name + x for x in old]
2297
- yield (name + ext, hdr + script_text, 't', blockers)
2298
- yield (
2299
- name + '.exe', get_win_launcher(launcher_type),
2300
- 'b' # write in binary mode
2301
- )
2302
- if not is_64bit():
2303
- # install a manifest for the launcher to prevent Windows
2304
- # from detecting it as an installer (which it will for
2305
- # launchers like easy_install.exe). Consider only
2306
- # adding a manifest for launchers detected as installers.
2307
- # See Distribute #143 for details.
2308
- m_name = name + '.exe.manifest'
2309
- yield (m_name, load_launcher_manifest(name), 't')
2310
-
2311
-
2312
- # for backward-compatibility
2313
- get_script_args = ScriptWriter.get_script_args
2314
- get_script_header = ScriptWriter.get_script_header
2315
-
2316
-
2317
- def get_win_launcher(type):
2318
- """
2319
- Load the Windows launcher (executable) suitable for launching a script.
2320
-
2321
- `type` should be either 'cli' or 'gui'
2322
-
2323
- Returns the executable as a byte string.
2324
- """
2325
- launcher_fn = '%s.exe' % type
2326
- if is_64bit():
2327
- if get_platform() == "win-arm64":
2328
- launcher_fn = launcher_fn.replace(".", "-arm64.")
2329
- else:
2330
- launcher_fn = launcher_fn.replace(".", "-64.")
2331
- else:
2332
- launcher_fn = launcher_fn.replace(".", "-32.")
2333
- return resource_string('setuptools', launcher_fn)
2334
-
2335
-
2336
- def load_launcher_manifest(name):
2337
- manifest = pkg_resources.resource_string(__name__, 'launcher manifest.xml')
2338
- return manifest.decode('utf-8') % vars()
2339
-
2340
-
2341
- def rmtree(path, ignore_errors=False, onerror=auto_chmod):
2342
- return shutil.rmtree(path, ignore_errors, onerror)
2343
-
2344
-
2345
- def current_umask():
2346
- tmp = os.umask(0o022)
2347
- os.umask(tmp)
2348
- return tmp
2349
-
2350
-
2351
- class EasyInstallDeprecationWarning(SetuptoolsDeprecationWarning):
2352
- """
2353
- Warning for EasyInstall deprecations, bypassing suppression.
2354
- """