mirror of
https://github.com/blw1138/cross-py-builder.git
synced 2026-09-07 21:41:09 -05:00
Rename worker package cross_py_builder -> agent
The nested cross_py_builder package only contains the worker agent. Rename it to agent/ to match its role and distinguish it from the ctrl package and the PyPI distribution name. Internal imports are relative, so build_agent.py and zeroconf_server.py are unaffected except for the cosmetic APP_NAME banner.
This commit is contained in:
@@ -146,7 +146,7 @@ user resubmit to an eligible worker.
|
|||||||
```
|
```
|
||||||
setup.py (add ctrl package + entry point `cross-py-controller`)
|
setup.py (add ctrl package + entry point `cross-py-controller`)
|
||||||
requirements.txt (add waitress; keep Flask/requests)
|
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/
|
ctrl/
|
||||||
__init__.py
|
__init__.py
|
||||||
app.py (Flask factory, routes, waitress runner)
|
app.py (Flask factory, routes, waitress runner)
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import uuid
|
|||||||
import platform
|
import platform
|
||||||
from .zeroconf_server import ZeroconfServer
|
from .zeroconf_server import ZeroconfServer
|
||||||
|
|
||||||
APP_NAME = "cross_py_builder"
|
APP_NAME = "agent"
|
||||||
build_agent_version = "0.1.34"
|
build_agent_version = "0.1.34"
|
||||||
app_port = 9001
|
app_port = 9001
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ setup(
|
|||||||
install_requires=open("requirements.txt").read().splitlines(),
|
install_requires=open("requirements.txt").read().splitlines(),
|
||||||
entry_points={
|
entry_points={
|
||||||
"console_scripts": [
|
"console_scripts": [
|
||||||
"cross-py-agent=cross_py_builder.build_agent:main",
|
"cross-py-agent=agent.build_agent:main",
|
||||||
"cross-py-controller=ctrl.app:main",
|
"cross-py-controller=ctrl.app:main",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user