Skip to content

Commit 01e228b

Browse files
committed
Update workflow
Signed-off-by: Terence Lim <terencelimxp@gmail.com>
1 parent 95e5f32 commit 01e228b

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

.prow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ postsubmits:
108108
- sh
109109
- -c
110110
- |
111-
make compile-protos-python && infra/scripts/publish-python-sdk.sh \
111+
make package-protos && make compile-protos-python && infra/scripts/publish-python-sdk.sh \
112112
--directory-path sdk/python --repository pypi
113113
volumeMounts:
114114
- name: pypirc

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ build-java-no-tests:
6464
install-python-ci-dependencies:
6565
pip install --no-cache-dir -r sdk/python/requirements-ci.txt
6666

67+
package-protos:
68+
cp -r ${ROOT_DIR}/protos ${ROOT_DIR}/sdk/python/feast/protos
69+
6770
compile-protos-python: install-python-ci-dependencies
6871
@$(foreach dir,$(PROTO_TYPE_SUBDIRS),cd ${ROOT_DIR}/protos; python -m grpc_tools.protoc -I. --python_out=../sdk/python/ --mypy_out=../sdk/python/ feast/$(dir)/*.proto;)
6972
@$(foreach dir,$(PROTO_SERVICE_SUBDIRS),cd ${ROOT_DIR}/protos; python -m grpc_tools.protoc -I. --grpc_python_out=../sdk/python/ feast/$(dir)/*.proto;)

sdk/python/setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,11 @@
9494
entry_points={"console_scripts": ["feast=feast.cli:cli"]},
9595
use_scm_version={"root": "../..", "relative_to": __file__, "tag_regex": TAG_REGEX},
9696
setup_requires=["setuptools_scm"],
97+
package_data={
98+
"": [
99+
"protos/feast/**/*.proto",
100+
"protos/feast/third_party/grpc/health/v1/*.proto",
101+
"protos/tensorflow_metadata/proto/v0/*.proto",
102+
],
103+
},
97104
)

0 commit comments

Comments
 (0)