x-post-cli 0.2.0__tar.gz → 0.2.2__tar.gz

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. x_post_cli-0.2.2/.uv-cache/.gitignore +1 -0
  2. x_post_cli-0.2.2/.uv-cache/CACHEDIR.TAG +1 -0
  3. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/__init__.py +15 -0
  4. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/_elffile.py +108 -0
  5. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/_manylinux.py +262 -0
  6. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/_musllinux.py +85 -0
  7. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/_parser.py +365 -0
  8. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/_structures.py +69 -0
  9. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/_tokenizer.py +193 -0
  10. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/licenses/__init__.py +147 -0
  11. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/licenses/_spdx.py +799 -0
  12. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/markers.py +388 -0
  13. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/metadata.py +978 -0
  14. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/pylock.py +635 -0
  15. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/requirements.py +86 -0
  16. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/specifiers.py +1068 -0
  17. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/tags.py +651 -0
  18. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/utils.py +158 -0
  19. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/version.py +792 -0
  20. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging-26.0.dist-info/METADATA +107 -0
  21. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging-26.0.dist-info/RECORD +24 -0
  22. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging-26.0.dist-info/WHEEL +4 -0
  23. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging-26.0.dist-info/licenses/LICENSE +3 -0
  24. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging-26.0.dist-info/licenses/LICENSE.APACHE +177 -0
  25. x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging-26.0.dist-info/licenses/LICENSE.BSD +23 -0
  26. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/__init__.py +68 -0
  27. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/__init__.py +4 -0
  28. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/_utils.py +45 -0
  29. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/agg.py +104 -0
  30. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/hyperscan/__init__.py +0 -0
  31. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/hyperscan/_base.py +78 -0
  32. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/hyperscan/base.py +24 -0
  33. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/hyperscan/gitignore.py +245 -0
  34. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/hyperscan/pathspec.py +251 -0
  35. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/re2/__init__.py +0 -0
  36. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/re2/_base.py +95 -0
  37. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/re2/base.py +18 -0
  38. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/re2/gitignore.py +179 -0
  39. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/re2/pathspec.py +187 -0
  40. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/simple/__init__.py +0 -0
  41. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/simple/gitignore.py +104 -0
  42. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_backends/simple/pathspec.py +76 -0
  43. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_meta.py +67 -0
  44. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_typing.py +64 -0
  45. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/_version.py +5 -0
  46. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/backend.py +40 -0
  47. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/gitignore.py +165 -0
  48. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/pathspec.py +460 -0
  49. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/pattern.py +241 -0
  50. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/patterns/__init__.py +12 -0
  51. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/patterns/gitignore/__init__.py +17 -0
  52. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/patterns/gitignore/base.py +176 -0
  53. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/patterns/gitignore/basic.py +317 -0
  54. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/patterns/gitignore/spec.py +335 -0
  55. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/patterns/gitwildmatch.py +52 -0
  56. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/py.typed +1 -0
  57. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec/util.py +847 -0
  58. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec-1.0.4.dist-info/METADATA +356 -0
  59. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec-1.0.4.dist-info/RECORD +36 -0
  60. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec-1.0.4.dist-info/WHEEL +4 -0
  61. x_post_cli-0.2.2/.uv-cache/archive-v0/WxJkiDvvDqQlhdnanJhH4/pathspec-1.0.4.dist-info/licenses/LICENSE +373 -0
  62. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/__about__.py +1 -0
  63. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/__init__.py +0 -0
  64. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/__main__.py +6 -0
  65. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/bridge/__init__.py +0 -0
  66. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/bridge/app.py +111 -0
  67. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/build.py +144 -0
  68. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/__init__.py +0 -0
  69. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/app.py +20 -0
  70. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/binary.py +202 -0
  71. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/config.py +864 -0
  72. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/constants.py +43 -0
  73. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/custom.py +54 -0
  74. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/hooks/__init__.py +0 -0
  75. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/hooks/custom.py +41 -0
  76. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/hooks/plugin/__init__.py +0 -0
  77. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/hooks/plugin/hooks.py +15 -0
  78. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/hooks/plugin/interface.py +148 -0
  79. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/hooks/version.py +71 -0
  80. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/macos.py +58 -0
  81. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/plugin/__init__.py +0 -0
  82. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/plugin/hooks.py +18 -0
  83. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/plugin/interface.py +443 -0
  84. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/sdist.py +357 -0
  85. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/utils.py +128 -0
  86. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/builders/wheel.py +870 -0
  87. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/cli/__init__.py +28 -0
  88. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/cli/build/__init__.py +119 -0
  89. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/cli/dep/__init__.py +37 -0
  90. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/cli/dep/core.py +132 -0
  91. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/cli/metadata/__init__.py +58 -0
  92. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/cli/version/__init__.py +51 -0
  93. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/dep/__init__.py +0 -0
  94. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/dep/core.py +1 -0
  95. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/licenses/__init__.py +0 -0
  96. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/licenses/supported.py +1 -0
  97. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/metadata/__init__.py +0 -0
  98. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/metadata/core.py +1621 -0
  99. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/metadata/custom.py +41 -0
  100. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/metadata/plugin/__init__.py +0 -0
  101. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/metadata/plugin/hooks.py +14 -0
  102. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/metadata/plugin/interface.py +66 -0
  103. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/metadata/spec.py +600 -0
  104. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/metadata/utils.py +66 -0
  105. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/ouroboros.py +52 -0
  106. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/plugin/__init__.py +3 -0
  107. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/plugin/exceptions.py +2 -0
  108. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/plugin/manager.py +114 -0
  109. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/plugin/specs.py +23 -0
  110. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/plugin/utils.py +48 -0
  111. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/py.typed +0 -0
  112. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/utils/__init__.py +0 -0
  113. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/utils/constants.py +6 -0
  114. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/utils/context.py +173 -0
  115. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/utils/fs.py +26 -0
  116. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/__init__.py +0 -0
  117. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/core.py +58 -0
  118. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/scheme/__init__.py +0 -0
  119. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/scheme/plugin/__init__.py +0 -0
  120. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/scheme/plugin/hooks.py +14 -0
  121. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/scheme/plugin/interface.py +85 -0
  122. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/scheme/standard.py +98 -0
  123. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/source/__init__.py +0 -0
  124. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/source/code.py +64 -0
  125. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/source/env.py +29 -0
  126. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/source/plugin/__init__.py +0 -0
  127. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/source/plugin/hooks.py +16 -0
  128. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/source/plugin/interface.py +69 -0
  129. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling/version/source/regex.py +29 -0
  130. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling-1.28.0.dist-info/METADATA +79 -0
  131. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling-1.28.0.dist-info/RECORD +73 -0
  132. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling-1.28.0.dist-info/WHEEL +4 -0
  133. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling-1.28.0.dist-info/entry_points.txt +2 -0
  134. x_post_cli-0.2.2/.uv-cache/archive-v0/XbHhRt9z3InlOrrx1LFm8/hatchling-1.28.0.dist-info/licenses/LICENSE.txt +9 -0
  135. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy/__init__.py +30 -0
  136. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy/_callers.py +169 -0
  137. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy/_hooks.py +714 -0
  138. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy/_manager.py +523 -0
  139. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy/_result.py +107 -0
  140. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy/_tracing.py +72 -0
  141. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy/_version.py +21 -0
  142. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy/_warnings.py +27 -0
  143. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy/py.typed +0 -0
  144. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy-1.6.0.dist-info/METADATA +152 -0
  145. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy-1.6.0.dist-info/RECORD +14 -0
  146. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy-1.6.0.dist-info/WHEEL +5 -0
  147. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy-1.6.0.dist-info/licenses/LICENSE +21 -0
  148. x_post_cli-0.2.2/.uv-cache/archive-v0/au9HZUTp2s5V8Mr-tWZEb/pluggy-1.6.0.dist-info/top_level.txt +1 -0
  149. x_post_cli-0.2.2/.uv-cache/archive-v0/dNtR4R8kuPkYBQGIFA6Uz/trove_classifiers/__init__.py +921 -0
  150. x_post_cli-0.2.2/.uv-cache/archive-v0/dNtR4R8kuPkYBQGIFA6Uz/trove_classifiers/__main__.py +10 -0
  151. x_post_cli-0.2.2/.uv-cache/archive-v0/dNtR4R8kuPkYBQGIFA6Uz/trove_classifiers/py.typed +0 -0
  152. x_post_cli-0.2.2/.uv-cache/archive-v0/dNtR4R8kuPkYBQGIFA6Uz/trove_classifiers-2026.1.14.14.dist-info/METADATA +82 -0
  153. x_post_cli-0.2.2/.uv-cache/archive-v0/dNtR4R8kuPkYBQGIFA6Uz/trove_classifiers-2026.1.14.14.dist-info/RECORD +9 -0
  154. x_post_cli-0.2.2/.uv-cache/archive-v0/dNtR4R8kuPkYBQGIFA6Uz/trove_classifiers-2026.1.14.14.dist-info/WHEEL +5 -0
  155. x_post_cli-0.2.2/.uv-cache/archive-v0/dNtR4R8kuPkYBQGIFA6Uz/trove_classifiers-2026.1.14.14.dist-info/entry_points.txt +2 -0
  156. x_post_cli-0.2.2/.uv-cache/archive-v0/dNtR4R8kuPkYBQGIFA6Uz/trove_classifiers-2026.1.14.14.dist-info/licenses/LICENSE +201 -0
  157. x_post_cli-0.2.2/.uv-cache/archive-v0/dNtR4R8kuPkYBQGIFA6Uz/trove_classifiers-2026.1.14.14.dist-info/top_level.txt +1 -0
  158. x_post_cli-0.2.2/.uv-cache/archive-v0/gDQ4ksls3-MMkFUg8zCfg/editables/__init__.py +102 -0
  159. x_post_cli-0.2.2/.uv-cache/archive-v0/gDQ4ksls3-MMkFUg8zCfg/editables/py.typed +0 -0
  160. x_post_cli-0.2.2/.uv-cache/archive-v0/gDQ4ksls3-MMkFUg8zCfg/editables/redirector.py +47 -0
  161. x_post_cli-0.2.2/.uv-cache/archive-v0/gDQ4ksls3-MMkFUg8zCfg/editables-0.5.dist-info/LICENSE.txt +18 -0
  162. x_post_cli-0.2.2/.uv-cache/archive-v0/gDQ4ksls3-MMkFUg8zCfg/editables-0.5.dist-info/METADATA +91 -0
  163. x_post_cli-0.2.2/.uv-cache/archive-v0/gDQ4ksls3-MMkFUg8zCfg/editables-0.5.dist-info/RECORD +7 -0
  164. x_post_cli-0.2.2/.uv-cache/archive-v0/gDQ4ksls3-MMkFUg8zCfg/editables-0.5.dist-info/WHEEL +4 -0
  165. x_post_cli-0.2.2/.uv-cache/archive-v0/v7hZZ7Al6dw9o-Xu3esg2/_x_post_cli.pth +1 -0
  166. x_post_cli-0.2.2/.uv-cache/archive-v0/v7hZZ7Al6dw9o-Xu3esg2/x_post_cli-0.2.2.dist-info/METADATA +6 -0
  167. x_post_cli-0.2.2/.uv-cache/archive-v0/v7hZZ7Al6dw9o-Xu3esg2/x_post_cli-0.2.2.dist-info/RECORD +5 -0
  168. x_post_cli-0.2.2/.uv-cache/archive-v0/v7hZZ7Al6dw9o-Xu3esg2/x_post_cli-0.2.2.dist-info/WHEEL +4 -0
  169. x_post_cli-0.2.2/.uv-cache/archive-v0/v7hZZ7Al6dw9o-Xu3esg2/x_post_cli-0.2.2.dist-info/entry_points.txt +2 -0
  170. x_post_cli-0.2.2/.uv-cache/interpreter-v4/df9b60572b5055b7/33274ec2ccc78496.msgpack +0 -0
  171. x_post_cli-0.2.2/.uv-cache/sdists-v9/.git +0 -0
  172. x_post_cli-0.2.2/.uv-cache/sdists-v9/.gitignore +0 -0
  173. x_post_cli-0.2.2/.uv-cache/sdists-v9/editable/9110396b59a47c20/.lock +0 -0
  174. x_post_cli-0.2.2/.uv-cache/sdists-v9/editable/9110396b59a47c20/revision.rev +1 -0
  175. x_post_cli-0.2.2/.uv-cache/sdists-v9/editable/9110396b59a47c20/twxZ1PPVjVEqeIjHY4oxo/metadata.msgpack +1 -0
  176. x_post_cli-0.2.2/.uv-cache/sdists-v9/editable/9110396b59a47c20/twxZ1PPVjVEqeIjHY4oxo/x_post_cli-0.2.2-py3-none-any.whl +0 -0
  177. x_post_cli-0.2.2/.uv-cache/simple-v20/pypi/editables.rkyv +0 -0
  178. x_post_cli-0.2.2/.uv-cache/simple-v20/pypi/hatchling.rkyv +0 -0
  179. x_post_cli-0.2.2/.uv-cache/simple-v20/pypi/packaging.rkyv +0 -0
  180. x_post_cli-0.2.2/.uv-cache/simple-v20/pypi/pathspec.rkyv +0 -0
  181. x_post_cli-0.2.2/.uv-cache/simple-v20/pypi/pluggy.rkyv +0 -0
  182. x_post_cli-0.2.2/.uv-cache/simple-v20/pypi/trove-classifiers.rkyv +0 -0
  183. x_post_cli-0.2.2/.uv-cache/wheels-v6/pypi/editables/0.5-py3-none-any.http +0 -0
  184. x_post_cli-0.2.2/.uv-cache/wheels-v6/pypi/editables/0.5-py3-none-any.msgpack +0 -0
  185. x_post_cli-0.2.2/.uv-cache/wheels-v6/pypi/hatchling/1.28.0-py3-none-any.http +0 -0
  186. x_post_cli-0.2.2/.uv-cache/wheels-v6/pypi/hatchling/1.28.0-py3-none-any.msgpack +0 -0
  187. x_post_cli-0.2.2/.uv-cache/wheels-v6/pypi/packaging/26.0-py3-none-any.http +0 -0
  188. x_post_cli-0.2.2/.uv-cache/wheels-v6/pypi/packaging/26.0-py3-none-any.msgpack +0 -0
  189. x_post_cli-0.2.2/.uv-cache/wheels-v6/pypi/pathspec/1.0.4-py3-none-any.http +0 -0
  190. x_post_cli-0.2.2/.uv-cache/wheels-v6/pypi/pathspec/1.0.4-py3-none-any.msgpack +0 -0
  191. x_post_cli-0.2.2/.uv-cache/wheels-v6/pypi/pluggy/1.6.0-py3-none-any.http +0 -0
  192. x_post_cli-0.2.2/.uv-cache/wheels-v6/pypi/pluggy/1.6.0-py3-none-any.msgpack +0 -0
  193. x_post_cli-0.2.2/.uv-cache/wheels-v6/pypi/trove-classifiers/2026.1.14.14-py3-none-any.http +0 -0
  194. x_post_cli-0.2.2/.uv-cache/wheels-v6/pypi/trove-classifiers/2026.1.14.14-py3-none-any.msgpack +0 -0
  195. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/PKG-INFO +1 -1
  196. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/README.md +1 -1
  197. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/pyproject.toml +1 -1
  198. x_post_cli-0.2.2/src/x_post/__init__.py +0 -0
  199. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/src/x_post/cli.py +4 -2
  200. x_post_cli-0.2.2/src/x_post/text.py +44 -0
  201. x_post_cli-0.2.2/tests/__init__.py +0 -0
  202. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/tests/test_client.py +52 -0
  203. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/uv.lock +1 -1
  204. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/.claude/settings.local.json +0 -0
  205. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/.gitignore +0 -0
  206. /x_post_cli-0.2.0/src/x_post/__init__.py → /x_post_cli-0.2.2/.uv-cache/.lock +0 -0
  207. /x_post_cli-0.2.0/tests/__init__.py → /x_post_cli-0.2.2/.uv-cache/archive-v0/ATO2507z5b0IrPBgITuyF/packaging/py.typed +0 -0
  208. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/src/x_post/auth.py +0 -0
  209. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/src/x_post/client.py +0 -0
  210. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/src/x_post/config.py +0 -0
  211. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/tests/conftest.py +0 -0
  212. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/tests/helpers.py +0 -0
  213. {x_post_cli-0.2.0 → x_post_cli-0.2.2}/tests/test_config.py +0 -0
@@ -0,0 +1 @@
1
+ *
@@ -0,0 +1 @@
1
+ Signature: 8a477f597d28d172789f06886806bc55
@@ -0,0 +1,15 @@
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
+ __title__ = "packaging"
6
+ __summary__ = "Core utilities for Python packages"
7
+ __uri__ = "https://github.com/pypa/packaging"
8
+
9
+ __version__ = "26.0"
10
+
11
+ __author__ = "Donald Stufft and individual contributors"
12
+ __email__ = "donald@stufft.io"
13
+
14
+ __license__ = "BSD-2-Clause or Apache-2.0"
15
+ __copyright__ = f"2014 {__author__}"
@@ -0,0 +1,108 @@
1
+ """
2
+ ELF file parser.
3
+
4
+ This provides a class ``ELFFile`` that parses an ELF executable in a similar
5
+ interface to ``ZipFile``. Only the read interface is implemented.
6
+
7
+ ELF header: https://refspecs.linuxfoundation.org/elf/gabi4+/ch4.eheader.html
8
+ """
9
+
10
+ from __future__ import annotations
11
+
12
+ import enum
13
+ import os
14
+ import struct
15
+ from typing import IO
16
+
17
+
18
+ class ELFInvalid(ValueError):
19
+ pass
20
+
21
+
22
+ class EIClass(enum.IntEnum):
23
+ C32 = 1
24
+ C64 = 2
25
+
26
+
27
+ class EIData(enum.IntEnum):
28
+ Lsb = 1
29
+ Msb = 2
30
+
31
+
32
+ class EMachine(enum.IntEnum):
33
+ I386 = 3
34
+ S390 = 22
35
+ Arm = 40
36
+ X8664 = 62
37
+ AArc64 = 183
38
+
39
+
40
+ class ELFFile:
41
+ """
42
+ Representation of an ELF executable.
43
+ """
44
+
45
+ def __init__(self, f: IO[bytes]) -> None:
46
+ self._f = f
47
+
48
+ try:
49
+ ident = self._read("16B")
50
+ except struct.error as e:
51
+ raise ELFInvalid("unable to parse identification") from e
52
+ magic = bytes(ident[:4])
53
+ if magic != b"\x7fELF":
54
+ raise ELFInvalid(f"invalid magic: {magic!r}")
55
+
56
+ self.capacity = ident[4] # Format for program header (bitness).
57
+ self.encoding = ident[5] # Data structure encoding (endianness).
58
+
59
+ try:
60
+ # e_fmt: Format for program header.
61
+ # p_fmt: Format for section header.
62
+ # p_idx: Indexes to find p_type, p_offset, and p_filesz.
63
+ e_fmt, self._p_fmt, self._p_idx = {
64
+ (1, 1): ("<HHIIIIIHHH", "<IIIIIIII", (0, 1, 4)), # 32-bit LSB.
65
+ (1, 2): (">HHIIIIIHHH", ">IIIIIIII", (0, 1, 4)), # 32-bit MSB.
66
+ (2, 1): ("<HHIQQQIHHH", "<IIQQQQQQ", (0, 2, 5)), # 64-bit LSB.
67
+ (2, 2): (">HHIQQQIHHH", ">IIQQQQQQ", (0, 2, 5)), # 64-bit MSB.
68
+ }[(self.capacity, self.encoding)]
69
+ except KeyError as e:
70
+ raise ELFInvalid(
71
+ f"unrecognized capacity ({self.capacity}) or encoding ({self.encoding})"
72
+ ) from e
73
+
74
+ try:
75
+ (
76
+ _,
77
+ self.machine, # Architecture type.
78
+ _,
79
+ _,
80
+ self._e_phoff, # Offset of program header.
81
+ _,
82
+ self.flags, # Processor-specific flags.
83
+ _,
84
+ self._e_phentsize, # Size of section.
85
+ self._e_phnum, # Number of sections.
86
+ ) = self._read(e_fmt)
87
+ except struct.error as e:
88
+ raise ELFInvalid("unable to parse machine and section information") from e
89
+
90
+ def _read(self, fmt: str) -> tuple[int, ...]:
91
+ return struct.unpack(fmt, self._f.read(struct.calcsize(fmt)))
92
+
93
+ @property
94
+ def interpreter(self) -> str | None:
95
+ """
96
+ The path recorded in the ``PT_INTERP`` section header.
97
+ """
98
+ for index in range(self._e_phnum):
99
+ self._f.seek(self._e_phoff + self._e_phentsize * index)
100
+ try:
101
+ data = self._read(self._p_fmt)
102
+ except struct.error:
103
+ continue
104
+ if data[self._p_idx[0]] != 3: # Not PT_INTERP.
105
+ continue
106
+ self._f.seek(data[self._p_idx[1]])
107
+ return os.fsdecode(self._f.read(data[self._p_idx[2]])).strip("\0")
108
+ return None
@@ -0,0 +1,262 @@
1
+ from __future__ import annotations
2
+
3
+ import collections
4
+ import contextlib
5
+ import functools
6
+ import os
7
+ import re
8
+ import sys
9
+ import warnings
10
+ from typing import Generator, Iterator, NamedTuple, Sequence
11
+
12
+ from ._elffile import EIClass, EIData, ELFFile, EMachine
13
+
14
+ EF_ARM_ABIMASK = 0xFF000000
15
+ EF_ARM_ABI_VER5 = 0x05000000
16
+ EF_ARM_ABI_FLOAT_HARD = 0x00000400
17
+
18
+ _ALLOWED_ARCHS = {
19
+ "x86_64",
20
+ "aarch64",
21
+ "ppc64",
22
+ "ppc64le",
23
+ "s390x",
24
+ "loongarch64",
25
+ "riscv64",
26
+ }
27
+
28
+
29
+ # `os.PathLike` not a generic type until Python 3.9, so sticking with `str`
30
+ # as the type for `path` until then.
31
+ @contextlib.contextmanager
32
+ def _parse_elf(path: str) -> Generator[ELFFile | None, None, None]:
33
+ try:
34
+ with open(path, "rb") as f:
35
+ yield ELFFile(f)
36
+ except (OSError, TypeError, ValueError):
37
+ yield None
38
+
39
+
40
+ def _is_linux_armhf(executable: str) -> bool:
41
+ # hard-float ABI can be detected from the ELF header of the running
42
+ # process
43
+ # https://static.docs.arm.com/ihi0044/g/aaelf32.pdf
44
+ with _parse_elf(executable) as f:
45
+ return (
46
+ f is not None
47
+ and f.capacity == EIClass.C32
48
+ and f.encoding == EIData.Lsb
49
+ and f.machine == EMachine.Arm
50
+ and f.flags & EF_ARM_ABIMASK == EF_ARM_ABI_VER5
51
+ and f.flags & EF_ARM_ABI_FLOAT_HARD == EF_ARM_ABI_FLOAT_HARD
52
+ )
53
+
54
+
55
+ def _is_linux_i686(executable: str) -> bool:
56
+ with _parse_elf(executable) as f:
57
+ return (
58
+ f is not None
59
+ and f.capacity == EIClass.C32
60
+ and f.encoding == EIData.Lsb
61
+ and f.machine == EMachine.I386
62
+ )
63
+
64
+
65
+ def _have_compatible_abi(executable: str, archs: Sequence[str]) -> bool:
66
+ if "armv7l" in archs:
67
+ return _is_linux_armhf(executable)
68
+ if "i686" in archs:
69
+ return _is_linux_i686(executable)
70
+ return any(arch in _ALLOWED_ARCHS for arch in archs)
71
+
72
+
73
+ # If glibc ever changes its major version, we need to know what the last
74
+ # minor version was, so we can build the complete list of all versions.
75
+ # For now, guess what the highest minor version might be, assume it will
76
+ # be 50 for testing. Once this actually happens, update the dictionary
77
+ # with the actual value.
78
+ _LAST_GLIBC_MINOR: dict[int, int] = collections.defaultdict(lambda: 50)
79
+
80
+
81
+ class _GLibCVersion(NamedTuple):
82
+ major: int
83
+ minor: int
84
+
85
+
86
+ def _glibc_version_string_confstr() -> str | None:
87
+ """
88
+ Primary implementation of glibc_version_string using os.confstr.
89
+ """
90
+ # os.confstr is quite a bit faster than ctypes.DLL. It's also less likely
91
+ # to be broken or missing. This strategy is used in the standard library
92
+ # platform module.
93
+ # https://github.com/python/cpython/blob/fcf1d003bf4f0100c/Lib/platform.py#L175-L183
94
+ try:
95
+ # Should be a string like "glibc 2.17".
96
+ version_string: str | None = os.confstr("CS_GNU_LIBC_VERSION")
97
+ assert version_string is not None
98
+ _, version = version_string.rsplit()
99
+ except (AssertionError, AttributeError, OSError, ValueError):
100
+ # os.confstr() or CS_GNU_LIBC_VERSION not available (or a bad value)...
101
+ return None
102
+ return version
103
+
104
+
105
+ def _glibc_version_string_ctypes() -> str | None:
106
+ """
107
+ Fallback implementation of glibc_version_string using ctypes.
108
+ """
109
+ try:
110
+ import ctypes # noqa: PLC0415
111
+ except ImportError:
112
+ return None
113
+
114
+ # ctypes.CDLL(None) internally calls dlopen(NULL), and as the dlopen
115
+ # manpage says, "If filename is NULL, then the returned handle is for the
116
+ # main program". This way we can let the linker do the work to figure out
117
+ # which libc our process is actually using.
118
+ #
119
+ # We must also handle the special case where the executable is not a
120
+ # dynamically linked executable. This can occur when using musl libc,
121
+ # for example. In this situation, dlopen() will error, leading to an
122
+ # OSError. Interestingly, at least in the case of musl, there is no
123
+ # errno set on the OSError. The single string argument used to construct
124
+ # OSError comes from libc itself and is therefore not portable to
125
+ # hard code here. In any case, failure to call dlopen() means we
126
+ # can proceed, so we bail on our attempt.
127
+ try:
128
+ process_namespace = ctypes.CDLL(None)
129
+ except OSError:
130
+ return None
131
+
132
+ try:
133
+ gnu_get_libc_version = process_namespace.gnu_get_libc_version
134
+ except AttributeError:
135
+ # Symbol doesn't exist -> therefore, we are not linked to
136
+ # glibc.
137
+ return None
138
+
139
+ # Call gnu_get_libc_version, which returns a string like "2.5"
140
+ gnu_get_libc_version.restype = ctypes.c_char_p
141
+ version_str: str = gnu_get_libc_version()
142
+ # py2 / py3 compatibility:
143
+ if not isinstance(version_str, str):
144
+ version_str = version_str.decode("ascii")
145
+
146
+ return version_str
147
+
148
+
149
+ def _glibc_version_string() -> str | None:
150
+ """Returns glibc version string, or None if not using glibc."""
151
+ return _glibc_version_string_confstr() or _glibc_version_string_ctypes()
152
+
153
+
154
+ def _parse_glibc_version(version_str: str) -> _GLibCVersion:
155
+ """Parse glibc version.
156
+
157
+ We use a regexp instead of str.split because we want to discard any
158
+ random junk that might come after the minor version -- this might happen
159
+ in patched/forked versions of glibc (e.g. Linaro's version of glibc
160
+ uses version strings like "2.20-2014.11"). See gh-3588.
161
+ """
162
+ m = re.match(r"(?P<major>[0-9]+)\.(?P<minor>[0-9]+)", version_str)
163
+ if not m:
164
+ warnings.warn(
165
+ f"Expected glibc version with 2 components major.minor, got: {version_str}",
166
+ RuntimeWarning,
167
+ stacklevel=2,
168
+ )
169
+ return _GLibCVersion(-1, -1)
170
+ return _GLibCVersion(int(m.group("major")), int(m.group("minor")))
171
+
172
+
173
+ @functools.lru_cache
174
+ def _get_glibc_version() -> _GLibCVersion:
175
+ version_str = _glibc_version_string()
176
+ if version_str is None:
177
+ return _GLibCVersion(-1, -1)
178
+ return _parse_glibc_version(version_str)
179
+
180
+
181
+ # From PEP 513, PEP 600
182
+ def _is_compatible(arch: str, version: _GLibCVersion) -> bool:
183
+ sys_glibc = _get_glibc_version()
184
+ if sys_glibc < version:
185
+ return False
186
+ # Check for presence of _manylinux module.
187
+ try:
188
+ import _manylinux # noqa: PLC0415
189
+ except ImportError:
190
+ return True
191
+ if hasattr(_manylinux, "manylinux_compatible"):
192
+ result = _manylinux.manylinux_compatible(version[0], version[1], arch)
193
+ if result is not None:
194
+ return bool(result)
195
+ return True
196
+ if version == _GLibCVersion(2, 5) and hasattr(_manylinux, "manylinux1_compatible"):
197
+ return bool(_manylinux.manylinux1_compatible)
198
+ if version == _GLibCVersion(2, 12) and hasattr(
199
+ _manylinux, "manylinux2010_compatible"
200
+ ):
201
+ return bool(_manylinux.manylinux2010_compatible)
202
+ if version == _GLibCVersion(2, 17) and hasattr(
203
+ _manylinux, "manylinux2014_compatible"
204
+ ):
205
+ return bool(_manylinux.manylinux2014_compatible)
206
+ return True
207
+
208
+
209
+ _LEGACY_MANYLINUX_MAP: dict[_GLibCVersion, str] = {
210
+ # CentOS 7 w/ glibc 2.17 (PEP 599)
211
+ _GLibCVersion(2, 17): "manylinux2014",
212
+ # CentOS 6 w/ glibc 2.12 (PEP 571)
213
+ _GLibCVersion(2, 12): "manylinux2010",
214
+ # CentOS 5 w/ glibc 2.5 (PEP 513)
215
+ _GLibCVersion(2, 5): "manylinux1",
216
+ }
217
+
218
+
219
+ def platform_tags(archs: Sequence[str]) -> Iterator[str]:
220
+ """Generate manylinux tags compatible to the current platform.
221
+
222
+ :param archs: Sequence of compatible architectures.
223
+ The first one shall be the closest to the actual architecture and be the part of
224
+ platform tag after the ``linux_`` prefix, e.g. ``x86_64``.
225
+ The ``linux_`` prefix is assumed as a prerequisite for the current platform to
226
+ be manylinux-compatible.
227
+
228
+ :returns: An iterator of compatible manylinux tags.
229
+ """
230
+ if not _have_compatible_abi(sys.executable, archs):
231
+ return
232
+ # Oldest glibc to be supported regardless of architecture is (2, 17).
233
+ too_old_glibc2 = _GLibCVersion(2, 16)
234
+ if set(archs) & {"x86_64", "i686"}:
235
+ # On x86/i686 also oldest glibc to be supported is (2, 5).
236
+ too_old_glibc2 = _GLibCVersion(2, 4)
237
+ current_glibc = _GLibCVersion(*_get_glibc_version())
238
+ glibc_max_list = [current_glibc]
239
+ # We can assume compatibility across glibc major versions.
240
+ # https://sourceware.org/bugzilla/show_bug.cgi?id=24636
241
+ #
242
+ # Build a list of maximum glibc versions so that we can
243
+ # output the canonical list of all glibc from current_glibc
244
+ # down to too_old_glibc2, including all intermediary versions.
245
+ for glibc_major in range(current_glibc.major - 1, 1, -1):
246
+ glibc_minor = _LAST_GLIBC_MINOR[glibc_major]
247
+ glibc_max_list.append(_GLibCVersion(glibc_major, glibc_minor))
248
+ for arch in archs:
249
+ for glibc_max in glibc_max_list:
250
+ if glibc_max.major == too_old_glibc2.major:
251
+ min_minor = too_old_glibc2.minor
252
+ else:
253
+ # For other glibc major versions oldest supported is (x, 0).
254
+ min_minor = -1
255
+ for glibc_minor in range(glibc_max.minor, min_minor, -1):
256
+ glibc_version = _GLibCVersion(glibc_max.major, glibc_minor)
257
+ if _is_compatible(arch, glibc_version):
258
+ yield "manylinux_{}_{}_{}".format(*glibc_version, arch)
259
+
260
+ # Handle the legacy manylinux1, manylinux2010, manylinux2014 tags.
261
+ if legacy_tag := _LEGACY_MANYLINUX_MAP.get(glibc_version):
262
+ yield f"{legacy_tag}_{arch}"
@@ -0,0 +1,85 @@
1
+ """PEP 656 support.
2
+
3
+ This module implements logic to detect if the currently running Python is
4
+ linked against musl, and what musl version is used.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ import functools
10
+ import re
11
+ import subprocess
12
+ import sys
13
+ from typing import Iterator, NamedTuple, Sequence
14
+
15
+ from ._elffile import ELFFile
16
+
17
+
18
+ class _MuslVersion(NamedTuple):
19
+ major: int
20
+ minor: int
21
+
22
+
23
+ def _parse_musl_version(output: str) -> _MuslVersion | None:
24
+ lines = [n for n in (n.strip() for n in output.splitlines()) if n]
25
+ if len(lines) < 2 or lines[0][:4] != "musl":
26
+ return None
27
+ m = re.match(r"Version (\d+)\.(\d+)", lines[1])
28
+ if not m:
29
+ return None
30
+ return _MuslVersion(major=int(m.group(1)), minor=int(m.group(2)))
31
+
32
+
33
+ @functools.lru_cache
34
+ def _get_musl_version(executable: str) -> _MuslVersion | None:
35
+ """Detect currently-running musl runtime version.
36
+
37
+ This is done by checking the specified executable's dynamic linking
38
+ information, and invoking the loader to parse its output for a version
39
+ string. If the loader is musl, the output would be something like::
40
+
41
+ musl libc (x86_64)
42
+ Version 1.2.2
43
+ Dynamic Program Loader
44
+ """
45
+ try:
46
+ with open(executable, "rb") as f:
47
+ ld = ELFFile(f).interpreter
48
+ except (OSError, TypeError, ValueError):
49
+ return None
50
+ if ld is None or "musl" not in ld:
51
+ return None
52
+ proc = subprocess.run([ld], check=False, stderr=subprocess.PIPE, text=True)
53
+ return _parse_musl_version(proc.stderr)
54
+
55
+
56
+ def platform_tags(archs: Sequence[str]) -> Iterator[str]:
57
+ """Generate musllinux tags compatible to the current platform.
58
+
59
+ :param archs: Sequence of compatible architectures.
60
+ The first one shall be the closest to the actual architecture and be the part of
61
+ platform tag after the ``linux_`` prefix, e.g. ``x86_64``.
62
+ The ``linux_`` prefix is assumed as a prerequisite for the current platform to
63
+ be musllinux-compatible.
64
+
65
+ :returns: An iterator of compatible musllinux tags.
66
+ """
67
+ sys_musl = _get_musl_version(sys.executable)
68
+ if sys_musl is None: # Python not dynamically linked against musl.
69
+ return
70
+ for arch in archs:
71
+ for minor in range(sys_musl.minor, -1, -1):
72
+ yield f"musllinux_{sys_musl.major}_{minor}_{arch}"
73
+
74
+
75
+ if __name__ == "__main__": # pragma: no cover
76
+ import sysconfig
77
+
78
+ plat = sysconfig.get_platform()
79
+ assert plat.startswith("linux-"), "not linux"
80
+
81
+ print("plat:", plat)
82
+ print("musl:", _get_musl_version(sys.executable))
83
+ print("tags:", end=" ")
84
+ for t in platform_tags(re.sub(r"[.-]", "_", plat.split("-", 1)[-1])):
85
+ print(t, end="\n ")