Skip to content

Commit

Permalink
Include .pyi files in v4-proto-py build (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajames authored Oct 6, 2023
1 parent 8a209f9 commit 3f1cf01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ v4-proto-py-gen: proto-export-deps
--grpc_python_out=./v4-proto-py/v4_proto \
$$(find ./$${dir} -type f -name '*.proto'); \
done;
perl -i -pe 's/^from (?!google\.protobuf)([^ ]*) import ([^ ]*)_pb2 as ([^ ]*)$$/from v4_proto.\1 import \2_pb2 as \3/' $$(find ./v4-proto-py/v4_proto -type f \( -name '*_pb2.py' -o -name '*_pb2_grpc.py' \))
perl -i -pe 's/^from (?!google\.protobuf)([^ ]*) import ([^ ]*)_pb2 as ([^ ]*)$$/from v4_proto.\1 import \2_pb2 as \3/' $$(find ./v4-proto-py/v4_proto -type f \( -name '*_pb2.py' -o -name '*_pb2_grpc.py' -o -name '*_pb2.pyi' -o -name '*_pb2_grpc.pyi' \))

.PHONY: proto-format proto-lint proto-check-bc-breaking proto-export proto-export-deps v4-proto-py-gen
1 change: 1 addition & 0 deletions v4-proto-py/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include * *.pyi
1 change: 1 addition & 0 deletions v4-proto-py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
author_email="[email protected]",
description="Protos for dYdX v4 protocol",
packages = find_namespace_packages(),
include_package_data=True, # Include files specified in MANIFEST.in
install_requires=required,
license_files = ("LICENSE"),
python_requires=">=3.8",
Expand Down

0 comments on commit 3f1cf01

Please sign in to comment.