Skip to content

Commit f14ca5f

Browse files
authored
ci: Remove psycopg direct dependency as extra, move requirements file to offline build dir (#5234)
1 parent 8838320 commit f14ca5f

File tree

6 files changed

+5
-190
lines changed

6 files changed

+5
-190
lines changed

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ lock-python-dependencies-all:
9191
pixi run --environment $(call get_env_name,3.11) --manifest-path infra/scripts/pixi/pixi.toml \
9292
"uv pip compile -p 3.11 --no-strip-extras setup.py --extra pandas-build \
9393
--generate-hashes --output-file sdk/python/requirements/py3.11-pandas-requirements.txt"
94-
pixi run --environment $(call get_env_name,3.11) --manifest-path infra/scripts/pixi/pixi.toml \
95-
"uv pip compile -p 3.11 --no-strip-extras setup.py --extra postgres-source \
96-
--output-file sdk/python/requirements/py3.11-postgres-source-requirements.txt"
9794
pixi run --environment $(call get_env_name,3.11) --manifest-path infra/scripts/pixi/pixi.toml \
9895
"uv pip compile -p 3.11 --no-strip-extras setup.py --extra minimal-sdist-build \
9996
--no-emit-package milvus-lite \

infra/scripts/offline-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ cachi2 fetch-deps \
3333
],
3434
"requirements_build_files": [
3535
"sdk/python/feast/infra/feature_servers/multicloud/offline/pyarrow17-wheel-build-requirements.txt",
36+
"sdk/python/feast/infra/feature_servers/multicloud/offline/psycopg3.2.5-wheel-build-requirements.txt",
3637
"sdk/python/requirements/py3.11-sdist-requirements.txt",
3738
"sdk/python/requirements/py3.11-pandas-requirements.txt",
38-
"sdk/python/requirements/py3.11-postgres-source-requirements.txt",
3939
"sdk/python/requirements/py3.11-addtl-sources-requirements.txt"
4040
],
4141
"allow_binary": "false"

pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ docs = ["feast[ci]"]
172172
# used for the 'feature-server' container image build
173173
minimal = ["feast[aws, gcp, snowflake, redis, go, mysql, postgres, opentelemetry, grpcio, k8s, duckdb, milvus]"]
174174

175-
# extras for a disconnected build from source (pandas, postgres-source, sdist)
175+
# extras for a disconnected build from source (pandas, sdist, etc.)
176176
numpy-build = [
177177
"meson-python<0.16.0,>=0.15.0",
178178
"Cython<3.1,>=0.29.34",
@@ -191,10 +191,6 @@ pandas-build = [
191191
"oldest-supported-numpy>=2022.8.16,<2023.8.3",
192192
"versioneer[toml]==0.29",
193193
]
194-
postgres-source = [
195-
"psycopg @ git+https://github.com/psycopg/psycopg@3.2.5#subdirectory=psycopg",
196-
"psycopg-pool @ git+https://github.com/psycopg/psycopg@3.2.6#subdirectory=psycopg_pool",
197-
]
198194
addtl-sources = [
199195
# python-dateutil build deps
200196
"python-dateutil==2.9.0",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
psycopg @ git+https://github.com/psycopg/psycopg@664b2a12d68d9f826b58ea004f05460448e78bca#subdirectory=psycopg
2+
psycopg-pool @ git+https://github.com/psycopg/psycopg@dfc113613c067600355a14c2e4010d03cbef51bd#subdirectory=psycopg_pool
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
# keep VERSION on line #2, this is critical to release CI
2-
feast[aws,gcp,snowflake,redis,go,mysql,postgres,opentelemetry,grpcio,k8s,duckdb,milvus] == 0.48.0
3-
# the following can be used instead w/ feast 0.48.0+
4-
# feast[minimal] == 0.48.0
2+
feast[minimal] == 0.48.0

sdk/python/requirements/py3.11-postgres-source-requirements.txt

Lines changed: 0 additions & 178 deletions
This file was deleted.

0 commit comments

Comments
 (0)