yellowdog-python-examples 8.1.0__tar.gz → 8.1.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 (80) hide show
  1. {yellowdog_python_examples-8.1.0/yellowdog_python_examples.egg-info → yellowdog_python_examples-8.1.2}/PKG-INFO +2 -2
  2. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/README.md +1 -0
  3. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/requirements.txt +1 -1
  4. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/tests/test_entrypoints.py +2 -0
  5. yellowdog_python_examples-8.1.2/yellowdog_cli/__init__.py +1 -0
  6. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/cancel.py +1 -0
  7. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/finish.py +4 -2
  8. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/printing.py +2 -0
  9. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2/yellowdog_python_examples.egg-info}/PKG-INFO +2 -2
  10. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_python_examples.egg-info/requires.txt +1 -1
  11. yellowdog_python_examples-8.1.0/yellowdog_cli/__init__.py +0 -1
  12. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/LICENSE +0 -0
  13. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/PYPI_README.md +0 -0
  14. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/pyproject.toml +0 -0
  15. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/setup.cfg +0 -0
  16. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/tests/test_create_remove.py +0 -0
  17. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/tests/test_demos.py +0 -0
  18. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/tests/test_dryruns.py +0 -0
  19. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/tests/test_gui.py +0 -0
  20. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/tests/test_list.py +0 -0
  21. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/tests/test_objects.py +0 -0
  22. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/tests/test_variable_processing.py +0 -0
  23. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/abort.py +0 -0
  24. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/admin.py +0 -0
  25. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/boost.py +0 -0
  26. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/cloudwizard.py +0 -0
  27. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/compare.py +0 -0
  28. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/create.py +0 -0
  29. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/delete.py +0 -0
  30. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/download.py +0 -0
  31. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/follow.py +0 -0
  32. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/format_json.py +0 -0
  33. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/hold.py +0 -0
  34. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/instantiate.py +0 -0
  35. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/jsonnet2json.py +0 -0
  36. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/list.py +0 -0
  37. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/provision.py +0 -0
  38. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/remove.py +0 -0
  39. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/resize.py +0 -0
  40. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/show.py +0 -0
  41. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/shutdown.py +0 -0
  42. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/start.py +0 -0
  43. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/submit.py +0 -0
  44. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/terminate.py +0 -0
  45. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/upload.py +0 -0
  46. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/__init__.py +0 -0
  47. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/args.py +0 -0
  48. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/check_imports.py +0 -0
  49. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/cloudwizard_aws.py +0 -0
  50. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/cloudwizard_aws_types.py +0 -0
  51. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/cloudwizard_azure.py +0 -0
  52. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/cloudwizard_common.py +0 -0
  53. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/cloudwizard_gcp.py +0 -0
  54. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/compact_json.py +0 -0
  55. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/config_types.py +0 -0
  56. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/csv_data.py +0 -0
  57. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/entity_utils.py +0 -0
  58. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/follow_utils.py +0 -0
  59. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/interactive.py +0 -0
  60. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/items.py +0 -0
  61. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/load_config.py +0 -0
  62. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/load_resources.py +0 -0
  63. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/misc_utils.py +0 -0
  64. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/property_names.py +0 -0
  65. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/provision_utils.py +0 -0
  66. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/rich_console_input_fixed.py +0 -0
  67. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/settings.py +0 -0
  68. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/start_hold_common.py +0 -0
  69. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/submit_utils.py +0 -0
  70. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/type_check.py +0 -0
  71. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/upload_utils.py +0 -0
  72. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/validate_properties.py +0 -0
  73. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/variables.py +0 -0
  74. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/wrapper.py +0 -0
  75. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/utils/ydid_utils.py +0 -0
  76. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_cli/version.py +0 -0
  77. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_python_examples.egg-info/SOURCES.txt +0 -0
  78. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_python_examples.egg-info/dependency_links.txt +0 -0
  79. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_python_examples.egg-info/entry_points.txt +0 -0
  80. {yellowdog_python_examples-8.1.0 → yellowdog_python_examples-8.1.2}/yellowdog_python_examples.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yellowdog-python-examples
3
- Version: 8.1.0
3
+ Version: 8.1.2
4
4
  Summary: Python CLI commands using the YellowDog Python SDK
5
5
  Author-email: YellowDog Limited <support@yellowdog.co>
6
6
  License-Expression: Apache-2.0
@@ -26,7 +26,7 @@ Requires-Dist: requests
26
26
  Requires-Dist: rich==13.9.4
27
27
  Requires-Dist: tabulate>=0.9.0
28
28
  Requires-Dist: toml
29
- Requires-Dist: yellowdog-sdk>=11.3.0
29
+ Requires-Dist: yellowdog-sdk>=11.5.0
30
30
  Provides-Extra: jsonnet
31
31
  Requires-Dist: jsonnet; extra == "jsonnet"
32
32
  Provides-Extra: cloudwizard
@@ -710,6 +710,7 @@ In addition to the environment variables above, when a Task is executed by a Wor
710
710
  - `YD_TASK_ID`
711
711
  - `YD_AGENT_DATA`
712
712
  - `YD_AGENT_HOME`
713
+ - `YD_WORKER_SLOT`
713
714
 
714
715
  ### Task Types
715
716
 
@@ -5,4 +5,4 @@ requests
5
5
  rich == 13.9.4
6
6
  tabulate >= 0.9.0
7
7
  toml
8
- yellowdog-sdk >= 11.3.0
8
+ yellowdog-sdk >= 11.5.0
@@ -50,3 +50,5 @@ def test_entrypoints():
50
50
  assert result.exit_code == 0
51
51
  result = shell("yd-show --help")
52
52
  assert result.exit_code == 0
53
+ result = shell("yd-finish --help")
54
+ assert result.exit_code == 0
@@ -0,0 +1 @@
1
+ __version__ = "8.1.2"
@@ -141,6 +141,7 @@ def _cancel_work_requirements_by_name_or_id(names_or_ids: List[str]):
141
141
  if work_requirement_summary.status not in [
142
142
  WorkRequirementStatus.RUNNING,
143
143
  WorkRequirementStatus.HELD,
144
+ WorkRequirementStatus.FINISHING,
144
145
  ]:
145
146
  print_warning(
146
147
  f"Work Requirement '{name_or_id}' is not in a valid state"
@@ -44,6 +44,7 @@ def main():
44
44
  WorkRequirementStatus.COMPLETED,
45
45
  WorkRequirementStatus.CANCELLED,
46
46
  WorkRequirementStatus.FAILED,
47
+ WorkRequirementStatus.CANCELLING,
47
48
  ],
48
49
  )
49
50
  )
@@ -61,7 +62,7 @@ def main():
61
62
  f"Finish {len(selected_work_requirement_summaries)} " f"Work Requirement(s)?"
62
63
  ):
63
64
  for work_summary in selected_work_requirement_summaries:
64
- if work_summary.status != WorkRequirementStatus.RUNNING:
65
+ if work_summary.status != WorkRequirementStatus.FINISHING:
65
66
  try:
66
67
  CLIENT.work_client.finish_work_requirement_by_id(work_summary.id)
67
68
  work_requirement: WorkRequirement = (
@@ -121,10 +122,11 @@ def _finish_work_requirements_by_name_or_id(names_or_ids: List[str]):
121
122
 
122
123
  if work_requirement_summary.status not in [
123
124
  WorkRequirementStatus.RUNNING,
125
+ WorkRequirementStatus.HELD,
124
126
  ]:
125
127
  print_warning(
126
128
  f"Work Requirement '{name_or_id}' is not in a valid state"
127
- f" ('{work_requirement_summary.status}') for cancellation"
129
+ f" ('{work_requirement_summary.status}') to be finished"
128
130
  )
129
131
  continue
130
132
 
@@ -895,6 +895,7 @@ def permissions_table(
895
895
  headers = [
896
896
  "#",
897
897
  "Name",
898
+ "Scope",
898
899
  "Description",
899
900
  "Includes",
900
901
  ]
@@ -905,6 +906,7 @@ def permissions_table(
905
906
  [
906
907
  index + 1,
907
908
  permission.name,
909
+ permission.scope,
908
910
  permission.title,
909
911
  includes,
910
912
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yellowdog-python-examples
3
- Version: 8.1.0
3
+ Version: 8.1.2
4
4
  Summary: Python CLI commands using the YellowDog Python SDK
5
5
  Author-email: YellowDog Limited <support@yellowdog.co>
6
6
  License-Expression: Apache-2.0
@@ -26,7 +26,7 @@ Requires-Dist: requests
26
26
  Requires-Dist: rich==13.9.4
27
27
  Requires-Dist: tabulate>=0.9.0
28
28
  Requires-Dist: toml
29
- Requires-Dist: yellowdog-sdk>=11.3.0
29
+ Requires-Dist: yellowdog-sdk>=11.5.0
30
30
  Provides-Extra: jsonnet
31
31
  Requires-Dist: jsonnet; extra == "jsonnet"
32
32
  Provides-Extra: cloudwizard
@@ -5,7 +5,7 @@ requests
5
5
  rich==13.9.4
6
6
  tabulate>=0.9.0
7
7
  toml
8
- yellowdog-sdk>=11.3.0
8
+ yellowdog-sdk>=11.5.0
9
9
 
10
10
  [cloudwizard]
11
11
  boto3
@@ -1 +0,0 @@
1
- __version__ = "8.1.0"