From 2349912efb5c9b9b68ef35bdfe3eb1396762ceb4 Mon Sep 17 00:00:00 2001 From: Eduardo Rios Date: Thu, 1 Oct 2026 13:31:00 -0300 Subject: [PATCH] SIENTIAPDE-1973: fix(deps): make the gateway requirements installable from the cluster index Workers install only from the cluster package index (install-entrypoint.sh: pip install --index-url $PYPI_SERVER). The 2.0.0-rc1 deploy never became Ready because two new requirements are not mirrored there: - grpcio-tools: only needed to regenerate ingestor/proto/*_pb2*.py, which are committed. Moved to requirements-dev.txt (nothing imports grpc_tools). - nats-py: needed at runtime; mirrored by library-distribution-controller#92. Also declares protobuf>=7.35 explicitly: the committed stubs were generated with protobuf 7.35.0 and validate the runtime version on import; until now it only arrived transitively. The mirror carries 7.36.x. Co-Authored-By: Claude Opus 5.5 --- requirements-dev.txt | 7 ++++++- requirements.txt | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 56ab376..cbd2882 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -16,4 +16,9 @@ pytest-asyncio>=0.21.0 # Async test support (already in main requirements) # Development Tools ipython>=8.12.0 # Enhanced Python shell -ipdb>=0.13.13 # IPython debugger \ No newline at end of file +ipdb>=0.13.13 # IPython debugger + +# gRPC code generation (regenerate ingestor/proto/*_pb2*.py) — not needed +# at runtime: the generated stubs are committed. Kept out of requirements.txt +# because workers install only from the cluster package index. +grpcio-tools>=1.60 diff --git a/requirements.txt b/requirements.txt index 36ddd06..b6d8b89 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,6 @@ prometheus_client pymongo nats-py>=2.6 grpcio>=1.60 -grpcio-tools>=1.60 \ No newline at end of file +# Runtime of the committed gRPC stubs: ingestor/proto/opc_gateway_pb2.py was +# generated with protobuf 7.35.0 and validates the runtime version on import. +protobuf>=7.35