From f42036f6324fda770eaa95acd311e778be8eeab4 Mon Sep 17 00:00:00 2001 From: Alexander Streed Date: Tue, 27 Aug 2024 18:20:19 -0500 Subject: [PATCH] Remove unused `Manifest` class (#15111) --- src/prefect/__init__.py | 3 --- src/prefect/main.py | 2 -- src/prefect/manifests.py | 21 --------------------- 3 files changed, 26 deletions(-) delete mode 100644 src/prefect/manifests.py diff --git a/src/prefect/__init__.py b/src/prefect/__init__.py index 4fd7b962bc10..dad5e2ecf45e 100644 --- a/src/prefect/__init__.py +++ b/src/prefect/__init__.py @@ -31,7 +31,6 @@ Flow, get_client, get_run_logger, - Manifest, State, tags, task, @@ -60,7 +59,6 @@ "Flow": (__spec__.parent, ".main"), "get_client": (__spec__.parent, ".main"), "get_run_logger": (__spec__.parent, ".main"), - "Manifest": (__spec__.parent, ".main"), "State": (__spec__.parent, ".main"), "tags": (__spec__.parent, ".main"), "task": (__spec__.parent, ".main"), @@ -81,7 +79,6 @@ "Flow", "get_client", "get_run_logger", - "Manifest", "State", "tags", "task", diff --git a/src/prefect/main.py b/src/prefect/main.py index 42b662c4e352..afbba1334ce2 100644 --- a/src/prefect/main.py +++ b/src/prefect/main.py @@ -6,7 +6,6 @@ from prefect.transactions import Transaction from prefect.tasks import task, Task from prefect.context import tags -from prefect.manifests import Manifest from prefect.utilities.annotations import unmapped, allow_failure from prefect.results import BaseResult from prefect.flow_runs import pause_flow_run, resume_flow_run, suspend_flow_run @@ -55,7 +54,6 @@ "Flow", "get_client", "get_run_logger", - "Manifest", "State", "tags", "task", diff --git a/src/prefect/manifests.py b/src/prefect/manifests.py deleted file mode 100644 index 89cb847c5d01..000000000000 --- a/src/prefect/manifests.py +++ /dev/null @@ -1,21 +0,0 @@ -""" -Manifests are portable descriptions of one or more workflows within a given directory structure. - -They are the foundational building blocks for defining Flow Deployments. -""" - -from pydantic import BaseModel, Field - -from prefect.utilities.callables import ParameterSchema - - -class Manifest(BaseModel): - """A JSON representation of a flow.""" - - flow_name: str = Field(default=..., description="The name of the flow.") - import_path: str = Field( - default=..., description="The relative import path for the flow." - ) - parameter_openapi_schema: ParameterSchema = Field( - default=..., description="The OpenAPI schema of the flow's parameters." - )