@@ -37,24 +37,24 @@ build: protos build-java build-docker
3737# Python SDK
3838
3939install-python-ci-dependencies : install-go-proto-dependencies install-go-ci-dependencies
40- cd sdk/ python && python -m piptools sync requirements/py$(PYTHON ) -ci-requirements.txt
41- cd sdk/python && COMPILE_GO=true python setup.py develop
40+ python -m piptools sync sdk/python/ requirements/py$(PYTHON ) -ci-requirements.txt
41+ COMPILE_GO=true python setup.py develop
4242
4343lock-python-ci-dependencies :
44- cd sdk/ python && python -m piptools compile -U --extra ci --output-file requirements/py$(PYTHON ) -ci-requirements.txt
44+ python -m piptools compile -U --extra ci --output-file sdk/python/ requirements/py$(PYTHON ) -ci-requirements.txt
4545
4646package-protos :
4747 cp -r ${ROOT_DIR} /protos ${ROOT_DIR} /sdk/python/feast/protos
4848
4949compile-protos-python :
50- cd sdk/python && python setup.py build_python_protos
50+ python setup.py build_python_protos
5151
5252install-python :
53- cd sdk/ python && python -m piptools sync requirements/py$(PYTHON ) -requirements.txt
54- cd sdk/python && python setup.py develop
53+ python -m piptools sync sdk/python/ requirements/py$(PYTHON ) -requirements.txt
54+ python setup.py develop
5555
5656lock-python-dependencies :
57- cd sdk/ python && python -m piptools compile -U --output-file requirements/py$(PYTHON ) -requirements.txt
57+ python -m piptools compile -U --output-file sdk/python/ requirements/py$(PYTHON ) -requirements.txt
5858
5959benchmark-python :
6060 FEAST_USAGE=False IS_TEST=True python -m pytest --integration --benchmark --benchmark-autosave --benchmark-save-data sdk/python/tests
@@ -72,7 +72,37 @@ test-python-integration-container:
7272 FEAST_USAGE=False IS_TEST=True FEAST_LOCAL_ONLINE_CONTAINER=True python -m pytest -n 8 --integration sdk/python/tests
7373
7474test-python-universal-contrib :
75- PYTHONPATH=' .' FULL_REPO_CONFIGS_MODULE=sdk.python.feast.infra.offline_stores.contrib.contrib_repo_configuration FEAST_USAGE=False IS_TEST=True python -m pytest -n 8 --integration --universal sdk/python/tests
75+ PYTHONPATH=' .' \
76+ FULL_REPO_CONFIGS_MODULE=sdk.python.feast.infra.offline_stores.contrib.contrib_repo_configuration \
77+ PYTEST_PLUGINS=feast.infra.offline_stores.contrib.trino_offline_store.tests \
78+ FEAST_USAGE=False IS_TEST=True \
79+ python -m pytest -n 8 --integration --universal \
80+ -k "not test_historical_retrieval_fails_on_validation and \
81+ not test_historical_retrieval_with_validation and \
82+ not test_historical_features_persisting and \
83+ not test_historical_retrieval_fails_on_validation and \
84+ not test_universal_cli and \
85+ not test_go_feature_server and \
86+ not test_feature_logging and \
87+ not test_universal_types" \
88+ sdk/python/tests
89+
90+ test-python-universal-postgres :
91+ PYTHONPATH=' .' \
92+ FULL_REPO_CONFIGS_MODULE=sdk.python.feast.infra.offline_stores.contrib.postgres_repo_configuration \
93+ PYTEST_PLUGINS=sdk.python.feast.infra.offline_stores.contrib.postgres_offline_store.tests \
94+ FEAST_USAGE=False \
95+ IS_TEST=True \
96+ python -m pytest -x --integration --universal \
97+ -k " not test_historical_retrieval_fails_on_validation and \
98+ not test_historical_retrieval_with_validation and \
99+ not test_historical_features_persisting and \
100+ not test_historical_retrieval_fails_on_validation and \
101+ not test_universal_cli and \
102+ not test_go_feature_server and \
103+ not test_feature_logging and \
104+ not test_universal_types" \
105+ sdk/python/tests
76106
77107test-python-universal-local :
78108 FEAST_USAGE=False IS_TEST=True FEAST_IS_LOCAL_TEST=True python -m pytest -n 8 --integration --universal sdk/python/tests
@@ -151,21 +181,21 @@ install-protoc-dependencies:
151181 pip install grpcio-tools==1.44.0 mypy-protobuf==3.1.0
152182
153183compile-protos-go : install-go-proto-dependencies install-protoc-dependencies
154- cd sdk/python && python setup.py build_go_protos
184+ python setup.py build_go_protos
155185
156186compile-go-lib : install-go-proto-dependencies install-go-ci-dependencies
157- cd sdk/ python && python setup.py build_go_lib
187+ COMPILE_GO=True python setup.py build_ext --inplace
158188
159189# Needs feast package to setup the feature store
160190test-go : compile-protos-go
161- pip install -e " sdk/python [ci]"
191+ pip install -e " . [ci]"
162192 go test ./...
163193
164194format-go :
165195 gofmt -s -w go/
166196
167197lint-go : compile-protos-go
168- go vet ./go/internal/feast ./go/cmd/server
198+ go vet ./go/internal/feast ./go/embedded
169199
170200# Docker
171201
0 commit comments