Skip to content

Commit

Permalink
remove unused files
Browse files Browse the repository at this point in the history
Signed-off-by: Achille Roussel <[email protected]>
  • Loading branch information
achille-roussel committed Jun 18, 2024
1 parent 672b1a1 commit fea85a8
Show file tree
Hide file tree
Showing 22 changed files with 4 additions and 959 deletions.
12 changes: 3 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@ dynamic = ["version"]
requires-python = ">= 3.8"
dependencies = [
"aiohttp >= 3.9.4",
"grpcio >= 1.60.0",
"protobuf >= 4.24.0",
"types-protobuf >= 4.24.0.20240129",
"grpc-stubs >= 1.53.0.5",
"http-message-signatures >= 0.5.0",
"tblib >= 3.0.0",
"typing_extensions >= 4.10"
]

[project.optional-dependencies]
fastapi = ["fastapi", "httpx"]
fastapi = ["fastapi"]
flask = ["flask"]
httpx = ["httpx"]
lambda = ["awslambdaric"]

dev = [
Expand Down Expand Up @@ -60,17 +59,12 @@ profile = "black"
src_paths = ["src"]

[tool.coverage.run]
omit = ["*_pb2_grpc.py", "*_pb2.py", "tests/*", "examples/*", "src/buf/*"]
omit = ["*_pb2.py", "tests/*", "examples/*", "src/buf/*"]

[tool.mypy]
exclude = [
'^src/buf',
'^tests/examples',
# mypy 1.10.0 reports false positives for these two files:
# src/dispatch/sdk/v1/function_pb2_grpc.py:74: error: Module has no attribute "experimental" [attr-defined]
# src/dispatch/sdk/v1/dispatch_pb2_grpc.py:80: error: Module has no attribute "experimental" [attr-defined]
'^src/dispatch/sdk/v1/function_pb2_grpc.py',
'^src/dispatch/sdk/v1/dispatch_pb2_grpc.py',
]

[tool.pytest.ini_options]
Expand Down
3 changes: 0 additions & 3 deletions src/buf/validate/expression_pb2_grpc.py

This file was deleted.

3 changes: 0 additions & 3 deletions src/buf/validate/priv/private_pb2_grpc.py

This file was deleted.

3 changes: 0 additions & 3 deletions src/buf/validate/validate_pb2_grpc.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/dispatch/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def _register(self, name: str, wrapped_func: PrimitiveFunction):
def batch(self) -> Batch:
"""Returns a Batch instance that can be used to build
a set of calls to dispatch."""
return self.client.batch()
return Batch(self.client)


_registries: Dict[str, Registry] = {}
Expand Down
3 changes: 0 additions & 3 deletions src/dispatch/sdk/python/v1/pickled_pb2_grpc.py

This file was deleted.

3 changes: 0 additions & 3 deletions src/dispatch/sdk/v1/call_pb2_grpc.py

This file was deleted.

94 changes: 0 additions & 94 deletions src/dispatch/sdk/v1/dispatch_pb2_grpc.py

This file was deleted.

3 changes: 0 additions & 3 deletions src/dispatch/sdk/v1/error_pb2_grpc.py

This file was deleted.

3 changes: 0 additions & 3 deletions src/dispatch/sdk/v1/exit_pb2_grpc.py

This file was deleted.

88 changes: 0 additions & 88 deletions src/dispatch/sdk/v1/function_pb2_grpc.py

This file was deleted.

3 changes: 0 additions & 3 deletions src/dispatch/sdk/v1/poll_pb2_grpc.py

This file was deleted.

3 changes: 0 additions & 3 deletions src/dispatch/sdk/v1/status_pb2_grpc.py

This file was deleted.

7 changes: 0 additions & 7 deletions src/dispatch/test/__init__.py → src/dispatch/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,7 @@
STATUS_TLS_ERROR,
)

from .client import EndpointClient
from .server import DispatchServer
from .service import DispatchService

__all__ = [
"EndpointClient",
"DispatchServer",
"DispatchService",
"function",
"method",
"main",
Expand Down
Loading

0 comments on commit fea85a8

Please sign in to comment.