Skip to content

Commit fea85a8

Browse files
remove unused files
Signed-off-by: Achille Roussel <[email protected]>
1 parent 672b1a1 commit fea85a8

22 files changed

+4
-959
lines changed

pyproject.toml

+3-9
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@ dynamic = ["version"]
1010
requires-python = ">= 3.8"
1111
dependencies = [
1212
"aiohttp >= 3.9.4",
13-
"grpcio >= 1.60.0",
1413
"protobuf >= 4.24.0",
1514
"types-protobuf >= 4.24.0.20240129",
16-
"grpc-stubs >= 1.53.0.5",
1715
"http-message-signatures >= 0.5.0",
1816
"tblib >= 3.0.0",
1917
"typing_extensions >= 4.10"
2018
]
2119

2220
[project.optional-dependencies]
23-
fastapi = ["fastapi", "httpx"]
21+
fastapi = ["fastapi"]
2422
flask = ["flask"]
23+
httpx = ["httpx"]
2524
lambda = ["awslambdaric"]
2625

2726
dev = [
@@ -60,17 +59,12 @@ profile = "black"
6059
src_paths = ["src"]
6160

6261
[tool.coverage.run]
63-
omit = ["*_pb2_grpc.py", "*_pb2.py", "tests/*", "examples/*", "src/buf/*"]
62+
omit = ["*_pb2.py", "tests/*", "examples/*", "src/buf/*"]
6463

6564
[tool.mypy]
6665
exclude = [
6766
'^src/buf',
6867
'^tests/examples',
69-
# mypy 1.10.0 reports false positives for these two files:
70-
# src/dispatch/sdk/v1/function_pb2_grpc.py:74: error: Module has no attribute "experimental" [attr-defined]
71-
# src/dispatch/sdk/v1/dispatch_pb2_grpc.py:80: error: Module has no attribute "experimental" [attr-defined]
72-
'^src/dispatch/sdk/v1/function_pb2_grpc.py',
73-
'^src/dispatch/sdk/v1/dispatch_pb2_grpc.py',
7468
]
7569

7670
[tool.pytest.ini_options]

src/buf/validate/expression_pb2_grpc.py

-3
This file was deleted.

src/buf/validate/priv/private_pb2_grpc.py

-3
This file was deleted.

src/buf/validate/validate_pb2_grpc.py

-3
This file was deleted.

src/dispatch/function.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def _register(self, name: str, wrapped_func: PrimitiveFunction):
333333
def batch(self) -> Batch:
334334
"""Returns a Batch instance that can be used to build
335335
a set of calls to dispatch."""
336-
return self.client.batch()
336+
return Batch(self.client)
337337

338338

339339
_registries: Dict[str, Registry] = {}

src/dispatch/sdk/python/v1/pickled_pb2_grpc.py

-3
This file was deleted.

src/dispatch/sdk/v1/call_pb2_grpc.py

-3
This file was deleted.

src/dispatch/sdk/v1/dispatch_pb2_grpc.py

-94
This file was deleted.

src/dispatch/sdk/v1/error_pb2_grpc.py

-3
This file was deleted.

src/dispatch/sdk/v1/exit_pb2_grpc.py

-3
This file was deleted.

src/dispatch/sdk/v1/function_pb2_grpc.py

-88
This file was deleted.

src/dispatch/sdk/v1/poll_pb2_grpc.py

-3
This file was deleted.

src/dispatch/sdk/v1/status_pb2_grpc.py

-3
This file was deleted.

src/dispatch/test/__init__.py src/dispatch/test.py

-7
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,7 @@
4040
STATUS_TLS_ERROR,
4141
)
4242

43-
from .client import EndpointClient
44-
from .server import DispatchServer
45-
from .service import DispatchService
46-
4743
__all__ = [
48-
"EndpointClient",
49-
"DispatchServer",
50-
"DispatchService",
5144
"function",
5245
"method",
5346
"main",

0 commit comments

Comments
 (0)