ob-metaflow 2.9.10.1__tar.gz → 2.10.2.6__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.

Potentially problematic release.


This version of ob-metaflow might be problematic. Click here for more details.

Files changed (309) hide show
  1. {ob-metaflow-2.9.10.1/ob_metaflow.egg-info → ob-metaflow-2.10.2.6}/PKG-INFO +1 -1
  2. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/__init__.py +15 -0
  3. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/_elffile.py +108 -0
  4. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/_manylinux.py +238 -0
  5. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/_musllinux.py +80 -0
  6. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/_parser.py +328 -0
  7. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/_structures.py +61 -0
  8. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/_tokenizer.py +188 -0
  9. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/markers.py +245 -0
  10. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/requirements.py +95 -0
  11. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/specifiers.py +1005 -0
  12. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/tags.py +546 -0
  13. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/utils.py +141 -0
  14. ob-metaflow-2.10.2.6/metaflow/_vendor/packaging/version.py +563 -0
  15. ob-metaflow-2.10.2.6/metaflow/_vendor/v3_7/__init__.py +1 -0
  16. ob-metaflow-2.10.2.6/metaflow/_vendor/v3_7/zipp.py +329 -0
  17. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/metaflow_config.py +2 -1
  18. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/metaflow_environment.py +3 -1
  19. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/mflog/mflog.py +7 -1
  20. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/multicore_utils.py +12 -2
  21. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/__init__.py +8 -3
  22. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/airflow.py +13 -0
  23. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/argo/argo_client.py +16 -0
  24. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/argo/argo_events.py +7 -1
  25. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/argo/argo_workflows.py +62 -0
  26. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/argo/argo_workflows_cli.py +15 -0
  27. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/batch/batch.py +10 -0
  28. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/batch/batch_cli.py +1 -2
  29. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/batch/batch_decorator.py +2 -9
  30. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/datatools/s3/s3.py +4 -0
  31. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/client.py +24 -3
  32. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/stub.py +2 -8
  33. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/kubernetes/kubernetes.py +13 -0
  34. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/kubernetes/kubernetes_cli.py +1 -2
  35. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/kubernetes/kubernetes_decorator.py +9 -2
  36. ob-metaflow-2.10.2.6/metaflow/plugins/pypi/__init__.py +29 -0
  37. ob-metaflow-2.10.2.6/metaflow/plugins/pypi/bootstrap.py +131 -0
  38. ob-metaflow-2.10.2.6/metaflow/plugins/pypi/conda_decorator.py +335 -0
  39. ob-metaflow-2.10.2.6/metaflow/plugins/pypi/conda_environment.py +414 -0
  40. ob-metaflow-2.10.2.6/metaflow/plugins/pypi/micromamba.py +294 -0
  41. ob-metaflow-2.10.2.6/metaflow/plugins/pypi/pip.py +205 -0
  42. ob-metaflow-2.10.2.6/metaflow/plugins/pypi/pypi_decorator.py +130 -0
  43. ob-metaflow-2.10.2.6/metaflow/plugins/pypi/pypi_environment.py +7 -0
  44. ob-metaflow-2.10.2.6/metaflow/plugins/pypi/utils.py +75 -0
  45. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/task.py +0 -3
  46. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/vendor.py +1 -0
  47. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6/ob_metaflow.egg-info}/PKG-INFO +1 -1
  48. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/ob_metaflow.egg-info/SOURCES.txt +24 -6
  49. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/setup.py +1 -2
  50. ob-metaflow-2.9.10.1/metaflow/plugins/conda/__init__.py +0 -90
  51. ob-metaflow-2.9.10.1/metaflow/plugins/conda/batch_bootstrap.py +0 -104
  52. ob-metaflow-2.9.10.1/metaflow/plugins/conda/conda.py +0 -247
  53. ob-metaflow-2.9.10.1/metaflow/plugins/conda/conda_environment.py +0 -136
  54. ob-metaflow-2.9.10.1/metaflow/plugins/conda/conda_flow_decorator.py +0 -35
  55. ob-metaflow-2.9.10.1/metaflow/plugins/conda/conda_step_decorator.py +0 -416
  56. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/LICENSE +0 -0
  57. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/MANIFEST.in +0 -0
  58. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/README.md +0 -0
  59. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/R.py +0 -0
  60. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/__init__.py +0 -0
  61. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/__init__.py +0 -0
  62. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/__init__.py +0 -0
  63. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/_bashcomplete.py +0 -0
  64. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/_compat.py +0 -0
  65. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/_termui_impl.py +0 -0
  66. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/_textwrap.py +0 -0
  67. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/_unicodefun.py +0 -0
  68. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/_winconsole.py +0 -0
  69. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/core.py +0 -0
  70. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/decorators.py +0 -0
  71. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/exceptions.py +0 -0
  72. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/formatting.py +0 -0
  73. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/globals.py +0 -0
  74. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/parser.py +0 -0
  75. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/termui.py +0 -0
  76. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/testing.py +0 -0
  77. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/types.py +0 -0
  78. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/click/utils.py +0 -0
  79. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_5/__init__.py +0 -0
  80. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_5/importlib_metadata/__init__.py +0 -0
  81. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_5/importlib_metadata/_compat.py +0 -0
  82. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_5/zipp.py +0 -0
  83. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_6/__init__.py +0 -0
  84. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_6/importlib_metadata/__init__.py +0 -0
  85. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_6/importlib_metadata/_adapters.py +0 -0
  86. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_6/importlib_metadata/_collections.py +0 -0
  87. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_6/importlib_metadata/_compat.py +0 -0
  88. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_6/importlib_metadata/_functools.py +0 -0
  89. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_6/importlib_metadata/_itertools.py +0 -0
  90. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_6/importlib_metadata/_meta.py +0 -0
  91. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_6/importlib_metadata/_text.py +0 -0
  92. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_6/typing_extensions.py +0 -0
  93. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/_vendor/v3_6/zipp.py +0 -0
  94. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/cards.py +0 -0
  95. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/cli.py +0 -0
  96. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/cli_args.py +0 -0
  97. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/client/__init__.py +0 -0
  98. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/client/core.py +0 -0
  99. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/client/filecache.py +0 -0
  100. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/cmd/__init__.py +0 -0
  101. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/cmd/configure_cmd.py +0 -0
  102. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/cmd/main_cli.py +0 -0
  103. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/cmd/tutorials_cmd.py +0 -0
  104. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/cmd/util.py +0 -0
  105. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/cmd_with_io.py +0 -0
  106. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/current.py +0 -0
  107. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/datastore/__init__.py +0 -0
  108. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/datastore/content_addressed_store.py +0 -0
  109. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/datastore/datastore_set.py +0 -0
  110. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/datastore/datastore_storage.py +0 -0
  111. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/datastore/exceptions.py +0 -0
  112. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/datastore/flow_datastore.py +0 -0
  113. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/datastore/inputs.py +0 -0
  114. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/datastore/task_datastore.py +0 -0
  115. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/debug.py +0 -0
  116. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/decorators.py +0 -0
  117. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/event_logger.py +0 -0
  118. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/events.py +0 -0
  119. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/exception.py +0 -0
  120. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/extension_support/__init__.py +0 -0
  121. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/extension_support/_empty_file.py +0 -0
  122. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/extension_support/cmd.py +0 -0
  123. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/extension_support/integrations.py +0 -0
  124. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/extension_support/plugins.py +0 -0
  125. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/flowspec.py +0 -0
  126. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/graph.py +0 -0
  127. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/includefile.py +0 -0
  128. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/integrations.py +0 -0
  129. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/lint.py +0 -0
  130. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/metadata/__init__.py +0 -0
  131. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/metadata/heartbeat.py +0 -0
  132. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/metadata/metadata.py +0 -0
  133. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/metadata/util.py +0 -0
  134. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/metaflow_config_funcs.py +0 -0
  135. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/metaflow_profile.py +0 -0
  136. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/metaflow_version.py +0 -0
  137. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/mflog/__init__.py +0 -0
  138. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/mflog/save_logs.py +0 -0
  139. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/mflog/save_logs_periodically.py +0 -0
  140. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/mflog/tee.py +0 -0
  141. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/monitor.py +0 -0
  142. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/package.py +0 -0
  143. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/parameters.py +0 -0
  144. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/__init__.py +0 -0
  145. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/airflow_cli.py +0 -0
  146. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/airflow_decorator.py +0 -0
  147. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/airflow_utils.py +0 -0
  148. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/dag.py +0 -0
  149. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/exception.py +0 -0
  150. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/plumbing/__init__.py +0 -0
  151. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/plumbing/set_parameters.py +0 -0
  152. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/sensors/__init__.py +0 -0
  153. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/sensors/base_sensor.py +0 -0
  154. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/sensors/external_task_sensor.py +0 -0
  155. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/airflow/sensors/s3_sensor.py +0 -0
  156. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/argo/__init__.py +0 -0
  157. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/argo/argo_workflows_decorator.py +0 -0
  158. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/argo/process_input_paths.py +0 -0
  159. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/__init__.py +0 -0
  160. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/aws_client.py +0 -0
  161. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/aws_utils.py +0 -0
  162. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/batch/__init__.py +0 -0
  163. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/batch/batch_client.py +0 -0
  164. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/secrets_manager/__init__.py +0 -0
  165. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.py +0 -0
  166. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/step_functions/__init__.py +0 -0
  167. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/step_functions/dynamo_db_client.py +0 -0
  168. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/step_functions/event_bridge_client.py +0 -0
  169. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/step_functions/production_token.py +0 -0
  170. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/step_functions/schedule_decorator.py +0 -0
  171. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/step_functions/set_batch_environment.py +0 -0
  172. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/step_functions/step_functions.py +0 -0
  173. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/step_functions/step_functions_cli.py +0 -0
  174. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/step_functions/step_functions_client.py +0 -0
  175. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/aws/step_functions/step_functions_decorator.py +0 -0
  176. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/azure/__init__.py +0 -0
  177. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/azure/azure_exceptions.py +0 -0
  178. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/azure/azure_tail.py +0 -0
  179. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/azure/azure_utils.py +0 -0
  180. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/azure/blob_service_client_factory.py +0 -0
  181. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/azure/includefile_support.py +0 -0
  182. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/__init__.py +0 -0
  183. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_cli.py +0 -0
  184. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_client.py +0 -0
  185. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_datastore.py +0 -0
  186. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_decorator.py +0 -0
  187. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/__init__.py +0 -0
  188. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/base.html +0 -0
  189. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/basic.py +0 -0
  190. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/bundle.css +0 -0
  191. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/card.py +0 -0
  192. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/chevron/__init__.py +0 -0
  193. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/chevron/main.py +0 -0
  194. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/chevron/metadata.py +0 -0
  195. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/chevron/renderer.py +0 -0
  196. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/chevron/tokenizer.py +0 -0
  197. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/components.py +0 -0
  198. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/convert_to_native_type.py +0 -0
  199. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/main.js +0 -0
  200. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/renderer_tools.py +0 -0
  201. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_modules/test_cards.py +0 -0
  202. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/card_resolver.py +0 -0
  203. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/component_serializer.py +0 -0
  204. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/cards/exception.py +0 -0
  205. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/catch_decorator.py +0 -0
  206. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/datastores/__init__.py +0 -0
  207. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/datastores/azure_storage.py +0 -0
  208. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/datastores/gs_storage.py +0 -0
  209. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/datastores/local_storage.py +0 -0
  210. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/datastores/s3_storage.py +0 -0
  211. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/datatools/__init__.py +0 -0
  212. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/datatools/local.py +0 -0
  213. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/datatools/s3/__init__.py +0 -0
  214. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/datatools/s3/s3op.py +0 -0
  215. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/datatools/s3/s3tail.py +0 -0
  216. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/datatools/s3/s3util.py +0 -0
  217. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/debug_logger.py +0 -0
  218. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/debug_monitor.py +0 -0
  219. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/__init__.py +0 -0
  220. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/client_modules.py +0 -0
  221. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/communication/__init__.py +0 -0
  222. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/communication/bytestream.py +0 -0
  223. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/communication/channel.py +0 -0
  224. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/communication/socket_bytestream.py +0 -0
  225. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/communication/utils.py +0 -0
  226. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/configurations/__init__.py +0 -0
  227. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/configurations/emulate_test_lib/__init__.py +0 -0
  228. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/configurations/emulate_test_lib/overrides.py +0 -0
  229. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/configurations/emulate_test_lib/server_mappings.py +0 -0
  230. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/configurations/test_lib_impl/__init__.py +0 -0
  231. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/configurations/test_lib_impl/test_lib.py +0 -0
  232. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/consts.py +0 -0
  233. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/data_transferer.py +0 -0
  234. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/exception_transferer.py +0 -0
  235. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/override_decorators.py +0 -0
  236. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/server.py +0 -0
  237. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/env_escape/utils.py +0 -0
  238. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/environment_decorator.py +0 -0
  239. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/events_decorator.py +0 -0
  240. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/frameworks/__init__.py +0 -0
  241. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/frameworks/pytorch.py +0 -0
  242. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/gcp/__init__.py +0 -0
  243. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/gcp/gs_exceptions.py +0 -0
  244. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/gcp/gs_storage_client_factory.py +0 -0
  245. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/gcp/gs_tail.py +0 -0
  246. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/gcp/gs_utils.py +0 -0
  247. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/gcp/includefile_support.py +0 -0
  248. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/kubernetes/__init__.py +0 -0
  249. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/kubernetes/kubernetes_client.py +0 -0
  250. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/kubernetes/kubernetes_job.py +0 -0
  251. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/metadata/__init__.py +0 -0
  252. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/metadata/local.py +0 -0
  253. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/metadata/service.py +0 -0
  254. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/package_cli.py +0 -0
  255. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/parallel_decorator.py +0 -0
  256. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/project_decorator.py +0 -0
  257. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/resources_decorator.py +0 -0
  258. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/retry_decorator.py +0 -0
  259. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/secrets/__init__.py +0 -0
  260. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/secrets/inline_secrets_provider.py +0 -0
  261. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/secrets/secrets_decorator.py +0 -0
  262. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/storage_executor.py +0 -0
  263. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/tag_cli.py +0 -0
  264. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/test_unbounded_foreach_decorator.py +0 -0
  265. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/plugins/timeout_decorator.py +0 -0
  266. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/procpoll.py +0 -0
  267. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/py.typed +0 -0
  268. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/pylint_wrapper.py +0 -0
  269. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/runtime.py +0 -0
  270. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/sidecar/__init__.py +0 -0
  271. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/sidecar/sidecar.py +0 -0
  272. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/sidecar/sidecar_messages.py +0 -0
  273. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/sidecar/sidecar_subprocess.py +0 -0
  274. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/sidecar/sidecar_worker.py +0 -0
  275. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tagging_util.py +0 -0
  276. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tracing.py +0 -0
  277. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tracing_noop.py +0 -0
  278. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tracing_otel.py +0 -0
  279. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tracing_propagator.py +0 -0
  280. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/00-helloworld/README.md +0 -0
  281. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/00-helloworld/helloworld.py +0 -0
  282. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/01-playlist/README.md +0 -0
  283. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/01-playlist/movies.csv +0 -0
  284. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/01-playlist/playlist.ipynb +0 -0
  285. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/01-playlist/playlist.py +0 -0
  286. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/02-statistics/README.md +0 -0
  287. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/02-statistics/movies.csv +0 -0
  288. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/02-statistics/stats.ipynb +0 -0
  289. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/02-statistics/stats.py +0 -0
  290. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/03-playlist-redux/README.md +0 -0
  291. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/03-playlist-redux/playlist.py +0 -0
  292. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/04-playlist-plus/README.md +0 -0
  293. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/04-playlist-plus/playlist.py +0 -0
  294. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/05-hello-cloud/README.md +0 -0
  295. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/05-hello-cloud/hello-cloud.ipynb +0 -0
  296. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/05-hello-cloud/hello-cloud.py +0 -0
  297. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/06-statistics-redux/README.md +0 -0
  298. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/06-statistics-redux/stats.ipynb +0 -0
  299. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/07-worldview/README.md +0 -0
  300. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/07-worldview/worldview.ipynb +0 -0
  301. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/08-autopilot/README.md +0 -0
  302. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/tutorials/08-autopilot/autopilot.ipynb +0 -0
  303. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/unbounded_foreach.py +0 -0
  304. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/metaflow/util.py +0 -0
  305. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/ob_metaflow.egg-info/dependency_links.txt +0 -0
  306. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/ob_metaflow.egg-info/entry_points.txt +0 -0
  307. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/ob_metaflow.egg-info/requires.txt +0 -0
  308. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/ob_metaflow.egg-info/top_level.txt +0 -0
  309. {ob-metaflow-2.9.10.1 → ob-metaflow-2.10.2.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ob-metaflow
3
- Version: 2.9.10.1
3
+ Version: 2.10.2.6
4
4
  Summary: Metaflow: More Data Science, Less Engineering
5
5
  Author: Netflix, Outerbounds & the Metaflow Community
6
6
  Author-email: help@outerbounds.co
@@ -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__ = "23.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__ = "2014-2019 %s" % __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
+ Based on: https://gist.github.com/lyssdod/f51579ae8d93c8657a5564aefc2ffbca
8
+ ELF header: https://refspecs.linuxfoundation.org/elf/gabi4+/ch4.eheader.html
9
+ """
10
+
11
+ import enum
12
+ import os
13
+ import struct
14
+ from typing import IO, Optional, Tuple
15
+
16
+
17
+ class ELFInvalid(ValueError):
18
+ pass
19
+
20
+
21
+ class EIClass(enum.IntEnum):
22
+ C32 = 1
23
+ C64 = 2
24
+
25
+
26
+ class EIData(enum.IntEnum):
27
+ Lsb = 1
28
+ Msb = 2
29
+
30
+
31
+ class EMachine(enum.IntEnum):
32
+ I386 = 3
33
+ S390 = 22
34
+ Arm = 40
35
+ X8664 = 62
36
+ AArc64 = 183
37
+
38
+
39
+ class ELFFile:
40
+ """
41
+ Representation of an ELF executable.
42
+ """
43
+
44
+ def __init__(self, f: IO[bytes]) -> None:
45
+ self._f = f
46
+
47
+ try:
48
+ ident = self._read("16B")
49
+ except struct.error:
50
+ raise ELFInvalid("unable to parse identification")
51
+ magic = bytes(ident[:4])
52
+ if magic != b"\x7fELF":
53
+ raise ELFInvalid(f"invalid magic: {magic!r}")
54
+
55
+ self.capacity = ident[4] # Format for program header (bitness).
56
+ self.encoding = ident[5] # Data structure encoding (endianness).
57
+
58
+ try:
59
+ # e_fmt: Format for program header.
60
+ # p_fmt: Format for section header.
61
+ # p_idx: Indexes to find p_type, p_offset, and p_filesz.
62
+ e_fmt, self._p_fmt, self._p_idx = {
63
+ (1, 1): ("<HHIIIIIHHH", "<IIIIIIII", (0, 1, 4)), # 32-bit LSB.
64
+ (1, 2): (">HHIIIIIHHH", ">IIIIIIII", (0, 1, 4)), # 32-bit MSB.
65
+ (2, 1): ("<HHIQQQIHHH", "<IIQQQQQQ", (0, 2, 5)), # 64-bit LSB.
66
+ (2, 2): (">HHIQQQIHHH", ">IIQQQQQQ", (0, 2, 5)), # 64-bit MSB.
67
+ }[(self.capacity, self.encoding)]
68
+ except KeyError:
69
+ raise ELFInvalid(
70
+ f"unrecognized capacity ({self.capacity}) or "
71
+ f"encoding ({self.encoding})"
72
+ )
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) -> Optional[str]:
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,238 @@
1
+ import collections
2
+ import contextlib
3
+ import functools
4
+ import os
5
+ import re
6
+ import sys
7
+ import warnings
8
+ from typing import Dict, Generator, Iterator, NamedTuple, Optional, Tuple
9
+
10
+ from ._elffile import EIClass, EIData, ELFFile, EMachine
11
+
12
+ EF_ARM_ABIMASK = 0xFF000000
13
+ EF_ARM_ABI_VER5 = 0x05000000
14
+ EF_ARM_ABI_FLOAT_HARD = 0x00000400
15
+
16
+
17
+ @contextlib.contextmanager
18
+ def _parse_elf(path: str) -> Generator[Optional[ELFFile], None, None]:
19
+ try:
20
+ with open(path, "rb") as f:
21
+ yield ELFFile(f)
22
+ except (OSError, TypeError, ValueError):
23
+ yield None
24
+
25
+
26
+ def _is_linux_armhf(executable: str) -> bool:
27
+ # hard-float ABI can be detected from the ELF header of the running
28
+ # process
29
+ # https://static.docs.arm.com/ihi0044/g/aaelf32.pdf
30
+ with _parse_elf(executable) as f:
31
+ return (
32
+ f is not None
33
+ and f.capacity == EIClass.C32
34
+ and f.encoding == EIData.Lsb
35
+ and f.machine == EMachine.Arm
36
+ and f.flags & EF_ARM_ABIMASK == EF_ARM_ABI_VER5
37
+ and f.flags & EF_ARM_ABI_FLOAT_HARD == EF_ARM_ABI_FLOAT_HARD
38
+ )
39
+
40
+
41
+ def _is_linux_i686(executable: str) -> bool:
42
+ with _parse_elf(executable) as f:
43
+ return (
44
+ f is not None
45
+ and f.capacity == EIClass.C32
46
+ and f.encoding == EIData.Lsb
47
+ and f.machine == EMachine.I386
48
+ )
49
+
50
+
51
+ def _have_compatible_abi(executable: str, arch: str) -> bool:
52
+ if arch == "armv7l":
53
+ return _is_linux_armhf(executable)
54
+ if arch == "i686":
55
+ return _is_linux_i686(executable)
56
+ return arch in {"x86_64", "aarch64", "ppc64", "ppc64le", "s390x"}
57
+
58
+
59
+ # If glibc ever changes its major version, we need to know what the last
60
+ # minor version was, so we can build the complete list of all versions.
61
+ # For now, guess what the highest minor version might be, assume it will
62
+ # be 50 for testing. Once this actually happens, update the dictionary
63
+ # with the actual value.
64
+ _LAST_GLIBC_MINOR: Dict[int, int] = collections.defaultdict(lambda: 50)
65
+
66
+
67
+ class _GLibCVersion(NamedTuple):
68
+ major: int
69
+ minor: int
70
+
71
+
72
+ def _glibc_version_string_confstr() -> Optional[str]:
73
+ """
74
+ Primary implementation of glibc_version_string using os.confstr.
75
+ """
76
+ # os.confstr is quite a bit faster than ctypes.DLL. It's also less likely
77
+ # to be broken or missing. This strategy is used in the standard library
78
+ # platform module.
79
+ # https://github.com/python/cpython/blob/fcf1d003bf4f0100c/Lib/platform.py#L175-L183
80
+ try:
81
+ # Should be a string like "glibc 2.17".
82
+ version_string: str = getattr(os, "confstr")("CS_GNU_LIBC_VERSION")
83
+ assert version_string is not None
84
+ _, version = version_string.rsplit()
85
+ except (AssertionError, AttributeError, OSError, ValueError):
86
+ # os.confstr() or CS_GNU_LIBC_VERSION not available (or a bad value)...
87
+ return None
88
+ return version
89
+
90
+
91
+ def _glibc_version_string_ctypes() -> Optional[str]:
92
+ """
93
+ Fallback implementation of glibc_version_string using ctypes.
94
+ """
95
+ try:
96
+ import ctypes
97
+ except ImportError:
98
+ return None
99
+
100
+ # ctypes.CDLL(None) internally calls dlopen(NULL), and as the dlopen
101
+ # manpage says, "If filename is NULL, then the returned handle is for the
102
+ # main program". This way we can let the linker do the work to figure out
103
+ # which libc our process is actually using.
104
+ #
105
+ # We must also handle the special case where the executable is not a
106
+ # dynamically linked executable. This can occur when using musl libc,
107
+ # for example. In this situation, dlopen() will error, leading to an
108
+ # OSError. Interestingly, at least in the case of musl, there is no
109
+ # errno set on the OSError. The single string argument used to construct
110
+ # OSError comes from libc itself and is therefore not portable to
111
+ # hard code here. In any case, failure to call dlopen() means we
112
+ # can proceed, so we bail on our attempt.
113
+ try:
114
+ process_namespace = ctypes.CDLL(None)
115
+ except OSError:
116
+ return None
117
+
118
+ try:
119
+ gnu_get_libc_version = process_namespace.gnu_get_libc_version
120
+ except AttributeError:
121
+ # Symbol doesn't exist -> therefore, we are not linked to
122
+ # glibc.
123
+ return None
124
+
125
+ # Call gnu_get_libc_version, which returns a string like "2.5"
126
+ gnu_get_libc_version.restype = ctypes.c_char_p
127
+ version_str: str = gnu_get_libc_version()
128
+ # py2 / py3 compatibility:
129
+ if not isinstance(version_str, str):
130
+ version_str = version_str.decode("ascii")
131
+
132
+ return version_str
133
+
134
+
135
+ def _glibc_version_string() -> Optional[str]:
136
+ """Returns glibc version string, or None if not using glibc."""
137
+ return _glibc_version_string_confstr() or _glibc_version_string_ctypes()
138
+
139
+
140
+ def _parse_glibc_version(version_str: str) -> Tuple[int, int]:
141
+ """Parse glibc version.
142
+
143
+ We use a regexp instead of str.split because we want to discard any
144
+ random junk that might come after the minor version -- this might happen
145
+ in patched/forked versions of glibc (e.g. Linaro's version of glibc
146
+ uses version strings like "2.20-2014.11"). See gh-3588.
147
+ """
148
+ m = re.match(r"(?P<major>[0-9]+)\.(?P<minor>[0-9]+)", version_str)
149
+ if not m:
150
+ warnings.warn(
151
+ f"Expected glibc version with 2 components major.minor,"
152
+ f" got: {version_str}",
153
+ RuntimeWarning,
154
+ )
155
+ return -1, -1
156
+ return int(m.group("major")), int(m.group("minor"))
157
+
158
+
159
+ @functools.lru_cache()
160
+ def _get_glibc_version() -> Tuple[int, int]:
161
+ version_str = _glibc_version_string()
162
+ if version_str is None:
163
+ return (-1, -1)
164
+ return _parse_glibc_version(version_str)
165
+
166
+
167
+ # From PEP 513, PEP 600
168
+ def _is_compatible(name: str, arch: str, version: _GLibCVersion) -> bool:
169
+ sys_glibc = _get_glibc_version()
170
+ if sys_glibc < version:
171
+ return False
172
+ # Check for presence of _manylinux module.
173
+ try:
174
+ import _manylinux # noqa
175
+ except ImportError:
176
+ return True
177
+ if hasattr(_manylinux, "manylinux_compatible"):
178
+ result = _manylinux.manylinux_compatible(version[0], version[1], arch)
179
+ if result is not None:
180
+ return bool(result)
181
+ return True
182
+ if version == _GLibCVersion(2, 5):
183
+ if hasattr(_manylinux, "manylinux1_compatible"):
184
+ return bool(_manylinux.manylinux1_compatible)
185
+ if version == _GLibCVersion(2, 12):
186
+ if hasattr(_manylinux, "manylinux2010_compatible"):
187
+ return bool(_manylinux.manylinux2010_compatible)
188
+ if version == _GLibCVersion(2, 17):
189
+ if hasattr(_manylinux, "manylinux2014_compatible"):
190
+ return bool(_manylinux.manylinux2014_compatible)
191
+ return True
192
+
193
+
194
+ _LEGACY_MANYLINUX_MAP = {
195
+ # CentOS 7 w/ glibc 2.17 (PEP 599)
196
+ (2, 17): "manylinux2014",
197
+ # CentOS 6 w/ glibc 2.12 (PEP 571)
198
+ (2, 12): "manylinux2010",
199
+ # CentOS 5 w/ glibc 2.5 (PEP 513)
200
+ (2, 5): "manylinux1",
201
+ }
202
+
203
+
204
+ def platform_tags(linux: str, arch: str) -> Iterator[str]:
205
+ if not _have_compatible_abi(sys.executable, arch):
206
+ return
207
+ # Oldest glibc to be supported regardless of architecture is (2, 17).
208
+ too_old_glibc2 = _GLibCVersion(2, 16)
209
+ if arch in {"x86_64", "i686"}:
210
+ # On x86/i686 also oldest glibc to be supported is (2, 5).
211
+ too_old_glibc2 = _GLibCVersion(2, 4)
212
+ current_glibc = _GLibCVersion(*_get_glibc_version())
213
+ glibc_max_list = [current_glibc]
214
+ # We can assume compatibility across glibc major versions.
215
+ # https://sourceware.org/bugzilla/show_bug.cgi?id=24636
216
+ #
217
+ # Build a list of maximum glibc versions so that we can
218
+ # output the canonical list of all glibc from current_glibc
219
+ # down to too_old_glibc2, including all intermediary versions.
220
+ for glibc_major in range(current_glibc.major - 1, 1, -1):
221
+ glibc_minor = _LAST_GLIBC_MINOR[glibc_major]
222
+ glibc_max_list.append(_GLibCVersion(glibc_major, glibc_minor))
223
+ for glibc_max in glibc_max_list:
224
+ if glibc_max.major == too_old_glibc2.major:
225
+ min_minor = too_old_glibc2.minor
226
+ else:
227
+ # For other glibc major versions oldest supported is (x, 0).
228
+ min_minor = -1
229
+ for glibc_minor in range(glibc_max.minor, min_minor, -1):
230
+ glibc_version = _GLibCVersion(glibc_max.major, glibc_minor)
231
+ tag = "manylinux_{}_{}".format(*glibc_version)
232
+ if _is_compatible(tag, arch, glibc_version):
233
+ yield linux.replace("linux", tag)
234
+ # Handle the legacy manylinux1, manylinux2010, manylinux2014 tags.
235
+ if glibc_version in _LEGACY_MANYLINUX_MAP:
236
+ legacy_tag = _LEGACY_MANYLINUX_MAP[glibc_version]
237
+ if _is_compatible(legacy_tag, arch, glibc_version):
238
+ yield linux.replace("linux", legacy_tag)
@@ -0,0 +1,80 @@
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
+ import functools
8
+ import re
9
+ import subprocess
10
+ import sys
11
+ from typing import Iterator, NamedTuple, Optional
12
+
13
+ from ._elffile import ELFFile
14
+
15
+
16
+ class _MuslVersion(NamedTuple):
17
+ major: int
18
+ minor: int
19
+
20
+
21
+ def _parse_musl_version(output: str) -> Optional[_MuslVersion]:
22
+ lines = [n for n in (n.strip() for n in output.splitlines()) if n]
23
+ if len(lines) < 2 or lines[0][:4] != "musl":
24
+ return None
25
+ m = re.match(r"Version (\d+)\.(\d+)", lines[1])
26
+ if not m:
27
+ return None
28
+ return _MuslVersion(major=int(m.group(1)), minor=int(m.group(2)))
29
+
30
+
31
+ @functools.lru_cache()
32
+ def _get_musl_version(executable: str) -> Optional[_MuslVersion]:
33
+ """Detect currently-running musl runtime version.
34
+
35
+ This is done by checking the specified executable's dynamic linking
36
+ information, and invoking the loader to parse its output for a version
37
+ string. If the loader is musl, the output would be something like::
38
+
39
+ musl libc (x86_64)
40
+ Version 1.2.2
41
+ Dynamic Program Loader
42
+ """
43
+ try:
44
+ with open(executable, "rb") as f:
45
+ ld = ELFFile(f).interpreter
46
+ except (OSError, TypeError, ValueError):
47
+ return None
48
+ if ld is None or "musl" not in ld:
49
+ return None
50
+ proc = subprocess.run([ld], stderr=subprocess.PIPE, universal_newlines=True)
51
+ return _parse_musl_version(proc.stderr)
52
+
53
+
54
+ def platform_tags(arch: str) -> Iterator[str]:
55
+ """Generate musllinux tags compatible to the current platform.
56
+
57
+ :param arch: Should be the part of platform tag after the ``linux_``
58
+ prefix, e.g. ``x86_64``. The ``linux_`` prefix is assumed as a
59
+ prerequisite for the current platform to be musllinux-compatible.
60
+
61
+ :returns: An iterator of compatible musllinux tags.
62
+ """
63
+ sys_musl = _get_musl_version(sys.executable)
64
+ if sys_musl is None: # Python not dynamically linked against musl.
65
+ return
66
+ for minor in range(sys_musl.minor, -1, -1):
67
+ yield f"musllinux_{sys_musl.major}_{minor}_{arch}"
68
+
69
+
70
+ if __name__ == "__main__": # pragma: no cover
71
+ import sysconfig
72
+
73
+ plat = sysconfig.get_platform()
74
+ assert plat.startswith("linux-"), "not linux"
75
+
76
+ print("plat:", plat)
77
+ print("musl:", _get_musl_version(sys.executable))
78
+ print("tags:", end=" ")
79
+ for t in platform_tags(re.sub(r"[.-]", "_", plat.split("-", 1)[-1])):
80
+ print(t, end="\n ")