Skip to content

Commit 3038827

Browse files
authored
FAI-879: Sync version with exp-core (#107)
* Sync version with exp-core * Correct bindings version * Fix linting and formatting errors * Remove redundant Arrow build action Building the multi-module as shaded now builds simultaneously core and Arrow. * Replace Python core dependency with SNAPSHOT * Update README.md
1 parent debaa57 commit 3038827

File tree

12 files changed

+9
-24
lines changed

12 files changed

+9
-24
lines changed

.github/actions/build-arrow/action.yml

-10
This file was deleted.

.github/actions/build-core/action.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ runs:
77
shell: bash
88
run: |
99
git clone https://github.com/trustyai-explainability/trustyai-explainability.git
10-
mvn clean install -DskipTests -f trustyai-explainability/pom.xml -Pquickly -fae -e -nsu
10+
mvn clean install -DskipTests -f trustyai-explainability/pom.xml -Pshaded -fae -e -nsu
11+
mv trustyai-explainability/explainability-arrow/target/explainability-arrow-*-SNAPSHOT.jar src/trustyai/dep/org/trustyai/

.github/workflows/benchmarks-merge.yml

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ jobs:
3232
maven-version: 3.8.1
3333
- name: Build explainability-core
3434
uses: ./.github/actions/build-core
35-
- name: Build arrow-converter
36-
uses: ./.github/actions/build-arrow
3735
- name: Install TrustyAI Python package
3836
run: |
3937
pip install -r requirements-dev.txt

.github/workflows/benchmarks.yml

-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
maven-version: 3.8.1
3131
- name: Build explainability-core
3232
uses: ./.github/actions/build-core
33-
- name: Build arrow-converter
34-
uses: ./.github/actions/build-arrow
3533
- name: Install TrustyAI Python package
3634
run: |
3735
pip install -r requirements-dev.txt

.github/workflows/publish.yml

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
fetch-depth: 0
1313
- name: Build explainability-core
1414
uses: ./.github/actions/build-core
15-
- name: Build explainability-arrow
16-
uses: ./.github/actions/build-arrow
1715
- run: python3 -m pip install --upgrade build && python3 -m build
1816
- name: Publish package
1917
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/workflow.yml

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ jobs:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Build explainability-core
2525
uses: ./.github/actions/build-core
26-
- name: Build explainability-arrow
27-
uses: ./.github/actions/build-arrow
2826
- name: Install TrustyAI Python package
2927
run: |
3028
pip install -r requirements-dev.txt

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![version](https://img.shields.io/badge/version-0.2.4-green) [![Tests](https://github.com/trustyai-python/module/actions/workflows/workflow.yml/badge.svg)](https://github.com/trustyai-python/examples/actions/workflows/workflow.yml)
1+
![version](https://img.shields.io/badge/version-0.3.0-green) [![Tests](https://github.com/trustyai-python/module/actions/workflows/workflow.yml/badge.svg)](https://github.com/trustyai-python/examples/actions/workflows/workflow.yml)
22

33
# python-trustyai
44

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "trustyai"
3-
version = "0.2.5"
3+
version = "0.3.0"
44
description = "Python bindings to the TrustyAI explainability library."
55
authors = [{ name = "Rui Vieira", email = "[email protected]" }]
66
license = { file = "LICENSE" }

scripts/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ then
2727
git clone --branch main https://github.com/${EXP_CORE}/${EXP_CORE}.git "${EXP_CORE_DEST}"
2828
echo "Copying JARs from ${EXP_CORE_DEST} into ${ROOT_DIR}/dep/org/trustyai/"
2929
mvn install package -DskipTests -f "${EXP_CORE_DEST}"/pom.xml -Pshaded
30-
mv "${EXP_CORE_DEST}"/explainability-arrow/target/explainability-arrow-*-SNAPSHOT.jar "${ROOT_DIR}"/src/trustyai/dep/org/trustyai/
30+
mv "${EXP_CORE_DEST}"/explainability-arrow/target/explainability-arrow-*.jar "${ROOT_DIR}"/src/trustyai/dep/org/trustyai/
3131
else
3232
echo "Directory ${EXP_CORE_DEST} already exists. Please delete it or move it."
3333
exit 1

src/trustyai/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
# set initialized env variable to 0
88
import warnings
9+
from .version import __version__
910

1011
TRUSTYAI_IS_INITIALIZED = False
1112

src/trustyai/initializer.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ def _get_default_path():
2626
default_dep_path = os.path.join(get_python_lib(), "trustyai", "dep")
2727

2828
core_deps = [
29-
f"{default_dep_path}/org/trustyai/explainability-arrow-2.0.0-SNAPSHOT.jar",
30-
f"{default_dep_path}/org/trustyai/explainability-arrow-2.0.0-SNAPSHOT-tests.jar",
29+
f"{default_dep_path}/org/trustyai/explainability-arrow-999-SNAPSHOT.jar",
3130
]
3231

3332
return core_deps, default_dep_path

src/trustyai/version.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"""TrustyAI version"""
2+
__version__ = "0.3.0"

0 commit comments

Comments
 (0)