-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.readthedocs.yaml
42 lines (39 loc) · 1.45 KB
/
.readthedocs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# .readthedocs.yaml
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.11"
commands:
- pip install poetry
# First modify all pyproject.toml files to use exact versions
- cp pyproject.toml pyproject.toml.bak
- |
sed -i \
-e "s|{ path = \"core\", develop = true }|\"0.4.9\"|g" \
-e "s|{ path = \"tools\", develop = true }|\"0.4.9\"|g" \
-e "s|{ path = \"coding\", develop = true }|\"0.4.9\"|g" \
-e "s|{ path = \"web\", develop = true }|\"0.4.9\"|g" \
-e "s|{ path = \"router\", develop = true }|\"0.4.9\"|g" \
-e "s|{ path = \"examples\", develop = true }|\"0.4.9\"|g" \
pyproject.toml
# Build packages in order following build.sh approach
# First build core
- cd core && poetry build && cd ..
- pip install core/dist/*.whl
# Build and install other packages
- cd tools && poetry build && cd .. && pip install tools/dist/*.whl
- cd coding && poetry build && cd .. && pip install coding/dist/*.whl
- cd web && poetry build && cd .. && pip install web/dist/*.whl
- cd router && poetry build && cd .. && pip install router/dist/*.whl
- cd examples && poetry build && cd .. && pip install examples/dist/*.whl
# Build the meta-package
- touch ./just_agents/__init__.py
- poetry build
- pip install dist/*.whl
- rm ./just_agents/__init__.py
sphinx:
configuration: docs/conf.py
python:
install:
- requirements: docs/requirements.txt