build: integrate workflow engine repository
This commit is contained in:
@@ -58,7 +58,13 @@ from govoplan_datasources.backend.db.models import (
|
||||
|
||||
def main() -> int:
|
||||
registry = build_platform_registry(
|
||||
("connectors", "datasources", "dataflow", "workflow")
|
||||
(
|
||||
"connectors",
|
||||
"datasources",
|
||||
"dataflow",
|
||||
"workflow_engine",
|
||||
"workflow",
|
||||
)
|
||||
)
|
||||
registry.configure_capability_context(
|
||||
ModuleContext(registry=registry, settings=object())
|
||||
|
||||
@@ -76,6 +76,7 @@ PY
|
||||
"$PYTHON" -m unittest discover -s /mnt/DATA/git/govoplan-connectors/tests
|
||||
"$PYTHON" -m unittest discover -s /mnt/DATA/git/govoplan-datasources/tests
|
||||
"$PYTHON" -m unittest discover -s /mnt/DATA/git/govoplan-dataflow/tests
|
||||
"$PYTHON" -m unittest discover -s /mnt/DATA/git/govoplan-workflow-engine/tests
|
||||
"$PYTHON" -m unittest discover -s /mnt/DATA/git/govoplan-workflow/tests
|
||||
"$PYTHON" -m unittest discover -s /mnt/DATA/git/govoplan-views/tests
|
||||
"$PYTHON" -m unittest discover -s /mnt/DATA/git/govoplan-dashboard/tests
|
||||
|
||||
@@ -109,9 +109,36 @@ class AllowlistedImport:
|
||||
reason: str
|
||||
|
||||
|
||||
# Transitional exceptions. This should remain empty; add entries only with a
|
||||
# dated removal plan and a capability/API contract issue.
|
||||
ALLOWLIST: tuple[AllowlistedImport, ...] = ()
|
||||
# Transitional exceptions. This should remain empty outside explicit,
|
||||
# time-bounded compatibility facades with a tracked removal issue.
|
||||
_WORKFLOW_ENGINE_COMPATIBILITY_FACADES = (
|
||||
"backend/bpmn.py",
|
||||
"backend/bpmn_adapters.py",
|
||||
"backend/bpmn_graph.py",
|
||||
"backend/db/__init__.py",
|
||||
"backend/db/models.py",
|
||||
"backend/governance.py",
|
||||
"backend/instance_service.py",
|
||||
"backend/manifest.py",
|
||||
"backend/node_library.py",
|
||||
"backend/router.py",
|
||||
"backend/runtime.py",
|
||||
"backend/schemas.py",
|
||||
"backend/service.py",
|
||||
"backend/validation.py",
|
||||
)
|
||||
ALLOWLIST: tuple[AllowlistedImport, ...] = tuple(
|
||||
AllowlistedImport(
|
||||
owner="govoplan-workflow",
|
||||
relative_path=relative_path,
|
||||
imported_owner="govoplan-workflow-engine",
|
||||
reason=(
|
||||
"One-release Engine extraction facade; remove for 0.2 under "
|
||||
"govoplan-workflow#14 and govoplan-core#40."
|
||||
),
|
||||
)
|
||||
for relative_path in _WORKFLOW_ENGINE_COMPATIBILITY_FACADES
|
||||
)
|
||||
ALLOWLIST_KEYS = {(item.owner, item.relative_path, item.imported_owner) for item in ALLOWLIST}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user