From adabcb2129ecaf7d29e4c0ea9178eafeae2c7336 Mon Sep 17 00:00:00 2001 From: pyalex Date: Wed, 20 Apr 2022 20:37:41 -0700 Subject: [PATCH 1/2] install go dependencies Signed-off-by: pyalex --- docs/reference/feature-servers/go-feature-retrieval.md | 5 +++++ sdk/python/setup.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docs/reference/feature-servers/go-feature-retrieval.md b/docs/reference/feature-servers/go-feature-retrieval.md index 05411a7f8c5..30c1a9ca721 100644 --- a/docs/reference/feature-servers/go-feature-retrieval.md +++ b/docs/reference/feature-servers/go-feature-retrieval.md @@ -12,6 +12,11 @@ The Go Feature Retrieval component currently only supports Redis and Sqlite as o As long as you are running macOS or linux, on x86, with python version 3.7-3.10, the go component comes pre-compiled when you install feast. +However, some additional dependencies are required for Go <-> Python interoperability. To install these dependencies run the following command in your console: +``` +pip install feast[go] +``` + For developers, if you want to build from source, run `make compile-go-lib` to build and compile the go server. ## Usage diff --git a/sdk/python/setup.py b/sdk/python/setup.py index 8527d2f8c11..1304a425232 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -113,6 +113,10 @@ "great_expectations>=0.14.0,<0.15.0" ] +GO_REQUIRED = [ + "cffi==1.15.0", +] + CI_REQUIRED = ( [ "cryptography==3.4.8", @@ -440,6 +444,7 @@ def copy_extensions_to_source(self): "trino": TRINO_REQUIRED, "postgres": POSTGRES_REQUIRED, "ge": GE_REQUIRED, + "go": GO_REQUIRED, }, include_package_data=True, license="Apache", From eab708492b29057405d05b8342ab045e0a01ccd3 Mon Sep 17 00:00:00 2001 From: pyalex Date: Wed, 20 Apr 2022 21:16:30 -0700 Subject: [PATCH 2/2] allow patch versions for cffi Signed-off-by: pyalex --- sdk/python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/setup.py b/sdk/python/setup.py index 1304a425232..b02993d68cd 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -114,7 +114,7 @@ ] GO_REQUIRED = [ - "cffi==1.15.0", + "cffi==1.15.*", ] CI_REQUIRED = (