Skip to content

Commit dbf39d5

Browse files
committed
Add RTD config
1 parent dfe07f9 commit dbf39d5

File tree

5 files changed

+37
-59
lines changed

5 files changed

+37
-59
lines changed

.github/workflows/docs.yml

-58
This file was deleted.

.readthedocs.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 2
2+
3+
build:
4+
os: "ubuntu-22.04"
5+
tools:
6+
python: "mambaforge-4.10"
7+
8+
conda:
9+
environment: docs/rtd_environment.yaml
10+
11+
sphinx:
12+
builder: html
13+
configuration: docs/conf.py
14+
fail_on_warning: true
15+
16+
# Install regular dependencies.
17+
# Then, install special pinning for RTD.
18+
python:
19+
system_packages: false
20+
install:
21+
- method: pip
22+
path: .
23+
extra_requirements:
24+
- docs
25+
26+
# Don't build any extra formats
27+
formats: []

docs/rtd_environment.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: rtd311
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- python=3.11
7+
- pip
8+
- graphviz

docs/sample_summaries.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def run_pytest(test_name):
3636
lambda x: x.name[:-1] in test_name,
3737
pathlib.Path(tmp_dir).glob("*0")
3838
)) / "results"
39-
os.replace(src, dest)
39+
shutil.copytree(src, dest)
4040

4141
return dest
4242

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ docs =
4343
sphinx
4444
mpl_sphinx_theme>=3.6.0.dev0
4545
sphinx_design
46+
matplotlib==3.6
4647

4748
[tool:pytest]
4849
testpaths = tests

0 commit comments

Comments
 (0)