Skip to content

Commit fa3e66a

Browse files
authored
RHOAIENG-12556: Update PyArrow to 17.0.0 (#214)
* Update PyArrow to 17.0.0 * Fix categorical test
1 parent 622c3ba commit fa3e66a

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

pyproject.toml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ classifiers = [
1818
"Programming Language :: Python :: 3.8",
1919
"Programming Language :: Python :: 3.9",
2020
"Topic :: Scientific/Engineering :: Artificial Intelligence",
21-
"Topic :: Software Development :: Libraries :: Java Libraries"
21+
"Topic :: Software Development :: Libraries :: Java Libraries",
2222
]
2323

2424
dependencies = [
2525
"Jpype1==1.4.1",
26-
"pyarrow==14.0.1",
26+
"pyarrow==17.0.0",
2727
"matplotlib~=3.6.3",
2828
"pandas~=1.5.3",
2929
"numpy~=1.24.1",
30-
"jupyter-bokeh~=3.0.5"
30+
"jupyter-bokeh~=3.0.5",
3131
]
3232

3333
[project.optional-dependencies]
@@ -38,7 +38,6 @@ dev = [
3838
"joblib~=1.2.0",
3939
"jupyterlab~=3.5.3",
4040
"numpydoc==1.5.0",
41-
"pyarrow==14.0.1",
4241
"pylint==2.15.6",
4342
"pytest~=7.2.1",
4443
"pytest-benchmark==4.0.0",
@@ -47,25 +46,21 @@ dev = [
4746
"setuptools",
4847
"twine==3.4.2",
4948
"wheel~=0.38.4",
50-
"xgboost==1.4.2"
51-
]
52-
extras = [
53-
"aix360[default,tsice,tslime,tssaliency]==0.3.0"
49+
"xgboost==1.4.2",
5450
]
51+
extras = ["aix360[default,tsice,tslime,tssaliency]==0.3.0"]
5552

5653
detoxify = [
5754
"transformers~=4.36.2",
5855
"datasets",
59-
"scipy",
60-
"torch",
56+
"scipy~=1.12.0",
57+
"torch~=2.2.1",
6158
"iter-tools",
6259
"evaluate",
63-
"trl"
60+
"trl",
6461
]
6562

66-
api = [
67-
"kubernetes"
68-
]
63+
api = ["kubernetes"]
6964

7065
[project.urls]
7166
homepage = "https://github.com/trustyai-explainability/trustyai-explainability-python"
@@ -83,7 +78,7 @@ package-dir = { "" = "src" }
8378
log_cli = true
8479
addopts = '-m="not block_plots"'
8580
markers = [
86-
"block_plots: Test plots will block execution of subsequent tests until closed"
81+
"block_plots: Test plots will block execution of subsequent tests until closed",
8782
]
8883

8984
[tool.setuptools.packages.find]

tests/general/test_conversions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_categorical_object_domain_list():
6565
jdomain = feature_domain(domain)
6666
assert str(jdomain.getClass().getSimpleName()) == "ObjectFeatureDomain"
6767
assert jdomain.getCategories().size() == 2
68-
assert jdomain.getCategories().containsAll(domain)
68+
assert sorted([o.getObject() for o in jdomain.getCategories()]) == sorted(domain)
6969

7070

7171
def test_categorical_object_domain_list_2():
@@ -74,7 +74,7 @@ def test_categorical_object_domain_list_2():
7474
jdomain = feature_domain(domain)
7575
assert str(jdomain.getClass().getSimpleName()) == "ObjectFeatureDomain"
7676
assert jdomain.getCategories().size() == 2
77-
assert jdomain.getCategories().containsAll(domain)
77+
assert sorted([o.getObject() for o in jdomain.getCategories()]) == sorted(domain)
7878

7979

8080
def test_empty_domain():

0 commit comments

Comments
 (0)