Skip to content

Commit

Permalink
Merge pull request #97 from stealthrocket/dispatch-proto
Browse files Browse the repository at this point in the history
rename dispatch-sdk-protobuf to dispatch-proto
  • Loading branch information
achille-roussel authored Mar 1, 2024
2 parents 005ecbf + 7c95e97 commit a5aeeb3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,24 @@ test: typecheck unittest
.proto:
mkdir -p $@

.proto/dispatch-sdk: .proto
buf export buf.build/stealthrocket/dispatch-sdk --output=.proto/dispatch-sdk
.proto/dispatch-proto: .proto
buf export buf.build/stealthrocket/dispatch-proto --output=.proto/dispatch-proto

update-proto:
$(MAKE) clean
find . -type f -name '*_pb2*.py*' -exec rm {} \;
$(MAKE) generate

generate: .proto/dispatch-sdk
generate: .proto/dispatch-proto
buf generate --template buf.gen.yaml
cd src && find . -type d | while IFS= read -r dir; do touch $$dir/__init__.py; done
rm src/__init__.py
$(MAKE) fmt

clean:
$(RM) -rf dist .proto .coverage .coverage-html
find . -type f -name '*.pyc' -exec rm {} \;
find . -type d -name '__pycache__' -exec rm -rf {} \;
$(RM) -r dist .proto .coverage .coverage-html
find . -type f -name '*.pyc' | xargs $(RM) -r
find . -type d -name '__pycache__' | xargs $(RM) -r

build:
$(PYTHON) -m build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="https://github.com/stealthrocket/dispatch-sdk-protobuf/assets/865510/87162355-e184-4058-a733-650eee53f333" width="160"/>
<img src="https://github.com/stealthrocket/dispatch-proto/assets/865510/87162355-e184-4058-a733-650eee53f333" width="160"/>
</p>

# Dispatch SDK for Python
Expand Down
2 changes: 1 addition & 1 deletion buf.work.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version: v1
directories:
- .proto/dispatch-sdk
- .proto/dispatch-proto

0 comments on commit a5aeeb3

Please sign in to comment.