From 9441287e2a4fba526c93ea76ec9f7f8c91ef13ac Mon Sep 17 00:00:00 2001 From: Kye Date: Thu, 14 Sep 2023 16:42:20 -0400 Subject: [PATCH] re-architecture Former-commit-id: 77015892269d474e0aa4eb3cad2a9d17288ba3f9 --- playground/workflow.py | 2 +- swarms/orchestrator/__init__.py | 0 swarms/{workflows/main.py => structs/workflow.py} | 0 swarms/{orchestrator => swarms}/autoscaler.py | 0 swarms/{orchestrator => swarms}/orchestrate.py | 0 swarms/workflows/__init__.py | 0 tests/orchestrate.py | 2 +- 7 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 swarms/orchestrator/__init__.py rename swarms/{workflows/main.py => structs/workflow.py} (100%) rename swarms/{orchestrator => swarms}/autoscaler.py (100%) rename swarms/{orchestrator => swarms}/orchestrate.py (100%) delete mode 100644 swarms/workflows/__init__.py diff --git a/playground/workflow.py b/playground/workflow.py index 54fdb1f3..fc03f38a 100644 --- a/playground/workflow.py +++ b/playground/workflow.py @@ -1,4 +1,4 @@ -from swarms.workflows.main import Workflow +from swarms.structs.workflow import Workflow workflow = Workflow() diff --git a/swarms/orchestrator/__init__.py b/swarms/orchestrator/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/swarms/workflows/main.py b/swarms/structs/workflow.py similarity index 100% rename from swarms/workflows/main.py rename to swarms/structs/workflow.py diff --git a/swarms/orchestrator/autoscaler.py b/swarms/swarms/autoscaler.py similarity index 100% rename from swarms/orchestrator/autoscaler.py rename to swarms/swarms/autoscaler.py diff --git a/swarms/orchestrator/orchestrate.py b/swarms/swarms/orchestrate.py similarity index 100% rename from swarms/orchestrator/orchestrate.py rename to swarms/swarms/orchestrate.py diff --git a/swarms/workflows/__init__.py b/swarms/workflows/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/orchestrate.py b/tests/orchestrate.py index fadc85ab..18461269 100644 --- a/tests/orchestrate.py +++ b/tests/orchestrate.py @@ -1,6 +1,6 @@ import pytest from unittest.mock import Mock -from swarms.orchestrator.orchestrate import Orchestrator +from swarms.swarms.orchestrate import Orchestrator @pytest.fixture