workflow.core 1.11.3__tar.gz → 1.11.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.
Files changed (60) hide show
  1. {workflow_core-1.11.3 → workflow_core-1.11.6}/PKG-INFO +2 -3
  2. {workflow_core-1.11.3 → workflow_core-1.11.6}/pyproject.toml +1 -1
  3. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/daemons/audit.py +6 -1
  4. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/lifecycle/configure.py +23 -10
  5. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/workspaces/chimefrb.yml +3 -4
  6. {workflow_core-1.11.3 → workflow_core-1.11.6}/README.md +0 -0
  7. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/__init__.py +0 -0
  8. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/cli/__init__.py +0 -0
  9. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/cli/buckets.py +0 -0
  10. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/cli/configs.py +0 -0
  11. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/cli/main.py +0 -0
  12. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/cli/pipelines.py +0 -0
  13. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/cli/results.py +0 -0
  14. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/cli/run.py +0 -0
  15. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/cli/schedules.py +0 -0
  16. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/cli/workspace.py +0 -0
  17. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/daemons/__init__.py +0 -0
  18. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/daemons/transfer.py +0 -0
  19. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/definitions/__init__.py +0 -0
  20. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/definitions/config.py +0 -0
  21. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/definitions/jsonschema.md +0 -0
  22. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/definitions/notify.py +0 -0
  23. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/definitions/work.py +0 -0
  24. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/definitions/workspace.py +0 -0
  25. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/examples/autocomplete.py +0 -0
  26. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/examples/function.py +0 -0
  27. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/examples/sample.svg +0 -0
  28. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/examples/sample.workflow.yml +0 -0
  29. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/exceptions.py +0 -0
  30. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/helpers/__init__.py +0 -0
  31. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/helpers/date.py +0 -0
  32. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/http/__init__.py +0 -0
  33. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/http/buckets.py +0 -0
  34. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/http/client.py +0 -0
  35. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/http/configs.py +0 -0
  36. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/http/context.py +0 -0
  37. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/http/pipelines.py +0 -0
  38. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/http/results.py +0 -0
  39. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/http/schedules.py +0 -0
  40. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/lifecycle/__init__.py +0 -0
  41. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/lifecycle/archive/__init__.py +0 -0
  42. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/lifecycle/archive/http.py +0 -0
  43. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/lifecycle/archive/posix.py +0 -0
  44. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/lifecycle/archive/s3.py +0 -0
  45. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/lifecycle/attempt.py +0 -0
  46. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/lifecycle/execute.py +0 -0
  47. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/utils/__init__.py +0 -0
  48. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/utils/decorators.py +0 -0
  49. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/utils/format.py +0 -0
  50. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/utils/logger.py +0 -0
  51. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/utils/prompt.py +0 -0
  52. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/utils/read.py +0 -0
  53. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/utils/renderers.py +0 -0
  54. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/utils/tmate.sh +0 -0
  55. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/utils/validate.py +0 -0
  56. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/utils/variables.py +0 -0
  57. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/utils/write.py +0 -0
  58. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/workspaces/__init__.py +0 -0
  59. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/workspaces/development.yml +0 -0
  60. {workflow_core-1.11.3 → workflow_core-1.11.6}/workflow/workspaces/site-dev.yml +0 -0
@@ -1,8 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: workflow.core
3
- Version: 1.11.3
3
+ Version: 1.11.6
4
4
  Summary: Workflow Core
5
- Home-page: https://github.com/chimefrb/workflow
6
5
  License: MIT
7
6
  Author: Shiny Brar
8
7
  Author-email: charanjotbrar@gmail.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "workflow.core"
3
- version = "1.11.3"
3
+ version = "1.11.6"
4
4
  description = "Workflow Core"
5
5
  authors = ["Shiny Brar <charanjotbrar@gmail.com>"]
6
6
  license = "MIT"
@@ -5,6 +5,7 @@ from typing import Any, Dict, Union
5
5
 
6
6
  import click
7
7
  from click_params import JSON, URL, FirstOf
8
+ from requests import HTTPError
8
9
 
9
10
  from workflow import DEFAULT_WORKSPACE_PATH
10
11
  from workflow.http.context import HTTPContext
@@ -69,6 +70,10 @@ def audit(
69
70
  if test_mode:
70
71
  return http.buckets.audit()
71
72
  while True:
72
- response = http.buckets.audit()
73
+ try:
74
+ response = http.buckets.audit()
75
+ except HTTPError as error:
76
+ logger.error(error)
77
+ response = {}
73
78
  logger.info(response)
74
79
  time.sleep(sleep)
@@ -110,33 +110,46 @@ def arguments(func: Callable[..., Any], work: Work) -> List[str]:
110
110
  )
111
111
 
112
112
  if parameter_value_in_work:
113
- if isinstance(parameter_value_in_work, list):
114
- parameter_value_in_work = " ".join(parameter_value_in_work)
115
-
116
113
  if isinstance(parameter, click.Argument):
117
114
  # If argument, then the parameter is purely positional without a key
118
- args.append(f"{parameter_value_in_work}")
115
+ if isinstance(parameter_value_in_work, list):
116
+ for value in parameter_value_in_work:
117
+ args.append(f"{value}")
118
+ else:
119
+ args.append(f"{parameter_value_in_work}")
119
120
  elif isinstance(parameter, click.Option):
120
121
  if hasattr(parameter, "is_flag") and parameter.is_flag:
121
122
  # If is_flag=True,
122
123
  # then the parameter is a flag and doesn't have a value
123
124
  args.append(f"{parameter_name_in_cli}")
124
125
  else:
125
- if len(parameter_name_in_cli) == 2:
126
+ space_or_equals = ""
127
+
128
+ if len(parameter_name_in_cli) <= 2:
126
129
  # Short options
127
130
  # (often denoted by a single hyphen and a single letter like -r)
128
131
  # are commonly written with a space
129
132
  # between the option and its value
130
- args.append(
131
- f"{parameter_name_in_cli} {parameter_value_in_work}"
132
- )
133
- elif len(parameter_name_in_cli) > 2:
133
+ space_or_equals = " "
134
+ else:
134
135
  # Long options
135
136
  # (often denoted by two hyphens and a word like --recursive)
136
137
  # are commonly written with an equals sign
137
138
  # between the option and its value
139
+ space_or_equals = "="
140
+
141
+ if isinstance(parameter_value_in_work, list):
142
+ if hasattr(parameter, "multiple") and parameter.multiple:
143
+ for value in parameter_value_in_work:
144
+ args.append(
145
+ f"{parameter_name_in_cli}{space_or_equals}{value}"
146
+ )
147
+ elif hasattr(parameter, "nargs") and parameter.nargs:
148
+ values = " ".join(parameter_value_in_work)
149
+ args.append(f"{parameter_name_in_cli} {values}")
150
+ else:
138
151
  args.append(
139
- f"{parameter_name_in_cli}={parameter_value_in_work}"
152
+ f"{parameter_name_in_cli}{space_or_equals}{parameter_value_in_work}" # noqa
140
153
  )
141
154
 
142
155
  return args
@@ -85,11 +85,10 @@ config:
85
85
  archive:
86
86
  results: true
87
87
  plots:
88
- methods: ["move", "delete"] # Defines the methods enabled by the workspace admin
89
- storage: "s3"
90
- permissions: List[Linux Groups]?
88
+ methods: ["bypass", "copy", "move", "delete"]
89
+ storage: "posix"
91
90
  products:
92
- methods: ["move", "delete"] # Can also be copy or delete
91
+ methods: ["bypass", "copy", "move", "delete"]
93
92
  storage: "posix"
94
93
  permissions:
95
94
  posix:
File without changes