runnable 0.28.5__tar.gz → 0.28.7__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. {runnable-0.28.5 → runnable-0.28.7}/PKG-INFO +1 -1
  2. {runnable-0.28.5 → runnable-0.28.7}/pyproject.toml +1 -1
  3. {runnable-0.28.5 → runnable-0.28.7}/runnable/parameters.py +0 -3
  4. {runnable-0.28.5 → runnable-0.28.7}/runnable/sdk.py +11 -1
  5. {runnable-0.28.5 → runnable-0.28.7}/.gitignore +0 -0
  6. {runnable-0.28.5 → runnable-0.28.7}/LICENSE +0 -0
  7. {runnable-0.28.5 → runnable-0.28.7}/README.md +0 -0
  8. {runnable-0.28.5 → runnable-0.28.7}/extensions/README.md +0 -0
  9. {runnable-0.28.5 → runnable-0.28.7}/extensions/__init__.py +0 -0
  10. {runnable-0.28.5 → runnable-0.28.7}/extensions/catalog/README.md +0 -0
  11. {runnable-0.28.5 → runnable-0.28.7}/extensions/catalog/any_path.py +0 -0
  12. {runnable-0.28.5 → runnable-0.28.7}/extensions/catalog/file_system.py +0 -0
  13. {runnable-0.28.5 → runnable-0.28.7}/extensions/catalog/minio.py +0 -0
  14. {runnable-0.28.5 → runnable-0.28.7}/extensions/catalog/pyproject.toml +0 -0
  15. {runnable-0.28.5 → runnable-0.28.7}/extensions/catalog/s3.py +0 -0
  16. {runnable-0.28.5 → runnable-0.28.7}/extensions/job_executor/README.md +0 -0
  17. {runnable-0.28.5 → runnable-0.28.7}/extensions/job_executor/__init__.py +0 -0
  18. {runnable-0.28.5 → runnable-0.28.7}/extensions/job_executor/k8s.py +0 -0
  19. {runnable-0.28.5 → runnable-0.28.7}/extensions/job_executor/k8s_job_spec.yaml +0 -0
  20. {runnable-0.28.5 → runnable-0.28.7}/extensions/job_executor/local.py +0 -0
  21. {runnable-0.28.5 → runnable-0.28.7}/extensions/job_executor/local_container.py +0 -0
  22. {runnable-0.28.5 → runnable-0.28.7}/extensions/job_executor/pyproject.toml +0 -0
  23. {runnable-0.28.5 → runnable-0.28.7}/extensions/nodes/README.md +0 -0
  24. {runnable-0.28.5 → runnable-0.28.7}/extensions/nodes/nodes.py +0 -0
  25. {runnable-0.28.5 → runnable-0.28.7}/extensions/nodes/pyproject.toml +0 -0
  26. {runnable-0.28.5 → runnable-0.28.7}/extensions/pipeline_executor/README.md +0 -0
  27. {runnable-0.28.5 → runnable-0.28.7}/extensions/pipeline_executor/__init__.py +0 -0
  28. {runnable-0.28.5 → runnable-0.28.7}/extensions/pipeline_executor/argo.py +0 -0
  29. {runnable-0.28.5 → runnable-0.28.7}/extensions/pipeline_executor/local.py +0 -0
  30. {runnable-0.28.5 → runnable-0.28.7}/extensions/pipeline_executor/local_container.py +0 -0
  31. {runnable-0.28.5 → runnable-0.28.7}/extensions/pipeline_executor/mocked.py +0 -0
  32. {runnable-0.28.5 → runnable-0.28.7}/extensions/pipeline_executor/pyproject.toml +0 -0
  33. {runnable-0.28.5 → runnable-0.28.7}/extensions/pipeline_executor/retry.py +0 -0
  34. {runnable-0.28.5 → runnable-0.28.7}/extensions/run_log_store/README.md +0 -0
  35. {runnable-0.28.5 → runnable-0.28.7}/extensions/run_log_store/__init__.py +0 -0
  36. {runnable-0.28.5 → runnable-0.28.7}/extensions/run_log_store/any_path.py +0 -0
  37. {runnable-0.28.5 → runnable-0.28.7}/extensions/run_log_store/chunked_fs.py +0 -0
  38. {runnable-0.28.5 → runnable-0.28.7}/extensions/run_log_store/chunked_minio.py +0 -0
  39. {runnable-0.28.5 → runnable-0.28.7}/extensions/run_log_store/db/implementation_FF.py +0 -0
  40. {runnable-0.28.5 → runnable-0.28.7}/extensions/run_log_store/db/integration_FF.py +0 -0
  41. {runnable-0.28.5 → runnable-0.28.7}/extensions/run_log_store/file_system.py +0 -0
  42. {runnable-0.28.5 → runnable-0.28.7}/extensions/run_log_store/generic_chunked.py +0 -0
  43. {runnable-0.28.5 → runnable-0.28.7}/extensions/run_log_store/minio.py +0 -0
  44. {runnable-0.28.5 → runnable-0.28.7}/extensions/run_log_store/pyproject.toml +0 -0
  45. {runnable-0.28.5 → runnable-0.28.7}/extensions/secrets/README.md +0 -0
  46. {runnable-0.28.5 → runnable-0.28.7}/extensions/secrets/dotenv.py +0 -0
  47. {runnable-0.28.5 → runnable-0.28.7}/extensions/secrets/pyproject.toml +0 -0
  48. {runnable-0.28.5 → runnable-0.28.7}/runnable/__init__.py +0 -0
  49. {runnable-0.28.5 → runnable-0.28.7}/runnable/catalog.py +0 -0
  50. {runnable-0.28.5 → runnable-0.28.7}/runnable/cli.py +0 -0
  51. {runnable-0.28.5 → runnable-0.28.7}/runnable/context.py +0 -0
  52. {runnable-0.28.5 → runnable-0.28.7}/runnable/datastore.py +0 -0
  53. {runnable-0.28.5 → runnable-0.28.7}/runnable/defaults.py +0 -0
  54. {runnable-0.28.5 → runnable-0.28.7}/runnable/entrypoints.py +0 -0
  55. {runnable-0.28.5 → runnable-0.28.7}/runnable/exceptions.py +0 -0
  56. {runnable-0.28.5 → runnable-0.28.7}/runnable/executor.py +0 -0
  57. {runnable-0.28.5 → runnable-0.28.7}/runnable/graph.py +0 -0
  58. {runnable-0.28.5 → runnable-0.28.7}/runnable/names.py +0 -0
  59. {runnable-0.28.5 → runnable-0.28.7}/runnable/nodes.py +0 -0
  60. {runnable-0.28.5 → runnable-0.28.7}/runnable/pickler.py +0 -0
  61. {runnable-0.28.5 → runnable-0.28.7}/runnable/secrets.py +0 -0
  62. {runnable-0.28.5 → runnable-0.28.7}/runnable/tasks.py +0 -0
  63. {runnable-0.28.5 → runnable-0.28.7}/runnable/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runnable
3
- Version: 0.28.5
3
+ Version: 0.28.7
4
4
  Summary: Add your description here
5
5
  Author-email: "Vammi, Vijay" <vijay.vammi@astrazeneca.com>
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "runnable"
3
- version = "0.28.5"
3
+ version = "0.28.7"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -114,9 +114,6 @@ def filter_arguments_for_func(
114
114
 
115
115
  bound_model = bind_args_for_pydantic_model(named_param, value.annotation)
116
116
  bound_args[name] = bound_model
117
- unassigned_params = unassigned_params.difference(
118
- bound_model.model_fields.keys()
119
- )
120
117
 
121
118
  elif value.annotation in [str, int, float, bool]:
122
119
  # Cast it if its a primitive type. Ensure the type matches the annotation.
@@ -824,12 +824,22 @@ class Pipeline(BaseModel):
824
824
 
825
825
  class BaseJob(BaseModel):
826
826
  catalog: Optional[Catalog] = Field(default=None, alias="catalog")
827
- overrides: Dict[str, Any] = Field(default_factory=dict, alias="overrides")
828
827
  returns: List[Union[str, TaskReturns]] = Field(
829
828
  default_factory=list, alias="returns"
830
829
  )
831
830
  secrets: List[str] = Field(default_factory=list)
832
831
 
832
+ @field_validator("catalog", mode="after")
833
+ @classmethod
834
+ def validate_catalog(cls, catalog: Optional[Catalog]) -> Optional[Catalog]:
835
+ if catalog is None:
836
+ return None
837
+
838
+ if catalog.get:
839
+ raise Exception("Catalog get is not supported for jobs")
840
+
841
+ return catalog
842
+
833
843
  def get_task(self) -> RunnableTask:
834
844
  raise NotImplementedError
835
845
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes