Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include .pyi files in v4-proto-py build #521

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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