From 82ce18ef9f45f817505b12e24c958beda45465f0 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sun, 9 Aug 2026 22:28:47 +0200 Subject: fix: complete pyproject.toml deps + graceful QUIC fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit meshbay-node/pyproject.toml: add aioquic>=1.0 (was commented 'v2'), websockets>=12.0 (revocation push). Both are production code since Phase 5. meshbay-hub/pyproject.toml: add aiosqlite (tests without PostgreSQL), slowapi (rate limiting), websockets (revocation push), PyJWT (explicit). transport/__init__.py: QUIC imports wrapped in try/except — node works without aioquic (TCP+TLS + HTTP fallback). QUIC_AVAILABLE flag exported. QUICKSTART.md: replace manual pip list with 'pip install -e' that pulls all deps from pyproject.toml automatically. Add dependency table. CLAUDE.md: clarify that all deps go in pyproject.toml, not manual installs. 81/81 tests. Co-Authored-By: Claude Sonnet 4.6 (1M context) --- .../src/meshbay_node/transport/__init__.py | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'packages/meshbay-node/src/meshbay_node/transport/__init__.py') diff --git a/packages/meshbay-node/src/meshbay_node/transport/__init__.py b/packages/meshbay-node/src/meshbay_node/transport/__init__.py index 8b49b22..b3144a6 100644 --- a/packages/meshbay-node/src/meshbay_node/transport/__init__.py +++ b/packages/meshbay-node/src/meshbay_node/transport/__init__.py @@ -2,8 +2,19 @@ from .server import ChunkServer from .client import ChunkClient from .http_server import create_http_app -from .quic_server import QuicChunkServer -from .quic_client import QuicChunkClient -__all__ = ["ChunkServer", "ChunkClient", "create_http_app", - "QuicChunkServer", "QuicChunkClient"] +# QUIC transport (MNP v2) — requires aioquic>=1.0 +# Falls back gracefully if not installed; node still works via TCP+TLS and HTTP. +try: + from .quic_server import QuicChunkServer + from .quic_client import QuicChunkClient + QUIC_AVAILABLE = True +except ImportError: + QuicChunkServer = None # type: ignore[assignment,misc] + QuicChunkClient = None # type: ignore[assignment,misc] + QUIC_AVAILABLE = False + +__all__ = [ + "ChunkServer", "ChunkClient", "create_http_app", + "QuicChunkServer", "QuicChunkClient", "QUIC_AVAILABLE", +] -- cgit v1.2.3