@anaconda/desktop-bridge-payload-win32-arm64 0.1.21 → 0.1.22

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 (246) hide show
  1. package/THIRD_PARTY_NOTICES +17 -17
  2. package/manifest.json +7 -7
  3. package/package.json +1 -1
  4. package/python/BUILD +1 -1
  5. package/python/DLLs/_asyncio.pyd +0 -0
  6. package/python/DLLs/_bz2.pyd +0 -0
  7. package/python/DLLs/_ctypes.pyd +0 -0
  8. package/python/DLLs/_ctypes_test.pyd +0 -0
  9. package/python/DLLs/_decimal.pyd +0 -0
  10. package/python/DLLs/_elementtree.pyd +0 -0
  11. package/python/DLLs/_hashlib.pyd +0 -0
  12. package/python/DLLs/_lzma.pyd +0 -0
  13. package/python/DLLs/_msi.pyd +0 -0
  14. package/python/DLLs/_multiprocessing.pyd +0 -0
  15. package/python/DLLs/_overlapped.pyd +0 -0
  16. package/python/DLLs/_queue.pyd +0 -0
  17. package/python/DLLs/_socket.pyd +0 -0
  18. package/python/DLLs/_sqlite3.pyd +0 -0
  19. package/python/DLLs/_ssl.pyd +0 -0
  20. package/python/DLLs/_testbuffer.pyd +0 -0
  21. package/python/DLLs/_testcapi.pyd +0 -0
  22. package/python/DLLs/_testconsole.pyd +0 -0
  23. package/python/DLLs/_testimportmultiple.pyd +0 -0
  24. package/python/DLLs/_testinternalcapi.pyd +0 -0
  25. package/python/DLLs/_testmultiphase.pyd +0 -0
  26. package/python/DLLs/_uuid.pyd +0 -0
  27. package/python/DLLs/_zoneinfo.pyd +0 -0
  28. package/python/DLLs/libcrypto-3-arm64.dll +0 -0
  29. package/python/DLLs/libffi-8.dll +0 -0
  30. package/python/DLLs/libssl-3-arm64.dll +0 -0
  31. package/python/DLLs/pyexpat.pyd +0 -0
  32. package/python/DLLs/select.pyd +0 -0
  33. package/python/DLLs/sqlite3.dll +0 -0
  34. package/python/DLLs/unicodedata.pyd +0 -0
  35. package/python/DLLs/winsound.pyd +0 -0
  36. package/python/Lib/site-packages/_ruamel_yaml.cp311-win_arm64.pyd +0 -0
  37. package/python/Lib/site-packages/anaconda_anon_usage-0.8.1.dist-info/RECORD +1 -1
  38. package/python/Lib/site-packages/anaconda_auth-0.15.3.dist-info/RECORD +1 -1
  39. package/python/Lib/site-packages/anaconda_cli_base-0.9.1.dist-info/RECORD +1 -1
  40. package/python/Lib/site-packages/anaconda_desktop_bridge/__main__.py +8 -0
  41. package/python/Lib/site-packages/anaconda_desktop_bridge/__pycache__/__main__.cpython-311.pyc +0 -0
  42. package/python/Lib/site-packages/anaconda_desktop_bridge/__pycache__/errors.cpython-311.pyc +0 -0
  43. package/python/Lib/site-packages/anaconda_desktop_bridge/__pycache__/telemetry.cpython-311.pyc +0 -0
  44. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/__init__.py +2 -0
  45. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/__pycache__/__init__.cpython-311.pyc +0 -0
  46. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/__pycache__/auth_handler.cpython-311.pyc +0 -0
  47. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/__pycache__/auth_plugin.cpython-311.pyc +0 -0
  48. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/__pycache__/lock.cpython-311.pyc +0 -0
  49. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/__pycache__/repo_credentials.cpython-311.pyc +0 -0
  50. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/auth_handler.py +219 -0
  51. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/auth_plugin.py +50 -0
  52. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/lock.py +26 -1
  53. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/operations/__pycache__/channels.cpython-311.pyc +0 -0
  54. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/operations/__pycache__/repodata.cpython-311.pyc +0 -0
  55. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/operations/channels.py +196 -4
  56. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/operations/repodata.py +8 -1
  57. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/repo_credentials.py +224 -0
  58. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/transactions/__pycache__/transaction.cpython-311.pyc +0 -0
  59. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/transactions/transaction.py +23 -0
  60. package/python/Lib/site-packages/anaconda_desktop_bridge/errors.py +24 -0
  61. package/python/Lib/site-packages/anaconda_desktop_bridge/features/__pycache__/conda_tools.cpython-311.pyc +0 -0
  62. package/python/Lib/site-packages/anaconda_desktop_bridge/features/conda_tools.py +8 -0
  63. package/python/Lib/site-packages/anaconda_desktop_bridge/models/__pycache__/conda_tools.cpython-311.pyc +0 -0
  64. package/python/Lib/site-packages/anaconda_desktop_bridge/models/conda_tools.py +46 -1
  65. package/python/Lib/site-packages/anaconda_desktop_bridge/telemetry.py +2 -20
  66. package/python/Lib/site-packages/anaconda_desktop_bridge-0.1.0.dist-info/METADATA +75 -5
  67. package/python/Lib/site-packages/anaconda_desktop_bridge-0.1.0.dist-info/RECORD +16 -13
  68. package/python/Lib/site-packages/anaconda_desktop_bridge-0.1.0.dist-info/uv_cache.json +1 -1
  69. package/python/Lib/site-packages/archspec-0.2.7.dist-info/RECORD +1 -1
  70. package/python/Lib/site-packages/cffi-2.1.1.dist-info/RECORD +1 -1
  71. package/python/Lib/site-packages/charset_normalizer-3.5.2.dist-info/RECORD +1 -1
  72. package/python/Lib/site-packages/conda-26.1.1.dist-info/RECORD +1 -1
  73. package/python/Lib/site-packages/conda_package_handling-2.6.0.dist-info/RECORD +1 -1
  74. package/python/Lib/site-packages/distro-1.9.0.dist-info/RECORD +1 -1
  75. package/python/Lib/site-packages/httpx-0.28.1.dist-info/RECORD +1 -1
  76. package/python/Lib/site-packages/idna-3.20.dist-info/RECORD +1 -1
  77. package/python/Lib/site-packages/jsonpatch-1.47.dist-info/RECORD +2 -2
  78. package/python/Lib/site-packages/keyring-25.7.0.dist-info/RECORD +1 -1
  79. package/python/Lib/site-packages/markdown_it_py-4.3.0.dist-info/RECORD +1 -1
  80. package/python/Lib/site-packages/menuinst/platforms/win_utils/winshortcut.cp311-win_arm64.pyd +0 -0
  81. package/python/Lib/site-packages/menuinst-2.5.1.dist-info/RECORD +2 -2
  82. package/python/Lib/site-packages/platformdirs/__init__.py +155 -128
  83. package/python/Lib/site-packages/platformdirs/__main__.py +10 -10
  84. package/python/Lib/site-packages/platformdirs/__pycache__/__init__.cpython-311.pyc +0 -0
  85. package/python/Lib/site-packages/platformdirs/__pycache__/__main__.cpython-311.pyc +0 -0
  86. package/python/Lib/site-packages/platformdirs/__pycache__/_android.cpython-311.pyc +0 -0
  87. package/python/Lib/site-packages/platformdirs/__pycache__/_runtime.cpython-311.pyc +0 -0
  88. package/python/Lib/site-packages/platformdirs/__pycache__/_xdg.cpython-311.pyc +0 -0
  89. package/python/Lib/site-packages/platformdirs/__pycache__/android.cpython-311.pyc +0 -0
  90. package/python/Lib/site-packages/platformdirs/__pycache__/api.cpython-311.pyc +0 -0
  91. package/python/Lib/site-packages/platformdirs/__pycache__/ios.cpython-311.pyc +0 -0
  92. package/python/Lib/site-packages/platformdirs/__pycache__/macos.cpython-311.pyc +0 -0
  93. package/python/Lib/site-packages/platformdirs/__pycache__/pytest_plugin.cpython-311.pyc +0 -0
  94. package/python/Lib/site-packages/platformdirs/__pycache__/testing.cpython-311.pyc +0 -0
  95. package/python/Lib/site-packages/platformdirs/__pycache__/unix.cpython-311.pyc +0 -0
  96. package/python/Lib/site-packages/platformdirs/__pycache__/version.cpython-311.pyc +0 -0
  97. package/python/Lib/site-packages/platformdirs/__pycache__/windows.cpython-311.pyc +0 -0
  98. package/python/Lib/site-packages/platformdirs/_android.py +67 -0
  99. package/python/Lib/site-packages/platformdirs/_runtime.py +65 -0
  100. package/python/Lib/site-packages/platformdirs/_xdg.py +50 -47
  101. package/python/Lib/site-packages/platformdirs/android.py +64 -112
  102. package/python/Lib/site-packages/platformdirs/api.py +384 -293
  103. package/python/Lib/site-packages/platformdirs/ios.py +40 -40
  104. package/python/Lib/site-packages/platformdirs/macos.py +95 -72
  105. package/python/Lib/site-packages/platformdirs/pytest_plugin.py +5 -4
  106. package/python/Lib/site-packages/platformdirs/testing.py +23 -21
  107. package/python/Lib/site-packages/platformdirs/unix.py +158 -169
  108. package/python/Lib/site-packages/platformdirs/version.py +2 -2
  109. package/python/Lib/site-packages/platformdirs/windows.py +135 -121
  110. package/python/Lib/site-packages/{platformdirs-4.14.5.dist-info → platformdirs-4.14.7.dist-info}/METADATA +1 -1
  111. package/python/Lib/site-packages/platformdirs-4.14.7.dist-info/RECORD +23 -0
  112. package/python/Lib/site-packages/{pydantic_settings-2.16.2.dist-info → platformdirs-4.14.7.dist-info}/WHEEL +1 -1
  113. package/python/Lib/site-packages/platformdirs-4.14.7.dist-info/sboms/platformdirs.cdx.json +14820 -0
  114. package/python/Lib/site-packages/pycosat-0.6.6.dist-info/RECORD +1 -1
  115. package/python/Lib/site-packages/pycosat.cp311-win_arm64.pyd +0 -0
  116. package/python/Lib/site-packages/pydantic_settings/__pycache__/version.cpython-311.pyc +0 -0
  117. package/python/Lib/site-packages/pydantic_settings/sources/providers/__pycache__/cli.cpython-311.pyc +0 -0
  118. package/python/Lib/site-packages/pydantic_settings/sources/providers/__pycache__/nested_secrets.cpython-311.pyc +0 -0
  119. package/python/Lib/site-packages/pydantic_settings/sources/providers/__pycache__/secrets.cpython-311.pyc +0 -0
  120. package/python/Lib/site-packages/pydantic_settings/sources/providers/cli.py +13 -16
  121. package/python/Lib/site-packages/pydantic_settings/sources/providers/nested_secrets.py +32 -18
  122. package/python/Lib/site-packages/pydantic_settings/sources/providers/secrets.py +20 -1
  123. package/python/Lib/site-packages/pydantic_settings/version.py +1 -1
  124. package/python/Lib/site-packages/{pydantic_settings-2.16.2.dist-info → pydantic_settings-2.16.3.dist-info}/METADATA +1 -1
  125. package/python/Lib/site-packages/{pydantic_settings-2.16.2.dist-info → pydantic_settings-2.16.3.dist-info}/RECORD +10 -10
  126. package/python/Lib/site-packages/pygments-2.21.0.dist-info/RECORD +1 -1
  127. package/python/Lib/site-packages/python_dotenv-1.2.4.dist-info/RECORD +1 -1
  128. package/python/Lib/site-packages/ruamel_yaml_clib-0.2.15.dist-info/RECORD +1 -1
  129. package/python/Lib/site-packages/semver/__about__.py +1 -1
  130. package/python/Lib/site-packages/semver/__pycache__/__about__.cpython-311.pyc +0 -0
  131. package/python/Lib/site-packages/semver/__pycache__/version.cpython-311.pyc +0 -0
  132. package/python/Lib/site-packages/semver/version.py +16 -5
  133. package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/METADATA +1 -1
  134. package/python/Lib/site-packages/semver-3.1.2.dist-info/RECORD +17 -0
  135. package/python/Lib/site-packages/sentry_sdk/__pycache__/_types.cpython-311.pyc +0 -0
  136. package/python/Lib/site-packages/sentry_sdk/__pycache__/client.cpython-311.pyc +0 -0
  137. package/python/Lib/site-packages/sentry_sdk/__pycache__/consts.cpython-311.pyc +0 -0
  138. package/python/Lib/site-packages/sentry_sdk/__pycache__/traces.cpython-311.pyc +0 -0
  139. package/python/Lib/site-packages/sentry_sdk/__pycache__/utils.cpython-311.pyc +0 -0
  140. package/python/Lib/site-packages/sentry_sdk/_types.py +27 -3
  141. package/python/Lib/site-packages/sentry_sdk/client.py +1 -1
  142. package/python/Lib/site-packages/sentry_sdk/consts.py +7 -1
  143. package/python/Lib/site-packages/sentry_sdk/crons/__pycache__/decorator.cpython-311.pyc +0 -0
  144. package/python/Lib/site-packages/sentry_sdk/crons/__pycache__/utils.cpython-311.pyc +0 -0
  145. package/python/Lib/site-packages/sentry_sdk/crons/decorator.py +2 -0
  146. package/python/Lib/site-packages/sentry_sdk/crons/utils.py +26 -0
  147. package/python/Lib/site-packages/sentry_sdk/integrations/__pycache__/arq.cpython-311.pyc +0 -0
  148. package/python/Lib/site-packages/sentry_sdk/integrations/__pycache__/gql.cpython-311.pyc +0 -0
  149. package/python/Lib/site-packages/sentry_sdk/integrations/__pycache__/huggingface_hub.cpython-311.pyc +0 -0
  150. package/python/Lib/site-packages/sentry_sdk/integrations/__pycache__/starlette.cpython-311.pyc +0 -0
  151. package/python/Lib/site-packages/sentry_sdk/integrations/__pycache__/trytond.cpython-311.pyc +0 -0
  152. package/python/Lib/site-packages/sentry_sdk/integrations/arq.py +9 -16
  153. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/__init__.py +2 -0
  154. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/__pycache__/__init__.cpython-311.pyc +0 -0
  155. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/__pycache__/_client.cpython-311.pyc +0 -0
  156. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/__pycache__/_instrumentation.cpython-311.pyc +0 -0
  157. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_client.py +13 -15
  158. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_instrumentation.py +11 -13
  159. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_services/__pycache__/base.cpython-311.pyc +0 -0
  160. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_services/__pycache__/bedrock.cpython-311.pyc +0 -0
  161. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_services/base.py +16 -7
  162. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_services/bedrock.py +771 -0
  163. package/python/Lib/site-packages/sentry_sdk/integrations/celery/__init__.py +3 -2
  164. package/python/Lib/site-packages/sentry_sdk/integrations/celery/__pycache__/__init__.cpython-311.pyc +0 -0
  165. package/python/Lib/site-packages/sentry_sdk/integrations/django/__init__.py +1 -1
  166. package/python/Lib/site-packages/sentry_sdk/integrations/django/__pycache__/__init__.cpython-311.pyc +0 -0
  167. package/python/Lib/site-packages/sentry_sdk/integrations/django/__pycache__/signals_handlers.cpython-311.pyc +0 -0
  168. package/python/Lib/site-packages/sentry_sdk/integrations/django/signals_handlers.py +1 -1
  169. package/python/Lib/site-packages/sentry_sdk/integrations/gql.py +28 -3
  170. package/python/Lib/site-packages/sentry_sdk/integrations/huggingface_hub.py +1 -1
  171. package/python/Lib/site-packages/sentry_sdk/integrations/openai_agents/__init__.py +1 -1
  172. package/python/Lib/site-packages/sentry_sdk/integrations/openai_agents/__pycache__/__init__.cpython-311.pyc +0 -0
  173. package/python/Lib/site-packages/sentry_sdk/integrations/starlette.py +2 -2
  174. package/python/Lib/site-packages/sentry_sdk/integrations/trytond.py +1 -1
  175. package/python/Lib/site-packages/sentry_sdk/profiler/__pycache__/continuous_profiler.cpython-311.pyc +0 -0
  176. package/python/Lib/site-packages/sentry_sdk/profiler/__pycache__/transaction_profiler.cpython-311.pyc +0 -0
  177. package/python/Lib/site-packages/sentry_sdk/profiler/continuous_profiler.py +0 -3
  178. package/python/Lib/site-packages/sentry_sdk/profiler/transaction_profiler.py +1 -1
  179. package/python/Lib/site-packages/sentry_sdk/traces.py +1 -1
  180. package/python/Lib/site-packages/sentry_sdk/utils.py +17 -4
  181. package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/METADATA +1 -1
  182. package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/RECORD +31 -31
  183. package/python/Lib/site-packages/tqdm-4.70.1.dist-info/RECORD +1 -1
  184. package/python/Lib/site-packages/typer-0.29.1.dist-info/RECORD +1 -1
  185. package/python/Lib/venv/scripts/nt/python.exe +0 -0
  186. package/python/Lib/venv/scripts/nt/pythonw.exe +0 -0
  187. package/python/Scripts/conda.exe +0 -0
  188. package/python/libs/_asyncio.lib +0 -0
  189. package/python/libs/_bz2.lib +0 -0
  190. package/python/libs/_ctypes.lib +0 -0
  191. package/python/libs/_ctypes_test.lib +0 -0
  192. package/python/libs/_decimal.lib +0 -0
  193. package/python/libs/_elementtree.lib +0 -0
  194. package/python/libs/_hashlib.lib +0 -0
  195. package/python/libs/_lzma.lib +0 -0
  196. package/python/libs/_msi.lib +0 -0
  197. package/python/libs/_multiprocessing.lib +0 -0
  198. package/python/libs/_overlapped.lib +0 -0
  199. package/python/libs/_queue.lib +0 -0
  200. package/python/libs/_socket.lib +0 -0
  201. package/python/libs/_sqlite3.lib +0 -0
  202. package/python/libs/_ssl.lib +0 -0
  203. package/python/libs/_testbuffer.lib +0 -0
  204. package/python/libs/_testcapi.lib +0 -0
  205. package/python/libs/_testconsole.lib +0 -0
  206. package/python/libs/_testimportmultiple.lib +0 -0
  207. package/python/libs/_testinternalcapi.lib +0 -0
  208. package/python/libs/_testmultiphase.lib +0 -0
  209. package/python/libs/_tkinter.lib +0 -0
  210. package/python/libs/_uuid.lib +0 -0
  211. package/python/libs/_zoneinfo.lib +0 -0
  212. package/python/libs/pyexpat.lib +0 -0
  213. package/python/libs/python3.lib +0 -0
  214. package/python/libs/python311.lib +0 -0
  215. package/python/libs/select.lib +0 -0
  216. package/python/libs/sqlite3.lib +0 -0
  217. package/python/libs/unicodedata.lib +0 -0
  218. package/python/libs/winsound.lib +0 -0
  219. package/python/python.exe +0 -0
  220. package/python/python3.dll +0 -0
  221. package/python/python311.dll +0 -0
  222. package/python/pythonw.exe +0 -0
  223. package/python/Lib/site-packages/platformdirs-4.14.5.dist-info/RECORD +0 -20
  224. package/python/Lib/site-packages/semver-3.1.1.dist-info/RECORD +0 -17
  225. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_services/__pycache__/registry.cpython-311.pyc +0 -0
  226. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_services/registry.py +0 -22
  227. /package/python/Lib/site-packages/{platformdirs-4.14.5.dist-info → platformdirs-4.14.7.dist-info}/INSTALLER +0 -0
  228. /package/python/Lib/site-packages/{platformdirs-4.14.5.dist-info → platformdirs-4.14.7.dist-info}/REQUESTED +0 -0
  229. /package/python/Lib/site-packages/{platformdirs-4.14.5.dist-info → platformdirs-4.14.7.dist-info}/entry_points.txt +0 -0
  230. /package/python/Lib/site-packages/{platformdirs-4.14.5.dist-info → platformdirs-4.14.7.dist-info}/licenses/LICENSE +0 -0
  231. /package/python/Lib/site-packages/{pydantic_settings-2.16.2.dist-info → pydantic_settings-2.16.3.dist-info}/INSTALLER +0 -0
  232. /package/python/Lib/site-packages/{pydantic_settings-2.16.2.dist-info → pydantic_settings-2.16.3.dist-info}/REQUESTED +0 -0
  233. /package/python/Lib/site-packages/{platformdirs-4.14.5.dist-info → pydantic_settings-2.16.3.dist-info}/WHEEL +0 -0
  234. /package/python/Lib/site-packages/{pydantic_settings-2.16.2.dist-info → pydantic_settings-2.16.3.dist-info}/licenses/LICENSE +0 -0
  235. /package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/INSTALLER +0 -0
  236. /package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/REQUESTED +0 -0
  237. /package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/WHEEL +0 -0
  238. /package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/entry_points.txt +0 -0
  239. /package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/licenses/LICENSE.txt +0 -0
  240. /package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/top_level.txt +0 -0
  241. /package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/INSTALLER +0 -0
  242. /package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/REQUESTED +0 -0
  243. /package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/WHEEL +0 -0
  244. /package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/entry_points.txt +0 -0
  245. /package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/licenses/LICENSE +0 -0
  246. /package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/top_level.txt +0 -0
@@ -2,14 +2,15 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import TYPE_CHECKING
6
-
7
5
  from platformdirs import PlatformDirs, __version__
8
6
 
7
+ TYPE_CHECKING = False
9
8
  if TYPE_CHECKING:
9
+ from typing import Final
10
+
10
11
  from platformdirs.api import PlatformDirsABC
11
12
 
12
- PROPS = (
13
+ PROPS: Final[tuple[str, ...]] = (
13
14
  "user_data_dir",
14
15
  "user_config_dir",
15
16
  "user_cache_dir",
@@ -41,28 +42,27 @@ PROPS = (
41
42
 
42
43
 
43
44
  def main() -> None:
44
- """Run the main entry point."""
45
45
  app_name = "MyApp"
46
46
  app_author = "MyCompany"
47
47
 
48
- print(f"-- platformdirs {__version__} --") # ruff:ignore[print]
48
+ print(f"-- platformdirs {__version__} --") # ruff:ignore[print] # CLI output
49
49
 
50
- print("-- app dirs (with optional 'version')") # ruff:ignore[print]
50
+ print("-- app dirs (with optional 'version')") # ruff:ignore[print] # CLI output
51
51
  _print_dirs(PlatformDirs(app_name, app_author, version="1.0"))
52
52
 
53
- print("\n-- app dirs (without optional 'version')") # ruff:ignore[print]
53
+ print("\n-- app dirs (without optional 'version')") # ruff:ignore[print] # CLI output
54
54
  _print_dirs(PlatformDirs(app_name, app_author))
55
55
 
56
- print("\n-- app dirs (without optional 'appauthor')") # ruff:ignore[print]
56
+ print("\n-- app dirs (without optional 'appauthor')") # ruff:ignore[print] # CLI output
57
57
  _print_dirs(PlatformDirs(app_name))
58
58
 
59
- print("\n-- app dirs (with disabled 'appauthor')") # ruff:ignore[print]
59
+ print("\n-- app dirs (with disabled 'appauthor')") # ruff:ignore[print] # CLI output
60
60
  _print_dirs(PlatformDirs(app_name, appauthor=False))
61
61
 
62
62
 
63
63
  def _print_dirs(dirs: PlatformDirsABC) -> None:
64
64
  for prop in PROPS:
65
- print(f"{prop}: {_dir_or_error(dirs, prop)}") # ruff:ignore[print]
65
+ print(f"{prop}: {_dir_or_error(dirs, prop)}") # ruff:ignore[print] # CLI output
66
66
 
67
67
 
68
68
  def _dir_or_error(dirs: PlatformDirsABC, prop: str) -> str:
@@ -0,0 +1,67 @@
1
+ """Android app folder discovery."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import re
6
+ import sys
7
+ from contextlib import suppress
8
+ from functools import lru_cache
9
+
10
+ TYPE_CHECKING = False
11
+ if TYPE_CHECKING:
12
+ from typing import Final
13
+
14
+
15
+ @lru_cache(maxsize=1)
16
+ def android_folder() -> str | None:
17
+ result = None
18
+ with suppress(ImportError):
19
+ from jnius import JavaException, autoclass # ruff:ignore[import-outside-top-level] # jnius exists only on Android # ty: ignore[import-not-found]
20
+
21
+ with suppress(JavaException):
22
+ # A python-for-android service runs in its own process, where the activity is null.
23
+ if (context := autoclass("org.kivy.android.PythonActivity").mActivity) is None:
24
+ context = autoclass("org.kivy.android.PythonService").mService
25
+ if context is not None:
26
+ result = context.getFilesDir().getParentFile().getAbsolutePath()
27
+ if result is None:
28
+ # This path only works for apps in regular internal storage.
29
+ for path in sys.path:
30
+ if match := _ANDROID_FOLDER_PATTERN.match(path):
31
+ result = match["folder"]
32
+ break
33
+ if result is None:
34
+ for path in sys.path:
35
+ if match := _ANDROID_FOLDER_PATTERN_2.match(path):
36
+ result = match["folder"]
37
+ break
38
+ return result
39
+
40
+
41
+ _ANDROID_FOLDER_PATTERN: Final[re.Pattern[str]] = re.compile(
42
+ r"""
43
+ (?P<folder>
44
+ /data/(?:data|user/\d+) # internal storage of the primary user or of user N
45
+ /[^/]+ # package name, one path segment
46
+ )
47
+ /files(?=/|\Z) # the files directory the interpreter runs from
48
+ """,
49
+ re.VERBOSE,
50
+ )
51
+
52
+ _ANDROID_FOLDER_PATTERN_2: Final[re.Pattern[str]] = re.compile(
53
+ r"""
54
+ (?P<folder>
55
+ /mnt/expand/[a-fA-F0-9-]{36} # adopted storage volume, named by its UUID
56
+ /(?:data|user/\d+) # the primary user or user N
57
+ /[^/]+ # package name, one path segment
58
+ )
59
+ /files(?=/|\Z) # the files directory the interpreter runs from
60
+ """,
61
+ re.VERBOSE,
62
+ )
63
+
64
+
65
+ __all__ = [
66
+ "android_folder",
67
+ ]
@@ -0,0 +1,65 @@
1
+ """Unix runtime directory checks."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+ import stat
7
+ import sys
8
+ import warnings
9
+ from pathlib import Path
10
+
11
+ from .api import RuntimeDirWarning
12
+
13
+ TYPE_CHECKING = False
14
+ if TYPE_CHECKING:
15
+ from typing import Final, NoReturn
16
+
17
+ if sys.platform == "win32":
18
+
19
+ def geteuid() -> NoReturn:
20
+ msg = "should only be used on Unix"
21
+ raise RuntimeError(msg)
22
+
23
+ else:
24
+ try:
25
+ from os import geteuid
26
+ except ImportError:
27
+ from os import getuid as geteuid
28
+
29
+
30
+ def runtime_dir_problem(path: str, *, missing_ok: bool, check_mode: bool = True) -> str | None:
31
+ # A missing path passes under missing_ok. A caller that creates or reads below it must check again.
32
+ try:
33
+ # A trailing / or /. makes lstat follow a final symlink, while Path drops it.
34
+ info = os.lstat(str(Path(path)))
35
+ except FileNotFoundError:
36
+ return None if missing_ok else f"{path} is missing"
37
+ except OSError as error:
38
+ return f"{path} cannot be checked: {error.strerror}"
39
+ mode = info.st_mode & 0o777
40
+ checks = (
41
+ (stat.S_ISLNK(info.st_mode), "is a symlink"),
42
+ (not stat.S_ISDIR(info.st_mode), "is not a directory"),
43
+ (info.st_uid != (uid := geteuid()), f"is owned by uid {info.st_uid}, not {uid}"),
44
+ (check_mode and mode != RUNTIME_DIR_MODE, f"has mode {mode:04o}, not {RUNTIME_DIR_MODE:04o}"),
45
+ )
46
+ return next((f"{path} {problem}" for failed, problem in checks if failed), None)
47
+
48
+
49
+ def warn_once(message: str) -> None:
50
+ # Each read repeats the check, so a warning per read would flood long-running programs.
51
+ if message not in _WARNED:
52
+ _WARNED.add(message)
53
+ warnings.warn(message, RuntimeDirWarning, stacklevel=3)
54
+
55
+
56
+ _WARNED: Final[set[str]] = set()
57
+ RUNTIME_DIR_MODE: Final[int] = 0o700
58
+
59
+
60
+ __all__ = [
61
+ "RUNTIME_DIR_MODE",
62
+ "geteuid",
63
+ "runtime_dir_problem",
64
+ "warn_once",
65
+ ]
@@ -7,82 +7,83 @@ import posixpath
7
7
  import sys
8
8
  from contextlib import suppress
9
9
  from pathlib import Path
10
- from typing import Final
11
10
 
11
+ from ._runtime import runtime_dir_problem, warn_once
12
12
  from .api import PlatformDirsABC
13
13
 
14
+ TYPE_CHECKING = False
15
+ if TYPE_CHECKING:
16
+ from typing import Final
14
17
 
15
- class XDGMixin(PlatformDirsABC):
16
- """Mixin that checks XDG environment variables, falling back to platform-specific defaults via ``super()``."""
17
18
 
19
+ class XDGMixin(PlatformDirsABC):
18
20
  @property
19
21
  def user_data_dir(self) -> str:
20
22
  """Data directory tied to the user, from ``$XDG_DATA_HOME`` if set, else platform default."""
21
- if path := _xdg_dir("XDG_DATA_HOME"):
23
+ if path := xdg_dir("XDG_DATA_HOME"):
22
24
  return self._append_app_name_and_version(path, private=True)
23
25
  return super().user_data_dir
24
26
 
27
+ @property
28
+ def site_data_dir(self) -> str:
29
+ """Data directories shared by users, from ``$XDG_DATA_DIRS`` if set, else platform default."""
30
+ return self._select_site_dirs(self._site_data_dirs)
31
+
25
32
  @property
26
33
  def _site_data_dirs(self) -> list[str]:
27
34
  if xdg_dirs := _xdg_dir_list("XDG_DATA_DIRS"):
28
35
  return [self._join_app_name_and_version(p) for p in xdg_dirs]
29
36
  return super()._site_data_dirs
30
37
 
31
- @property
32
- def site_data_dir(self) -> str:
33
- """Data directories shared by users, from ``$XDG_DATA_DIRS`` if set, else platform default."""
34
- return self._select_site_dirs(self._site_data_dirs)
35
-
36
38
  @property
37
39
  def user_config_dir(self) -> str:
38
40
  """Config directory tied to the user, from ``$XDG_CONFIG_HOME`` if set, else platform default."""
39
- if path := _xdg_dir("XDG_CONFIG_HOME"):
41
+ if path := xdg_dir("XDG_CONFIG_HOME"):
40
42
  return self._append_app_name_and_version(path, private=True)
41
43
  return super().user_config_dir
42
44
 
45
+ @property
46
+ def site_config_dir(self) -> str:
47
+ """Config directories shared by users, from ``$XDG_CONFIG_DIRS`` if set, else platform default."""
48
+ return self._select_site_dirs(self._site_config_dirs)
49
+
43
50
  @property
44
51
  def _site_config_dirs(self) -> list[str]:
45
52
  if xdg_dirs := _xdg_dir_list("XDG_CONFIG_DIRS"):
46
53
  return [self._join_app_name_and_version(p) for p in xdg_dirs]
47
54
  return super()._site_config_dirs
48
55
 
49
- @property
50
- def site_config_dir(self) -> str:
51
- """Config directories shared by users, from ``$XDG_CONFIG_DIRS`` if set, else platform default."""
52
- return self._select_site_dirs(self._site_config_dirs)
53
-
54
56
  @property
55
57
  def user_cache_dir(self) -> str:
56
58
  """Cache directory tied to the user, from ``$XDG_CACHE_HOME`` if set, else platform default."""
57
- if path := _xdg_dir("XDG_CACHE_HOME"):
59
+ if path := xdg_dir("XDG_CACHE_HOME"):
58
60
  return self._append_app_name_and_version(path, private=True)
59
61
  return super().user_cache_dir
60
62
 
61
63
  @property
62
64
  def user_state_dir(self) -> str:
63
65
  """State directory tied to the user, from ``$XDG_STATE_HOME`` if set, else platform default."""
64
- if path := _xdg_dir("XDG_STATE_HOME"):
66
+ if path := xdg_dir("XDG_STATE_HOME"):
65
67
  return self._append_app_name_and_version(path, private=True)
66
68
  return super().user_state_dir
67
69
 
68
70
  @property
69
71
  def user_runtime_dir(self) -> str:
70
72
  """Runtime directory tied to the user, from ``$XDG_RUNTIME_DIR`` if set and private, else platform default."""
71
- from .unix import _runtime_dir_problem, _warn_once # ruff:ignore[import-outside-top-level] # unix imports _xdg
72
-
73
- if path := _xdg_dir("XDG_RUNTIME_DIR"):
73
+ if path := xdg_dir("XDG_RUNTIME_DIR"):
74
74
  with suppress(OSError):
75
75
  self._optionally_create_directory(path, private=True)
76
- # Another user can pre-create the path in a shared parent, and XDG requires an owned runtime dir with mode 0700.
77
- if not (problem := _runtime_dir_problem(path, missing_ok=not self.ensure_exists)):
76
+ # Another user can pre-create the path in a shared parent, and XDG requires an owned runtime dir with mode
77
+ # 0700.
78
+ if not (problem := runtime_dir_problem(path, missing_ok=not self.ensure_exists)):
78
79
  return self._append_app_name_and_version(path, private=True)
79
- _warn_once(f"XDG_RUNTIME_DIR {problem}, falling back to the platform default")
80
+ warn_once(f"XDG_RUNTIME_DIR {problem}, falling back to the platform default")
80
81
  return super().user_runtime_dir
81
82
 
82
83
  @property
83
84
  def site_runtime_dir(self) -> str:
84
85
  """Runtime directory shared by users, from ``$XDG_RUNTIME_DIR`` if set, else platform default."""
85
- if path := _xdg_dir("XDG_RUNTIME_DIR"):
86
+ if path := xdg_dir("XDG_RUNTIME_DIR"):
86
87
  return self._append_app_name_and_version(path, private=False)
87
88
  return super().site_runtime_dir
88
89
 
@@ -91,6 +92,11 @@ class XDGMixin(PlatformDirsABC):
91
92
  """Documents directory tied to the user, from ``$XDG_DOCUMENTS_DIR`` if set, else platform default."""
92
93
  return self._xdg_media_dir("XDG_DOCUMENTS_DIR") or super().user_documents_dir
93
94
 
95
+ def _xdg_media_dir(self, env_var: str) -> str | None:
96
+ if path := xdg_dir(env_var):
97
+ self._optionally_create_media_directory(path)
98
+ return path
99
+
94
100
  @property
95
101
  def user_downloads_dir(self) -> str:
96
102
  """Downloads directory tied to the user, from ``$XDG_DOWNLOAD_DIR`` if set, else platform default."""
@@ -131,15 +137,10 @@ class XDGMixin(PlatformDirsABC):
131
137
  """Templates directory tied to the user, from ``$XDG_TEMPLATES_DIR`` if set, else platform default."""
132
138
  return self._xdg_media_dir("XDG_TEMPLATES_DIR") or super().user_templates_dir
133
139
 
134
- def _xdg_media_dir(self, env_var: str) -> str | None:
135
- if path := _xdg_dir(env_var):
136
- self._optionally_create_media_directory(path)
137
- return path
138
-
139
140
  @property
140
141
  def user_fonts_dir(self) -> str:
141
142
  """Fonts directory tied to the user, from ``$XDG_DATA_HOME/fonts`` if set, else platform default."""
142
- if path := _xdg_dir("XDG_DATA_HOME"):
143
+ if path := xdg_dir("XDG_DATA_HOME"):
143
144
  # posixpath keeps the XDG separator even when this mixin runs on a non-POSIX host.
144
145
  return posixpath.join(path, "fonts")
145
146
  return super().user_fonts_dir
@@ -147,24 +148,26 @@ class XDGMixin(PlatformDirsABC):
147
148
  @property
148
149
  def user_applications_dir(self) -> str:
149
150
  """Applications directory tied to the user, from ``$XDG_DATA_HOME`` if set, else platform default."""
150
- if path := _xdg_dir("XDG_DATA_HOME"):
151
+ if path := xdg_dir("XDG_DATA_HOME"):
152
+ # the XDG value may start with ~
151
153
  return os.path.join(os.path.expanduser(path), "applications") # ruff:ignore[os-path-expanduser, os-path-join]
152
154
  return super().user_applications_dir
153
155
 
154
- @property
155
- def _site_applications_dirs(self) -> list[str]:
156
- if xdg_dirs := _xdg_dir_list("XDG_DATA_DIRS"):
157
- return [os.path.join(p, "applications") for p in xdg_dirs] # ruff:ignore[os-path-join]
158
- return super()._site_applications_dirs
159
-
160
156
  @property
161
157
  def site_applications_dir(self) -> str:
162
158
  """Applications directories shared by users, from ``$XDG_DATA_DIRS`` if set, else platform default."""
163
159
  dirs = self._site_applications_dirs
164
160
  return os.pathsep.join(dirs) if self.multipath else dirs[0]
165
161
 
162
+ @property
163
+ def _site_applications_dirs(self) -> list[str]:
164
+ if xdg_dirs := _xdg_dir_list("XDG_DATA_DIRS"):
165
+ # preserve path separators
166
+ return [os.path.join(p, "applications") for p in xdg_dirs] # ruff:ignore[os-path-join]
167
+ return super()._site_applications_dirs
168
+
166
169
 
167
- def _xdg_dir(env_var: str) -> str | None:
170
+ def xdg_dir(env_var: str) -> str | None:
168
171
  path: Final = os.environ.get(env_var, "")
169
172
  return path if posixpath.isabs(path) else None
170
173
 
@@ -173,12 +176,11 @@ def _xdg_dir_list(env_var: str) -> list[str]:
173
176
  return [path for path in os.environ.get(env_var, "").split(os.pathsep) if posixpath.isabs(path)]
174
177
 
175
178
 
176
- def _expand_user(path: str) -> str:
177
- """Expand the leading ``~`` of ``path`` like :func:`os.path.expanduser`, treating a relative ``HOME`` as unset on POSIX.
178
-
179
- :raises RuntimeError: if the home directory cannot be resolved to an absolute path.
180
-
181
- """
179
+ def expand_user(path: str) -> str:
180
+ # Expand the leading ``~`` of ``path`` like :func:`os.path.expanduser`, treating a relative ``HOME`` as unset on
181
+ # POSIX.
182
+ #
183
+ # :raises RuntimeError: if the home directory cannot be resolved to an absolute path.
182
184
  if sys.platform != "win32" and "HOME" in os.environ and not _is_absolute(os.environ["HOME"]):
183
185
  # expanduser uses HOME verbatim, so an empty one roots the path at / and a relative one at the working directory
184
186
  expanded = path
@@ -187,7 +189,8 @@ def _expand_user(path: str) -> str:
187
189
 
188
190
  expanded = pwd.getpwuid(os.getuid()).pw_dir.rstrip("/") + path[1:] or "/"
189
191
  else:
190
- expanded = os.path.expanduser(path) # ruff:ignore[os-path-expanduser] # str(Path) rewrites separators on Windows
192
+ # str(Path) rewrites separators on Windows
193
+ expanded = os.path.expanduser(path) # ruff:ignore[os-path-expanduser]
191
194
  if not _is_absolute(expanded):
192
195
  msg = f"could not determine the home directory for {path!r}, set an absolute HOME or XDG variable"
193
196
  raise RuntimeError(msg)
@@ -201,6 +204,6 @@ def _is_absolute(path: str) -> bool:
201
204
 
202
205
  __all__ = [
203
206
  "XDGMixin",
204
- "_expand_user",
205
- "_xdg_dir",
207
+ "expand_user",
208
+ "xdg_dir",
206
209
  ]