File tree 4 files changed +44
-14
lines changed
4 files changed +44
-14
lines changed Original file line number Diff line number Diff line change 5
5
6
6
# Required
7
7
version : 2
8
- build :
8
+ build :
9
9
os : ubuntu-22.04 # <- add this line
10
10
tools :
11
11
python : " 3.10"
12
+ jobs :
13
+ post_create_environment :
14
+ # Use uv to create a requirements file that RTD can install
15
+ - pip install uv
16
+ - uv export --format requirements.txt --only-group docs -o requirements.txt
12
17
13
18
# Build documentation in the docs/ directory with Sphinx
14
19
sphinx :
@@ -24,12 +29,8 @@ formats: all
24
29
# Optionally set the version of Python and requirements required to build your docs
25
30
python :
26
31
install :
27
- - method : pip
28
- path : .
29
- extra_requirements :
30
- - dev
31
- - method : setuptools
32
- path : .
32
+ # Install the requirements file created during the post_create_environment job
33
+ - requirements : requirements.txt
33
34
34
35
# build:
35
36
# os: ubuntu-22.04
Original file line number Diff line number Diff line change @@ -124,12 +124,20 @@ test-api:
124
124
# @ bash -c 'tox -e ALL'
125
125
126
126
127
+ #
128
+ # UV installation
129
+ #
130
+ .PHONY : uv
131
+ uv :
132
+ @ command -v uv > /dev/null 2>&1 || { echo " Installing uv..." ; pip install --user uv; }
133
+
127
134
#
128
135
# Documentation
129
136
#
130
137
.PHONY : docs docs-view
131
- docs :
132
- @ bash -c ' cd docs/ && rm -rf build/ && make html;'
138
+ docs : uv
139
+ -rm -rf docs/build
140
+ uv run --only-group docs make -C docs html
133
141
134
142
docs-view : docs
135
143
@ bash -c ' open docs/build/html/index.html'
@@ -184,4 +192,4 @@ docker-run-database:
184
192
docker-run-rabbitmq :
185
193
@ - docker stop augur_rabbitmq
186
194
@ - docker rm augur_rabbitmq
187
- docker run -p 5434:5432 --name augur_rabbitmq augurlabs/augur:rabbitmq
195
+ docker run -p 5434:5432 --name augur_rabbitmq augurlabs/augur:rabbitmq
Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ dependencies = [
88
88
" tornado==6.4.1" ,
89
89
" typing-extensions==4.7.1" ,
90
90
" Werkzeug~=2.0.0" ,
91
- " wheel" ,
92
91
" xgboost==1.4.2" ,
93
92
" xlrd==2.0.1" ,
94
93
" xlsxwriter==1.3.7" ,
@@ -100,11 +99,17 @@ dev = [
100
99
" pytest==6.2.5" ,
101
100
" toml>=0.10.2" ,
102
101
" ipdb==0.13.9" ,
102
+ {include-group = " docs" },
103
+ ]
104
+ docs = [
105
+ " docutils==0.20.1" ,
106
+ # setuptools is needed for pkg_resources due to sphinxcontrib-redoc
107
+ # See: https://github.com/sphinx-contrib/redoc/issues/47
108
+ " setuptools" ,
103
109
" sphinx==7.2.6" ,
104
110
" sphinx_rtd_theme==2.0.0" ,
105
111
" sphinxcontrib-openapi==0.8.3" ,
106
112
" sphinxcontrib-redoc==1.6.0" ,
107
- " docutils==0.20.1"
108
113
]
109
114
110
115
[project .scripts ]
You can’t perform that action at this time.
0 commit comments