diff --git a/Makefile b/Makefile index 98662bd3f0..a40064b419 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/v4-proto-py/MANIFEST.in b/v4-proto-py/MANIFEST.in new file mode 100644 index 0000000000..e0aba045d9 --- /dev/null +++ b/v4-proto-py/MANIFEST.in @@ -0,0 +1 @@ +recursive-include * *.pyi diff --git a/v4-proto-py/setup.py b/v4-proto-py/setup.py index b7cc27512e..64e8a925cd 100644 --- a/v4-proto-py/setup.py +++ b/v4-proto-py/setup.py @@ -10,6 +10,7 @@ author_email="contact@dydx.exchange", 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",