Skip to content

Commit 99a9608

Browse files
committed
Add RTD config
1 parent dfe07f9 commit 99a9608

File tree

5 files changed

+36
-59
lines changed

5 files changed

+36
-59
lines changed

.github/workflows/docs.yml

-58
This file was deleted.

.readthedocs.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
15+
# Install regular dependencies.
16+
# Then, install special pinning for RTD.
17+
python:
18+
system_packages: false
19+
install:
20+
- method: pip
21+
path: .
22+
extra_requirements:
23+
- docs
24+
25+
# Don't build any extra formats
26+
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)