Keep B2 client fixes and move VPS implementation to its standalone repository

This commit is contained in:
DCCONSTRUCTIONS
2026-09-29 12:41:21 +03:00
parent 03d44d0fb1
commit 6dd652f71e
85 changed files with 2201 additions and 9299 deletions
+2 -9
View File
@@ -1,6 +1,5 @@
"""Core/VPS ownership survives lost HTTP, restarts and per-attempt timeouts."""
import ast
import json
import time
from pathlib import Path
@@ -16,14 +15,8 @@ from k1link.fleet.independent_equipment import EquipmentStore
def shipped_version():
source = Path(__file__).resolve().parents[1] / "apps/vps-host/ndc_vps/__init__.py"
module = ast.parse(source.read_text())
return next(
ast.literal_eval(n.value)
for n in module.body
if isinstance(n, ast.Assign)
and any(isinstance(t, ast.Name) and t.id == "VERSION" for t in n.targets)
)
source = Path(__file__).resolve().parent / "fixtures/arnavi_vps/client-v1.json"
return json.loads(source.read_text())["server_version"]
@pytest.fixture(params=sorted({"0.1.32", shipped_version()}))