Skip to content

Commit 9b6761d

Browse files
committed
fix: Use compatible pandas
1 parent a3e1bb5 commit 9b6761d

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
uses: ./.github/actions/build-core
2626
- name: Install TrustyAI Python package
2727
run: |
28+
pip install --upgrade pip
2829
pip install .
2930
pip install ".[dev]"
3031
pip install ".[extras]"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies = [
2626
"Jpype1==1.5.0",
2727
"pyarrow>=20.0.0",
2828
"matplotlib~=3.10.3",
29-
"pandas>=1.5.3",
29+
"pandas>=2.1.0",
3030
"numpy>=1.26.4",
3131
"jupyter-bokeh~=4.0.5",
3232
]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Jpype1==1.5.0
22
pyarrow>=20.0.0
33
matplotlib~=3.10.3
4-
pandas>=1.5.3
4+
pandas>=2.1.0
55
numpy>=1.26.4
66
jupyter-bokeh~=4.0.5

src/trustyai/initializer.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# pylint: disable = import-error, import-outside-toplevel, dangerous-default-value, invalid-name, R0801
22
# pylint: disable = deprecated-module
33
"""Main TrustyAI Python bindings"""
4-
from distutils.sysconfig import get_python_lib
4+
try:
5+
from distutils.sysconfig import get_python_lib
6+
except ImportError:
7+
# distutils is deprecated and removed in Python 3.12+
8+
# Use sysconfig instead
9+
import sysconfig
10+
def get_python_lib():
11+
return sysconfig.get_path('purelib')
512
import glob
613
import logging
714
import os

0 commit comments

Comments
 (0)