From 9c48a0532bf4a557ad987c44026ef8a2f14db006 Mon Sep 17 00:00:00 2001 From: Jye Cusch Date: Thu, 6 Apr 2023 10:00:33 +1000 Subject: [PATCH 1/2] fix: ensure the proto/nitric folder is a module --- makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile b/makefile index b56368e..e349a19 100644 --- a/makefile +++ b/makefile @@ -30,6 +30,9 @@ grpc-client: install download @echo Generating Proto Sources @echo $(OUTPUT) @mkdir -p $(OUTPUT) + # protoc doesn't create the __init__.py for the nitric module, so we need to create it. + @mkdir -p $(OUTPUT)/nitric/ + @touch $(OUTPUT)/nitric/__init.py__ @python3 -m grpc_tools.protoc -I $(CONTRACTS) --python_betterproto_out=$(OUTPUT) ./contracts/proto/*/*/*.proto From 9709e8d55195867a53c41776fc02447a78d8d47c Mon Sep 17 00:00:00 2001 From: Jye Cusch Date: Thu, 6 Apr 2023 10:12:21 +1000 Subject: [PATCH 2/2] fix: add missing init file --- .github/workflows/test.yaml | 2 +- nitric/proto/nitric/__init.py__ | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 nitric/proto/nitric/__init.py__ diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 21d9f97..e4e8d8e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -7,7 +7,7 @@ on: pull_request: jobs: - build: + test: runs-on: ubuntu-latest strategy: matrix: diff --git a/nitric/proto/nitric/__init.py__ b/nitric/proto/nitric/__init.py__ new file mode 100644 index 0000000..e69de29