@cloudbase/manager-node 4.3.3 → 4.3.4

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 (213) hide show
  1. package/lib/function/index.js +9 -1
  2. package/lib/utils/index.js +17 -1
  3. package/package.json +1 -1
  4. package/types/utils/index.d.ts +2 -0
  5. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.ready +0 -0
  6. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.travis.yml +0 -103
  7. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  8. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/LICENSE +0 -22
  9. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/Readme.md +0 -78
  10. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/binding.gyp +0 -21
  11. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.cc +0 -88
  12. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.js +0 -108
  13. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/install.js +0 -13
  14. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/package.json +0 -34
  15. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/vfs.js +0 -76
  16. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.eslintrc.js +0 -20
  17. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.prettierrc +0 -4
  18. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.ready +0 -0
  19. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/CHANGELOG.md +0 -310
  20. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/LICENSE +0 -21
  21. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/README.md +0 -344
  22. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/husky.js +0 -15
  23. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/checkGitDirEnv.js +0 -13
  24. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/debug.js +0 -8
  25. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/getConf.js +0 -15
  26. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/bin.js +0 -48
  27. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js +0 -106
  28. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js +0 -29
  29. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js +0 -151
  30. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/is.js +0 -24
  31. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/bin.js +0 -16
  32. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/index.js +0 -84
  33. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/bin.js +0 -8
  34. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/index.js +0 -65
  35. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/package.json +0 -114
  36. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/run.js +0 -14
  37. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.github/workflows/ci.yml +0 -52
  38. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.ready +0 -0
  39. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CHANGELOG.md +0 -577
  40. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CMakeLists.txt +0 -138
  41. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/LICENSE.md +0 -9
  42. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/README.md +0 -455
  43. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/asyncworker.md +0 -146
  44. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/buffers.md +0 -54
  45. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/callback.md +0 -76
  46. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/converters.md +0 -41
  47. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/errors.md +0 -226
  48. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/json.md +0 -62
  49. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/maybe_types.md +0 -583
  50. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/methods.md +0 -672
  51. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/new.md +0 -147
  52. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/node_misc.md +0 -123
  53. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/object_wrappers.md +0 -263
  54. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/persistent.md +0 -296
  55. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/scopes.md +0 -73
  56. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/script.md +0 -58
  57. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/string_bytes.md +0 -62
  58. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_internals.md +0 -199
  59. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_misc.md +0 -85
  60. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/include_dirs.js +0 -1
  61. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan.h +0 -3049
  62. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks.h +0 -128
  63. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_12_inl.h +0 -676
  64. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  65. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters.h +0 -72
  66. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_43_inl.h +0 -68
  67. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  68. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_define_own_property_helper.h +0 -29
  69. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_12_inl.h +0 -430
  70. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  71. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_json.h +0 -166
  72. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_43_inl.h +0 -356
  73. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  74. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_new.h +0 -340
  75. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_object_wrap.h +0 -156
  76. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_12_inl.h +0 -132
  77. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  78. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_private.h +0 -73
  79. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_scriptorigin.h +0 -95
  80. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_string_bytes.h +0 -305
  81. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_typedarray_contents.h +0 -96
  82. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_weak.h +0 -437
  83. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/package.json +0 -38
  84. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/1to2.js +0 -412
  85. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/README.md +0 -14
  86. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/package.json +0 -19
  87. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.ready +0 -0
  88. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.release-please-manifest.json +0 -3
  89. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CHANGELOG.md +0 -1053
  90. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CODE_OF_CONDUCT.md +0 -4
  91. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CONTRIBUTING.md +0 -34
  92. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/LICENSE +0 -24
  93. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/README.md +0 -273
  94. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/SECURITY.md +0 -2
  95. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/addon.gypi +0 -204
  96. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/bin/node-gyp.js +0 -138
  97. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/eslint.config.js +0 -3
  98. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
  99. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/LICENSE +0 -28
  100. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
  101. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  102. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp +0 -8
  103. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp.bat +0 -5
  104. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp_main.py +0 -45
  105. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  106. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  107. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
  108. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
  109. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  110. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  111. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  112. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
  113. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
  114. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -709
  115. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
  116. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
  117. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  118. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  119. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  120. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  121. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
  122. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
  123. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  124. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  125. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
  126. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
  127. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
  128. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
  129. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
  130. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  131. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
  132. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
  133. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
  134. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  135. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3112
  136. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  137. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
  138. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
  139. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  140. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  141. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
  142. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
  143. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  144. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
  145. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
  146. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
  147. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  148. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  149. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  150. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  151. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
  152. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  153. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  154. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  155. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  156. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  157. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
  158. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
  159. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  160. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  161. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  162. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
  163. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  164. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
  165. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pyproject.toml +0 -115
  166. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/release-please-config.json +0 -11
  167. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/test_gyp.py +0 -261
  168. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
  169. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/build.js +0 -230
  170. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/clean.js +0 -15
  171. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/configure.js +0 -328
  172. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
  173. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/download.js +0 -39
  174. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-node-directory.js +0 -63
  175. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-python.js +0 -310
  176. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-visualstudio.js +0 -600
  177. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/install.js +0 -415
  178. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/list.js +0 -26
  179. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/log.js +0 -168
  180. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/node-gyp.js +0 -188
  181. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/process-release.js +0 -146
  182. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/rebuild.js +0 -12
  183. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/remove.js +0 -43
  184. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/util.js +0 -81
  185. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  186. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/package.json +0 -52
  187. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/release-please-config.json +0 -40
  188. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.prettierrc +0 -4
  189. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.ready +0 -0
  190. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/CHANGELOG.md +0 -286
  191. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/LICENSE +0 -21
  192. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/README.md +0 -457
  193. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/index.js +0 -52
  194. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/checkGrowl.js +0 -24
  195. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js +0 -515
  196. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/balloon.js +0 -156
  197. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/growl.js +0 -76
  198. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notificationcenter.js +0 -100
  199. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notifysend.js +0 -94
  200. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/toaster.js +0 -100
  201. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/package.json +0 -72
  202. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Info.plist +0 -63
  203. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/MacOS/terminal-notifier +0 -0
  204. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/PkgInfo +0 -1
  205. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/Terminal.icns +0 -0
  206. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf +0 -29
  207. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  208. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
  209. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu.exe +0 -0
  210. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu64.exe +0 -0
  211. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/LICENSE +0 -165
  212. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/SnoreToast.exe +0 -0
  213. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/terminal-notifier-LICENSE +0 -9
@@ -1,553 +0,0 @@
1
- # This file is dual licensed under the terms of the Apache License, Version
2
- # 2.0, and the BSD License. See the LICENSE file in the root of this repository
3
- # for complete details.
4
-
5
- import logging
6
- import platform
7
- import struct
8
- import subprocess
9
- import sys
10
- import sysconfig
11
- from importlib.machinery import EXTENSION_SUFFIXES
12
- from typing import (
13
- Dict,
14
- FrozenSet,
15
- Iterable,
16
- Iterator,
17
- List,
18
- Optional,
19
- Sequence,
20
- Tuple,
21
- Union,
22
- cast,
23
- )
24
-
25
- from . import _manylinux, _musllinux
26
-
27
- logger = logging.getLogger(__name__)
28
-
29
- PythonVersion = Sequence[int]
30
- MacVersion = Tuple[int, int]
31
-
32
- INTERPRETER_SHORT_NAMES: Dict[str, str] = {
33
- "python": "py", # Generic.
34
- "cpython": "cp",
35
- "pypy": "pp",
36
- "ironpython": "ip",
37
- "jython": "jy",
38
- }
39
-
40
-
41
- _32_BIT_INTERPRETER = struct.calcsize("P") == 4
42
-
43
-
44
- class Tag:
45
- """
46
- A representation of the tag triple for a wheel.
47
-
48
- Instances are considered immutable and thus are hashable. Equality checking
49
- is also supported.
50
- """
51
-
52
- __slots__ = ["_interpreter", "_abi", "_platform", "_hash"]
53
-
54
- def __init__(self, interpreter: str, abi: str, platform: str) -> None:
55
- self._interpreter = interpreter.lower()
56
- self._abi = abi.lower()
57
- self._platform = platform.lower()
58
- # The __hash__ of every single element in a Set[Tag] will be evaluated each time
59
- # that a set calls its `.disjoint()` method, which may be called hundreds of
60
- # times when scanning a page of links for packages with tags matching that
61
- # Set[Tag]. Pre-computing the value here produces significant speedups for
62
- # downstream consumers.
63
- self._hash = hash((self._interpreter, self._abi, self._platform))
64
-
65
- @property
66
- def interpreter(self) -> str:
67
- return self._interpreter
68
-
69
- @property
70
- def abi(self) -> str:
71
- return self._abi
72
-
73
- @property
74
- def platform(self) -> str:
75
- return self._platform
76
-
77
- def __eq__(self, other: object) -> bool:
78
- if not isinstance(other, Tag):
79
- return NotImplemented
80
-
81
- return (
82
- (self._hash == other._hash) # Short-circuit ASAP for perf reasons.
83
- and (self._platform == other._platform)
84
- and (self._abi == other._abi)
85
- and (self._interpreter == other._interpreter)
86
- )
87
-
88
- def __hash__(self) -> int:
89
- return self._hash
90
-
91
- def __str__(self) -> str:
92
- return f"{self._interpreter}-{self._abi}-{self._platform}"
93
-
94
- def __repr__(self) -> str:
95
- return f"<{self} @ {id(self)}>"
96
-
97
-
98
- def parse_tag(tag: str) -> FrozenSet[Tag]:
99
- """
100
- Parses the provided tag (e.g. `py3-none-any`) into a frozenset of Tag instances.
101
-
102
- Returning a set is required due to the possibility that the tag is a
103
- compressed tag set.
104
- """
105
- tags = set()
106
- interpreters, abis, platforms = tag.split("-")
107
- for interpreter in interpreters.split("."):
108
- for abi in abis.split("."):
109
- for platform_ in platforms.split("."):
110
- tags.add(Tag(interpreter, abi, platform_))
111
- return frozenset(tags)
112
-
113
-
114
- def _get_config_var(name: str, warn: bool = False) -> Union[int, str, None]:
115
- value: Union[int, str, None] = sysconfig.get_config_var(name)
116
- if value is None and warn:
117
- logger.debug(
118
- "Config variable '%s' is unset, Python ABI tag may be incorrect", name
119
- )
120
- return value
121
-
122
-
123
- def _normalize_string(string: str) -> str:
124
- return string.replace(".", "_").replace("-", "_").replace(" ", "_")
125
-
126
-
127
- def _abi3_applies(python_version: PythonVersion) -> bool:
128
- """
129
- Determine if the Python version supports abi3.
130
-
131
- PEP 384 was first implemented in Python 3.2.
132
- """
133
- return len(python_version) > 1 and tuple(python_version) >= (3, 2)
134
-
135
-
136
- def _cpython_abis(py_version: PythonVersion, warn: bool = False) -> List[str]:
137
- py_version = tuple(py_version) # To allow for version comparison.
138
- abis = []
139
- version = _version_nodot(py_version[:2])
140
- debug = pymalloc = ucs4 = ""
141
- with_debug = _get_config_var("Py_DEBUG", warn)
142
- has_refcount = hasattr(sys, "gettotalrefcount")
143
- # Windows doesn't set Py_DEBUG, so checking for support of debug-compiled
144
- # extension modules is the best option.
145
- # https://github.com/pypa/pip/issues/3383#issuecomment-173267692
146
- has_ext = "_d.pyd" in EXTENSION_SUFFIXES
147
- if with_debug or (with_debug is None and (has_refcount or has_ext)):
148
- debug = "d"
149
- if py_version < (3, 8):
150
- with_pymalloc = _get_config_var("WITH_PYMALLOC", warn)
151
- if with_pymalloc or with_pymalloc is None:
152
- pymalloc = "m"
153
- if py_version < (3, 3):
154
- unicode_size = _get_config_var("Py_UNICODE_SIZE", warn)
155
- if unicode_size == 4 or (
156
- unicode_size is None and sys.maxunicode == 0x10FFFF
157
- ):
158
- ucs4 = "u"
159
- elif debug:
160
- # Debug builds can also load "normal" extension modules.
161
- # We can also assume no UCS-4 or pymalloc requirement.
162
- abis.append(f"cp{version}")
163
- abis.insert(
164
- 0,
165
- "cp{version}{debug}{pymalloc}{ucs4}".format(
166
- version=version, debug=debug, pymalloc=pymalloc, ucs4=ucs4
167
- ),
168
- )
169
- return abis
170
-
171
-
172
- def cpython_tags(
173
- python_version: Optional[PythonVersion] = None,
174
- abis: Optional[Iterable[str]] = None,
175
- platforms: Optional[Iterable[str]] = None,
176
- *,
177
- warn: bool = False,
178
- ) -> Iterator[Tag]:
179
- """
180
- Yields the tags for a CPython interpreter.
181
-
182
- The tags consist of:
183
- - cp<python_version>-<abi>-<platform>
184
- - cp<python_version>-abi3-<platform>
185
- - cp<python_version>-none-<platform>
186
- - cp<less than python_version>-abi3-<platform> # Older Python versions down to 3.2.
187
-
188
- If python_version only specifies a major version then user-provided ABIs and
189
- the 'none' ABItag will be used.
190
-
191
- If 'abi3' or 'none' are specified in 'abis' then they will be yielded at
192
- their normal position and not at the beginning.
193
- """
194
- if not python_version:
195
- python_version = sys.version_info[:2]
196
-
197
- interpreter = f"cp{_version_nodot(python_version[:2])}"
198
-
199
- if abis is None:
200
- if len(python_version) > 1:
201
- abis = _cpython_abis(python_version, warn)
202
- else:
203
- abis = []
204
- abis = list(abis)
205
- # 'abi3' and 'none' are explicitly handled later.
206
- for explicit_abi in ("abi3", "none"):
207
- try:
208
- abis.remove(explicit_abi)
209
- except ValueError:
210
- pass
211
-
212
- platforms = list(platforms or platform_tags())
213
- for abi in abis:
214
- for platform_ in platforms:
215
- yield Tag(interpreter, abi, platform_)
216
- if _abi3_applies(python_version):
217
- yield from (Tag(interpreter, "abi3", platform_) for platform_ in platforms)
218
- yield from (Tag(interpreter, "none", platform_) for platform_ in platforms)
219
-
220
- if _abi3_applies(python_version):
221
- for minor_version in range(python_version[1] - 1, 1, -1):
222
- for platform_ in platforms:
223
- interpreter = "cp{version}".format(
224
- version=_version_nodot((python_version[0], minor_version))
225
- )
226
- yield Tag(interpreter, "abi3", platform_)
227
-
228
-
229
- def _generic_abi() -> List[str]:
230
- """
231
- Return the ABI tag based on EXT_SUFFIX.
232
- """
233
- # The following are examples of `EXT_SUFFIX`.
234
- # We want to keep the parts which are related to the ABI and remove the
235
- # parts which are related to the platform:
236
- # - linux: '.cpython-310-x86_64-linux-gnu.so' => cp310
237
- # - mac: '.cpython-310-darwin.so' => cp310
238
- # - win: '.cp310-win_amd64.pyd' => cp310
239
- # - win: '.pyd' => cp37 (uses _cpython_abis())
240
- # - pypy: '.pypy38-pp73-x86_64-linux-gnu.so' => pypy38_pp73
241
- # - graalpy: '.graalpy-38-native-x86_64-darwin.dylib'
242
- # => graalpy_38_native
243
-
244
- ext_suffix = _get_config_var("EXT_SUFFIX", warn=True)
245
- if not isinstance(ext_suffix, str) or ext_suffix[0] != ".":
246
- raise SystemError("invalid sysconfig.get_config_var('EXT_SUFFIX')")
247
- parts = ext_suffix.split(".")
248
- if len(parts) < 3:
249
- # CPython3.7 and earlier uses ".pyd" on Windows.
250
- return _cpython_abis(sys.version_info[:2])
251
- soabi = parts[1]
252
- if soabi.startswith("cpython"):
253
- # non-windows
254
- abi = "cp" + soabi.split("-")[1]
255
- elif soabi.startswith("cp"):
256
- # windows
257
- abi = soabi.split("-")[0]
258
- elif soabi.startswith("pypy"):
259
- abi = "-".join(soabi.split("-")[:2])
260
- elif soabi.startswith("graalpy"):
261
- abi = "-".join(soabi.split("-")[:3])
262
- elif soabi:
263
- # pyston, ironpython, others?
264
- abi = soabi
265
- else:
266
- return []
267
- return [_normalize_string(abi)]
268
-
269
-
270
- def generic_tags(
271
- interpreter: Optional[str] = None,
272
- abis: Optional[Iterable[str]] = None,
273
- platforms: Optional[Iterable[str]] = None,
274
- *,
275
- warn: bool = False,
276
- ) -> Iterator[Tag]:
277
- """
278
- Yields the tags for a generic interpreter.
279
-
280
- The tags consist of:
281
- - <interpreter>-<abi>-<platform>
282
-
283
- The "none" ABI will be added if it was not explicitly provided.
284
- """
285
- if not interpreter:
286
- interp_name = interpreter_name()
287
- interp_version = interpreter_version(warn=warn)
288
- interpreter = "".join([interp_name, interp_version])
289
- if abis is None:
290
- abis = _generic_abi()
291
- else:
292
- abis = list(abis)
293
- platforms = list(platforms or platform_tags())
294
- if "none" not in abis:
295
- abis.append("none")
296
- for abi in abis:
297
- for platform_ in platforms:
298
- yield Tag(interpreter, abi, platform_)
299
-
300
-
301
- def _py_interpreter_range(py_version: PythonVersion) -> Iterator[str]:
302
- """
303
- Yields Python versions in descending order.
304
-
305
- After the latest version, the major-only version will be yielded, and then
306
- all previous versions of that major version.
307
- """
308
- if len(py_version) > 1:
309
- yield f"py{_version_nodot(py_version[:2])}"
310
- yield f"py{py_version[0]}"
311
- if len(py_version) > 1:
312
- for minor in range(py_version[1] - 1, -1, -1):
313
- yield f"py{_version_nodot((py_version[0], minor))}"
314
-
315
-
316
- def compatible_tags(
317
- python_version: Optional[PythonVersion] = None,
318
- interpreter: Optional[str] = None,
319
- platforms: Optional[Iterable[str]] = None,
320
- ) -> Iterator[Tag]:
321
- """
322
- Yields the sequence of tags that are compatible with a specific version of Python.
323
-
324
- The tags consist of:
325
- - py*-none-<platform>
326
- - <interpreter>-none-any # ... if `interpreter` is provided.
327
- - py*-none-any
328
- """
329
- if not python_version:
330
- python_version = sys.version_info[:2]
331
- platforms = list(platforms or platform_tags())
332
- for version in _py_interpreter_range(python_version):
333
- for platform_ in platforms:
334
- yield Tag(version, "none", platform_)
335
- if interpreter:
336
- yield Tag(interpreter, "none", "any")
337
- for version in _py_interpreter_range(python_version):
338
- yield Tag(version, "none", "any")
339
-
340
-
341
- def _mac_arch(arch: str, is_32bit: bool = _32_BIT_INTERPRETER) -> str:
342
- if not is_32bit:
343
- return arch
344
-
345
- if arch.startswith("ppc"):
346
- return "ppc"
347
-
348
- return "i386"
349
-
350
-
351
- def _mac_binary_formats(version: MacVersion, cpu_arch: str) -> List[str]:
352
- formats = [cpu_arch]
353
- if cpu_arch == "x86_64":
354
- if version < (10, 4):
355
- return []
356
- formats.extend(["intel", "fat64", "fat32"])
357
-
358
- elif cpu_arch == "i386":
359
- if version < (10, 4):
360
- return []
361
- formats.extend(["intel", "fat32", "fat"])
362
-
363
- elif cpu_arch == "ppc64":
364
- # TODO: Need to care about 32-bit PPC for ppc64 through 10.2?
365
- if version > (10, 5) or version < (10, 4):
366
- return []
367
- formats.append("fat64")
368
-
369
- elif cpu_arch == "ppc":
370
- if version > (10, 6):
371
- return []
372
- formats.extend(["fat32", "fat"])
373
-
374
- if cpu_arch in {"arm64", "x86_64"}:
375
- formats.append("universal2")
376
-
377
- if cpu_arch in {"x86_64", "i386", "ppc64", "ppc", "intel"}:
378
- formats.append("universal")
379
-
380
- return formats
381
-
382
-
383
- def mac_platforms(
384
- version: Optional[MacVersion] = None, arch: Optional[str] = None
385
- ) -> Iterator[str]:
386
- """
387
- Yields the platform tags for a macOS system.
388
-
389
- The `version` parameter is a two-item tuple specifying the macOS version to
390
- generate platform tags for. The `arch` parameter is the CPU architecture to
391
- generate platform tags for. Both parameters default to the appropriate value
392
- for the current system.
393
- """
394
- version_str, _, cpu_arch = platform.mac_ver()
395
- if version is None:
396
- version = cast("MacVersion", tuple(map(int, version_str.split(".")[:2])))
397
- if version == (10, 16):
398
- # When built against an older macOS SDK, Python will report macOS 10.16
399
- # instead of the real version.
400
- version_str = subprocess.run(
401
- [
402
- sys.executable,
403
- "-sS",
404
- "-c",
405
- "import platform; print(platform.mac_ver()[0])",
406
- ],
407
- check=True,
408
- env={"SYSTEM_VERSION_COMPAT": "0"},
409
- stdout=subprocess.PIPE,
410
- text=True,
411
- ).stdout
412
- version = cast("MacVersion", tuple(map(int, version_str.split(".")[:2])))
413
- else:
414
- version = version
415
- if arch is None:
416
- arch = _mac_arch(cpu_arch)
417
- else:
418
- arch = arch
419
-
420
- if (10, 0) <= version and version < (11, 0):
421
- # Prior to Mac OS 11, each yearly release of Mac OS bumped the
422
- # "minor" version number. The major version was always 10.
423
- for minor_version in range(version[1], -1, -1):
424
- compat_version = 10, minor_version
425
- binary_formats = _mac_binary_formats(compat_version, arch)
426
- for binary_format in binary_formats:
427
- yield "macosx_{major}_{minor}_{binary_format}".format(
428
- major=10, minor=minor_version, binary_format=binary_format
429
- )
430
-
431
- if version >= (11, 0):
432
- # Starting with Mac OS 11, each yearly release bumps the major version
433
- # number. The minor versions are now the midyear updates.
434
- for major_version in range(version[0], 10, -1):
435
- compat_version = major_version, 0
436
- binary_formats = _mac_binary_formats(compat_version, arch)
437
- for binary_format in binary_formats:
438
- yield "macosx_{major}_{minor}_{binary_format}".format(
439
- major=major_version, minor=0, binary_format=binary_format
440
- )
441
-
442
- if version >= (11, 0):
443
- # Mac OS 11 on x86_64 is compatible with binaries from previous releases.
444
- # Arm64 support was introduced in 11.0, so no Arm binaries from previous
445
- # releases exist.
446
- #
447
- # However, the "universal2" binary format can have a
448
- # macOS version earlier than 11.0 when the x86_64 part of the binary supports
449
- # that version of macOS.
450
- if arch == "x86_64":
451
- for minor_version in range(16, 3, -1):
452
- compat_version = 10, minor_version
453
- binary_formats = _mac_binary_formats(compat_version, arch)
454
- for binary_format in binary_formats:
455
- yield "macosx_{major}_{minor}_{binary_format}".format(
456
- major=compat_version[0],
457
- minor=compat_version[1],
458
- binary_format=binary_format,
459
- )
460
- else:
461
- for minor_version in range(16, 3, -1):
462
- compat_version = 10, minor_version
463
- binary_format = "universal2"
464
- yield "macosx_{major}_{minor}_{binary_format}".format(
465
- major=compat_version[0],
466
- minor=compat_version[1],
467
- binary_format=binary_format,
468
- )
469
-
470
-
471
- def _linux_platforms(is_32bit: bool = _32_BIT_INTERPRETER) -> Iterator[str]:
472
- linux = _normalize_string(sysconfig.get_platform())
473
- if not linux.startswith("linux_"):
474
- # we should never be here, just yield the sysconfig one and return
475
- yield linux
476
- return
477
- if is_32bit:
478
- if linux == "linux_x86_64":
479
- linux = "linux_i686"
480
- elif linux == "linux_aarch64":
481
- linux = "linux_armv8l"
482
- _, arch = linux.split("_", 1)
483
- archs = {"armv8l": ["armv8l", "armv7l"]}.get(arch, [arch])
484
- yield from _manylinux.platform_tags(archs)
485
- yield from _musllinux.platform_tags(archs)
486
- for arch in archs:
487
- yield f"linux_{arch}"
488
-
489
-
490
- def _generic_platforms() -> Iterator[str]:
491
- yield _normalize_string(sysconfig.get_platform())
492
-
493
-
494
- def platform_tags() -> Iterator[str]:
495
- """
496
- Provides the platform tags for this installation.
497
- """
498
- if platform.system() == "Darwin":
499
- return mac_platforms()
500
- elif platform.system() == "Linux":
501
- return _linux_platforms()
502
- else:
503
- return _generic_platforms()
504
-
505
-
506
- def interpreter_name() -> str:
507
- """
508
- Returns the name of the running interpreter.
509
-
510
- Some implementations have a reserved, two-letter abbreviation which will
511
- be returned when appropriate.
512
- """
513
- name = sys.implementation.name
514
- return INTERPRETER_SHORT_NAMES.get(name) or name
515
-
516
-
517
- def interpreter_version(*, warn: bool = False) -> str:
518
- """
519
- Returns the version of the running interpreter.
520
- """
521
- version = _get_config_var("py_version_nodot", warn=warn)
522
- if version:
523
- version = str(version)
524
- else:
525
- version = _version_nodot(sys.version_info[:2])
526
- return version
527
-
528
-
529
- def _version_nodot(version: PythonVersion) -> str:
530
- return "".join(map(str, version))
531
-
532
-
533
- def sys_tags(*, warn: bool = False) -> Iterator[Tag]:
534
- """
535
- Returns the sequence of tag triples for the running interpreter.
536
-
537
- The order of the sequence corresponds to priority order for the
538
- interpreter, from most to least important.
539
- """
540
-
541
- interp_name = interpreter_name()
542
- if interp_name == "cp":
543
- yield from cpython_tags(warn=warn)
544
- else:
545
- yield from generic_tags()
546
-
547
- if interp_name == "pp":
548
- interp = "pp3"
549
- elif interp_name == "cp":
550
- interp = "cp" + interpreter_version(warn=warn)
551
- else:
552
- interp = None
553
- yield from compatible_tags(interpreter=interp)