Skip to content

Commit 44aacfb

Browse files
committed
ODSC-54710. Support Python versions up to 3.12
- set "spacy>=3.4.2" to [text] dependency - the first version of spacy that supports python 3.11
1 parent b4a7bae commit 44aacfb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
python-version: ["3.12"]
31+
python-version: ["3.11", "3.12"]
3232
name: ["unitary", "slow_tests"]
3333
include:
3434
- name: "unitary"

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ opctl = [
122122
optuna = ["optuna==2.9.0", "oracle_ads[viz]"]
123123
spark = ["pyspark>=3.0.0"]
124124
tensorflow = ["oracle_ads[viz]", "tensorflow"]
125-
text = ["spacy", "wordcloud>=1.8.1"]
125+
text = [
126+
"spacy>=3.4.2", # the first version of spacy that supports python 3.11 is spacy v3.4.2
127+
"wordcloud>=1.8.1"
128+
]
126129
torch = ["oracle_ads[viz]", "torch", "torchvision"]
127130
viz = [
128131
"bokeh>=3.0.0, <3.2.0", # starting 3.2.0 bokeh not supporting python3.8; relax after ADS will drop py3.8 support
@@ -179,7 +182,7 @@ pii = [
179182
"scrubadub==2.0.1",
180183
"scrubadub_spacy",
181184
"spacy-transformers==1.2.5",
182-
"spacy>=3.4.2",
185+
"spacy==3.6.1",
183186
]
184187
llm = ["langchain-community<0.0.32", "langchain>=0.1.10,<0.1.14", "evaluate>=0.4.0"]
185188
aqua = ["jupyter_server"]
@@ -203,7 +206,7 @@ testsuite = [
203206
"nltk",
204207
"notebook==6.4.12",
205208
"opensearch-py",
206-
"pkg_resources; python_version>='3.12'",
209+
"setuptools; python_version>='3.12'",
207210
"pdfplumber",
208211
"py4j",
209212
"pyarrow",

0 commit comments

Comments
 (0)