Skip to content

Commit d8896ea

Browse files
Update docs environment to Python 3.9
1 parent 9ae4895 commit d8896ea

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

doc/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# sys.path.append(os.path.abspath('some/directory'))
1818

1919
import os
20+
import sys
2021
import pytensor
2122

2223
# General configuration
@@ -60,7 +61,7 @@
6061
if os.environ.get("READTHEDOCS", False):
6162
rtd_version = os.environ.get("READTHEDOCS_VERSION", "")
6263
if rtd_version.lower() == "stable":
63-
version = pymc.__version__.split("+")[0]
64+
version = pytensor.__version__.split("+")[0]
6465
elif rtd_version.lower() == "latest":
6566
version = "dev"
6667
else:
@@ -120,6 +121,9 @@
120121
html_theme = "pymc_sphinx_theme"
121122
html_theme_options = {
122123
"use_search_override": False,
124+
"logo": {
125+
"link": "https://pytensor.readthedocs.io",
126+
},
123127
}
124128
html_context = {
125129
"github_user": "pymc-devs",

doc/environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ channels:
33
- conda-forge
44
- nodefaults
55
dependencies:
6-
- python=3.7
6+
- python=3.9
77
- gcc_linux-64
88
- gxx_linux-64
99
- numpy
1010
- scipy
1111
- six
12-
- sphinx>=5.1.0
12+
- sphinx>=5.1.0,<6
1313
- mock
1414
- pillow
1515
- pip

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies:
3232
- pytest-xdist
3333
- pytest-benchmark
3434
# For building docs
35-
- sphinx>=5.1.0
35+
- sphinx>=5.1.0,<6
3636
- sphinx_rtd_theme
3737
- pygments
3838
- pydot

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ tests = [
8989
"pytest-benchmark",
9090
]
9191
rtd = [
92-
"sphinx>=1.3.0",
93-
"sphinx_rtd_theme",
92+
"sphinx>=5.1.0,<6",
9493
"pygments",
9594
"pydot",
9695
"pydot2",

0 commit comments

Comments
 (0)