diff --git a/DESIGN.md b/DESIGN.md index 232d90c..5a1cbb9 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -146,7 +146,7 @@ user resubmit to an eligible worker. ``` setup.py (add ctrl package + entry point `cross-py-controller`) requirements.txt (add waitress; keep Flask/requests) -cross_py_builder/ (agent unchanged except new /progress endpoint) +agent/ (worker agent: build_agent.py, zeroconf_server.py) ctrl/ __init__.py app.py (Flask factory, routes, waitress runner) diff --git a/cross_py_builder/__init__.py b/agent/__init__.py similarity index 100% rename from cross_py_builder/__init__.py rename to agent/__init__.py diff --git a/cross_py_builder/build_agent.py b/agent/build_agent.py similarity index 99% rename from cross_py_builder/build_agent.py rename to agent/build_agent.py index c109c21..762d415 100755 --- a/cross_py_builder/build_agent.py +++ b/agent/build_agent.py @@ -19,7 +19,7 @@ import uuid import platform from .zeroconf_server import ZeroconfServer -APP_NAME = "cross_py_builder" +APP_NAME = "agent" build_agent_version = "0.1.34" app_port = 9001 diff --git a/cross_py_builder/zeroconf_server.py b/agent/zeroconf_server.py similarity index 100% rename from cross_py_builder/zeroconf_server.py rename to agent/zeroconf_server.py diff --git a/setup.py b/setup.py index 148ea95..76721b6 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( install_requires=open("requirements.txt").read().splitlines(), entry_points={ "console_scripts": [ - "cross-py-agent=cross_py_builder.build_agent:main", + "cross-py-agent=agent.build_agent:main", "cross-py-controller=ctrl.app:main", ], },