Depend on the ultra conda package instead of the ultra submodule

ultra >=0.1.19 comes from prefix.dev/nandi-testing; build and serve use its
`ultra` CLI and the test runner imports ultra_tool.make_server. The old
pixi.lock is dropped until one can be generated against that channel.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011TQdaz3C1f3xEJM6PFzWE6
This commit is contained in:
Claude committed 2026-10-21 21:20:51 +00:00
1 parent 4665afb4cb
commit 0a9f4f5ec9
7 files changed
+15 -2005

No files matched your search

+4 -6
View File
@@ -1,18 +1,16 @@
#!/usr/bin/env python3
"""Serve web/ on a free port and run tests/e2e.cjs against it (`pixi run test`)."""
import importlib.util
import os
import subprocess
import sys
import threading
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
spec = importlib.util.spec_from_file_location("ultra_tool", os.path.join(ROOT, "ultra", "tools", "ultra.py"))
ultra = importlib.util.module_from_spec(spec)
spec.loader.exec_module(ultra)
from ultra_tool import make_server
srv = ultra.make_server(os.path.join(ROOT, "web"), 0, quiet=True)
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
srv = make_server(os.path.join(ROOT, "web"), 0, quiet=True)
threading.Thread(target=srv.serve_forever, daemon=True).start()
r = subprocess.run(["node", os.path.join(ROOT, "tests", "e2e.cjs")], cwd=ROOT,
env={**os.environ, "BASE": f"http://localhost:{srv.server_address[1]}"})