Skip to content

Commit

Permalink
hotfix(python client): fix stubs module not included in package
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinkys committed Nov 13, 2024
1 parent 277d0d8 commit fee994b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ all:
generate_grpc_stubs:
@echo "Generating gRPC stubs..."
@python -m grpc_tools.protoc -I./protos \
--python_out=./clients/python/stubs \
--grpc_python_out=./clients/python/stubs \
--python_out=./clients/python/phantasmpy/stubs \
--grpc_python_out=./clients/python/phantasmpy/stubs \
./protos/*.proto

@echo "$(GREEN)gRPC stubs generated successfully!$(RESET)"
4 changes: 2 additions & 2 deletions clients/python/phantasmpy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import json
from typing import Any, Dict
from google.protobuf.empty_pb2 import Empty
from stubs import receiver_pb2 as protos
from stubs.receiver_pb2_grpc import ReceiverStub
from .stubs import receiver_pb2 as protos
from .stubs.receiver_pb2_grpc import ReceiverStub
from .types import HeartbeatResponse, GetApprovalResponse


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion clients/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "phantasmpy"
version = "0.1.1"
version = "0.1.2"
description = "A Python client to interact with Phantasm's receiver server."
license = "MIT"
repository = "https://github.com/phantasmlabs/phantasm"
Expand Down

0 comments on commit fee994b

Please sign in to comment.