Skip to content

Commit d85e238

Browse files
committed
ODSC-54710. Support Python versions up to 3.12
- install tf-keras for backward compatibility in transformers in py3.11+
1 parent b3eda59 commit d85e238

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/run-unittests-py39-py310.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31+
# dask, which is used for tests and some use-cases incompatible with latest py3.11.9, py3.12.3 (https://github.com/dask/dask/issues/11038)
32+
# to fix issues with dask, set python to "3.11.8", "3.12.2". Relax it to "3.11", "3.12" after issue with dask resolved
3133
python-version: ["3.11.8", "3.12.2"]
3234
name: ["unitary",
3335
# "slow_tests"

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ data = [
9494
"sqlalchemy>=1.4.1, <=1.4.46",
9595
]
9696
geo = ["geopandas", "oracle_ads[viz]"]
97-
huggingface = ["transformers"]
97+
huggingface = [
98+
"transformers",
99+
"tf-keras; python_version>='3.11'" # Keras 3 installed in py3.11+, but this is not yet supported in Transformers. Need to install the backwards-compatible tf-keras
100+
]
98101
notebook = ["ipython>=7.23.1, <8.0", "ipywidgets~=7.6.3"]
99102
onnx = [
100103
"lightgbm",

0 commit comments

Comments
 (0)