Skip to content

Commit eb0e799

Browse files
authored
chore: Update numpy (#5427)
* chore: update numpy Signed-off-by: ntkathole <[email protected]> * chore: Reduce concurrency to save memory on runners Signed-off-by: ntkathole <[email protected]> --------- Signed-off-by: ntkathole <[email protected]>
1 parent 5f15329 commit eb0e799

24 files changed

+1422
-1781
lines changed

.github/workflows/build_wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
needs: [ build-python-wheel ]
113113
strategy:
114114
matrix:
115-
os: [ ubuntu-latest, macos-13 ]
115+
os: [ ubuntu-latest, macos-14 ]
116116
python-version: [ "3.9", "3.10", "3.11" ]
117117
from-source: [ True, False ]
118118
env:
@@ -141,7 +141,7 @@ jobs:
141141
name: python-wheels
142142
path: dist
143143
- name: Install OS X dependencies
144-
if: matrix.os == 'macos-13'
144+
if: matrix.os == 'macos-14'
145145
run: brew install coreutils
146146
- name: Install wheel
147147
if: ${{ !matrix.from-source }}

.github/workflows/nightly-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
sudo apt update
132132
sudo apt install -y -V libarrow-dev
133133
- name: Install apache-arrow on macos
134-
if: matrix.os == 'macos-13'
134+
if: matrix.os == 'macos-14'
135135
run: brew install apache-arrow
136136
- name: Install dependencies
137137
run: make install-python-dependencies-ci

.github/workflows/unit_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
python-version: ["3.10", "3.11", "3.12"]
13-
os: [ ubuntu-latest, macos-13, macos-14 ]
13+
os: [ ubuntu-latest, macos-14 ]
1414
exclude:
1515
- os: macos-14
1616
python-version: "3.10"
@@ -33,8 +33,8 @@ jobs:
3333
- name: Install torch (platform-specific)
3434
run: |
3535
if [[ "$RUNNER_OS" == "Linux" ]]; then
36-
pip install torch==2.2.2+cpu torchvision==0.17.2+cpu \
37-
-f https://download.pytorch.org/whl/torch_stable.html
36+
pip install torch torchvision \
37+
--index-url https://download.pytorch.org/whl/cpu
3838
fi
3939
- name: Install dependencies
4040
run: make install-python-dependencies-ci

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ test-python-integration-local: ## Run Python integration tests (local dev mode)
152152
test-python-integration-rbac-remote: ## Run Python remote RBAC integration tests
153153
FEAST_IS_LOCAL_TEST=True \
154154
FEAST_LOCAL_ONLINE_CONTAINER=True \
155-
python -m pytest --tb=short -v -n 8 --color=yes --integration --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
155+
python -m pytest --tb=short -v -n 4 --color=yes --integration --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \
156156
-k "not test_lambda_materialization and not test_snowflake_materialization" \
157157
-m "rbac_remote_integration_test" \
158158
--log-cli-level=INFO -s \

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies = [
2121
"Jinja2>=2,<4",
2222
"jsonschema",
2323
"mmh3",
24-
"numpy>=1.22,<2",
24+
"numpy>=2.0.0,<3",
2525
"pandas>=1.4.3,<3",
2626
"pyarrow<=17.0.0",
2727
"pydantic==2.10.6",
@@ -99,13 +99,13 @@ milvus = [
9999
mssql = ["ibis-framework[mssql]>=9.0.0,<=9.5.0"]
100100
mysql = ["pymysql", "types-PyMySQL"]
101101
opentelemetry = ["prometheus_client", "psutil"]
102-
spark = ["pyspark>=3.0.0,<4"]
102+
spark = ["pyspark>=4.0.0"]
103103
trino = ["trino>=0.305.0,<0.400.0", "regex"]
104104
postgres = ["psycopg[binary,pool]==3.2.5"]
105105
# psycopg[c] install requires a system with a C compiler, python dev headers, & postgresql client dev headers
106106
# https://www.psycopg.org/psycopg3/docs/basic/install.html#local-installation
107107
postgres-c = ["psycopg[c,pool]==3.2.5"]
108-
pytorch = ["torch==2.2.2", "torchvision>=0.17.2"]
108+
pytorch = ["torch>=2.7.0", "torchvision>=0.22.1"]
109109
qdrant = ["qdrant-client>=1.12.0"]
110110
redis = [
111111
"redis>=4.2.2,<5",

sdk/python/feast/infra/utils/postgres/connection_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def df_to_postgres_table(
9898
nr_columns = df.shape[1]
9999
placeholders = ", ".join(["%s"] * nr_columns)
100100
query = f"INSERT INTO {table_name} VALUES ({placeholders})"
101-
values = df.replace({np.NaN: None}).to_numpy().tolist()
101+
values = df.replace({np.nan: None}).to_numpy().tolist()
102102

103103
with _get_conn(config) as conn, conn.cursor() as cur:
104104
cur.execute(_df_to_create_table_sql(df, table_name))

sdk/python/feast/torch_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_torch():
3333
"Original error:\n"
3434
f"{_torch_import_error}\n\n"
3535
"If you are on a CPU-only system, make sure you install the CPU-only torch wheel:\n"
36-
" pip install torch==2.2.2+cpu torchvision==0.17.2+cpu -f https://download.pytorch.org/whl/torch_stable.html\n"
36+
" pip install torch torchvision -f https://download.pytorch.org/whl/cpu\n"
3737
"Or check your CUDA installation if using GPU torch.\n"
3838
)
3939
raise ImportError(error_message) from _torch_import_error

sdk/python/requirements/py3.10-ci-requirements.txt

Lines changed: 187 additions & 259 deletions
Large diffs are not rendered by default.

sdk/python/requirements/py3.10-minimal-requirements.txt

Lines changed: 75 additions & 97 deletions
Large diffs are not rendered by default.

sdk/python/requirements/py3.10-minimal-sdist-requirements-build.txt

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -410,44 +410,6 @@ mypy==1.15.0 \
410410
--hash=sha256:e601a7fa172c2131bff456bb3ee08a88360760d0d2f8cbd7a75a65497e2df078 \
411411
--hash=sha256:f95579473af29ab73a10bada2f9722856792a36ec5af5399b653aa28360290a5
412412
# via charset-normalizer
413-
numpy==1.26.4 \
414-
--hash=sha256:03a8c78d01d9781b28a6989f6fa1bb2c4f2d51201cf99d3dd875df6fbd96b23b \
415-
--hash=sha256:08beddf13648eb95f8d867350f6a018a4be2e5ad54c8d8caed89ebca558b2818 \
416-
--hash=sha256:1af303d6b2210eb850fcf03064d364652b7120803a0b872f5211f5234b399f20 \
417-
--hash=sha256:1dda2e7b4ec9dd512f84935c5f126c8bd8b9f2fc001e9f54af255e8c5f16b0e0 \
418-
--hash=sha256:2a02aba9ed12e4ac4eb3ea9421c420301a0c6460d9830d74a9df87efa4912010 \
419-
--hash=sha256:2e4ee3380d6de9c9ec04745830fd9e2eccb3e6cf790d39d7b98ffd19b0dd754a \
420-
--hash=sha256:3373d5d70a5fe74a2c1bb6d2cfd9609ecf686d47a2d7b1d37a8f3b6bf6003aea \
421-
--hash=sha256:47711010ad8555514b434df65f7d7b076bb8261df1ca9bb78f53d3b2db02e95c \
422-
--hash=sha256:4c66707fabe114439db9068ee468c26bbdf909cac0fb58686a42a24de1760c71 \
423-
--hash=sha256:50193e430acfc1346175fcbdaa28ffec49947a06918b7b92130744e81e640110 \
424-
--hash=sha256:52b8b60467cd7dd1e9ed082188b4e6bb35aa5cdd01777621a1658910745b90be \
425-
--hash=sha256:60dedbb91afcbfdc9bc0b1f3f402804070deed7392c23eb7a7f07fa857868e8a \
426-
--hash=sha256:62b8e4b1e28009ef2846b4c7852046736bab361f7aeadeb6a5b89ebec3c7055a \
427-
--hash=sha256:666dbfb6ec68962c033a450943ded891bed2d54e6755e35e5835d63f4f6931d5 \
428-
--hash=sha256:675d61ffbfa78604709862923189bad94014bef562cc35cf61d3a07bba02a7ed \
429-
--hash=sha256:679b0076f67ecc0138fd2ede3a8fd196dddc2ad3254069bcb9faf9a79b1cebcd \
430-
--hash=sha256:7349ab0fa0c429c82442a27a9673fc802ffdb7c7775fad780226cb234965e53c \
431-
--hash=sha256:7ab55401287bfec946ced39700c053796e7cc0e3acbef09993a9ad2adba6ca6e \
432-
--hash=sha256:7e50d0a0cc3189f9cb0aeb3a6a6af18c16f59f004b866cd2be1c14b36134a4a0 \
433-
--hash=sha256:95a7476c59002f2f6c590b9b7b998306fba6a5aa646b1e22ddfeaf8f78c3a29c \
434-
--hash=sha256:96ff0b2ad353d8f990b63294c8986f1ec3cb19d749234014f4e7eb0112ceba5a \
435-
--hash=sha256:9fad7dcb1aac3c7f0584a5a8133e3a43eeb2fe127f47e3632d43d677c66c102b \
436-
--hash=sha256:9ff0f4f29c51e2803569d7a51c2304de5554655a60c5d776e35b4a41413830d0 \
437-
--hash=sha256:a354325ee03388678242a4d7ebcd08b5c727033fcff3b2f536aea978e15ee9e6 \
438-
--hash=sha256:a4abb4f9001ad2858e7ac189089c42178fcce737e4169dc61321660f1a96c7d2 \
439-
--hash=sha256:ab47dbe5cc8210f55aa58e4805fe224dac469cde56b9f731a4c098b91917159a \
440-
--hash=sha256:afedb719a9dcfc7eaf2287b839d8198e06dcd4cb5d276a3df279231138e83d30 \
441-
--hash=sha256:b3ce300f3644fb06443ee2222c2201dd3a89ea6040541412b8fa189341847218 \
442-
--hash=sha256:b97fe8060236edf3662adfc2c633f56a08ae30560c56310562cb4f95500022d5 \
443-
--hash=sha256:bfe25acf8b437eb2a8b2d49d443800a5f18508cd811fea3181723922a8a82b07 \
444-
--hash=sha256:cd25bcecc4974d09257ffcd1f098ee778f7834c3ad767fe5db785be9a4aa9cb2 \
445-
--hash=sha256:d209d8969599b27ad20994c8e41936ee0964e6da07478d6c35016bc386b66ad4 \
446-
--hash=sha256:d5241e0a80d808d70546c697135da2c613f30e28251ff8307eb72ba696945764 \
447-
--hash=sha256:edd8b5fe47dab091176d21bb6de568acdd906d1887a4584a15a9a96a1dca06ef \
448-
--hash=sha256:f870204a840a60da0b12273ef34f7051e98c3b5961b61b0c2c1be6dfd64fbcd3 \
449-
--hash=sha256:ffa75af20b44f8dba823498024771d5ac50620e6915abac414251bd971b4529f
450-
# via pyarrow
451413
numpy==2.2.6 \
452414
--hash=sha256:038613e9fb8c72b0a41f025a7e4c3f0b7a1b5d768ece4796b674c8f3fe13efff \
453415
--hash=sha256:0678000bb9ac1475cd454c6b8c799206af8107e310843532b04d49649c717a47 \
@@ -504,7 +466,9 @@ numpy==2.2.6 \
504466
--hash=sha256:fd83c01228a688733f1ded5201c678f0c53ecc1006ffbc404db9f7a899ac6249 \
505467
--hash=sha256:fe27749d33bb772c80dcd84ae7e8df2adc920ae8297400dabec45f0dedb3f6de \
506468
--hash=sha256:fee4236c876c4e8369388054d02d0e9bb84821feb1a64dd59e137e6511a551f8
507-
# via pandas
469+
# via
470+
# pandas
471+
# pyarrow
508472
packaging==24.2 \
509473
--hash=sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759 \
510474
--hash=sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f

0 commit comments

Comments
 (0)