Skip to content

Commit 1a043c6

Browse files
authored
FAI-864: Fix failing RtD build after to pip migration (#100)
* move RtD build to pip * moved trustyai namespace * moved conf.py path * added pip build to config * changed conf.py path back to original * fix failing model import * tried adding maven to get a jvm * typo in apt packages * Added java build to rtd * moved java build to build in yaml * correctly formatted rtd build jobs * added -f flag to cleanup * changed build job path * updated predocs build commands for arrow->java move * remove erroneous pwd in rtd build
1 parent f84885a commit 1a043c6

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.readthedocs.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,30 @@
55
# Required
66
version: 2
77

8-
9-
108
# Set the version of Python and other tools you might need
119
build:
1210
os: ubuntu-20.04
13-
apt_packages:
11+
apt_packages :
1412
- maven
1513
tools:
1614
python: "3.9"
15+
jobs:
16+
pre_create_environment:
17+
- rm -f src/trustyai/dep/org/trustyai/*
18+
- git clone https://github.com/trustyai-explainability/trustyai-explainability.git
19+
- mvn clean install -DskipTests -f trustyai-explainability/pom.xml -Pquickly -fae -e -nsu
20+
- mvn clean install -DskipTests -f trustyai-explainability/explainability-arrow/pom.xml -Pshaded -fae -e -nsu
21+
- mv trustyai-explainability/explainability-arrow/target/explainability-arrow-*-SNAPSHOT.jar src/trustyai/dep/org/trustyai/
22+
23+
post_build:
24+
- rm -Rf trustyai-explainability
1725

1826
# install the package
1927
python:
2028
install:
2129
- requirements: requirements-dev.txt
2230
- method: pip
2331
path: .
24-
extra_requirements:
25-
- docs
26-
- method: setuptools
27-
path: .
28-
2932

3033
# Build documentation in the docs/ directory with Sphinx
3134
sphinx:

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@
7878

7979

8080
def setup(app):
81-
from src import trustyai
82-
trustyai.model.Model.__name__ = "Model"
81+
from trustyai.model import Model
82+
Model.__name__ = "Model"

0 commit comments

Comments
 (0)