Skip to content

Commit 3408091

Browse files
committed
Fix tests and readthedocs config
1 parent 754c19b commit 3408091

File tree

7 files changed

+17
-9
lines changed

7 files changed

+17
-9
lines changed

.github/workflows/tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111
- uses: actions/setup-python@v3
12+
with:
13+
python-version: 3.8
1214
- uses: pre-commit/[email protected]
1315

1416
tests:

.readthedocs.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
build:
3+
os: ubuntu-22.04
4+
tools:
5+
python: "3.8"
6+
sphinx:
7+
configuration: docs/source/conf.py
8+
python:
9+
install:
10+
- requirements: requirements.txt

readthedocs.yml

-4
This file was deleted.

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sphinx>=2.4.4
1+
sphinx>=7.2
22
ipykernel>=4.5.1
33
ipywidgets>=7.0.0
44
IPython

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
license="BSD",
3030
packages=["jupyter_sphinx"],
3131
install_requires=[
32-
"Sphinx>=2",
32+
"Sphinx>=7.2",
3333
"ipykernel>=4.5.1",
3434
"ipywidgets>=7.0.0",
3535
"IPython",

tests/test_execute.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from nbformat import from_dict
1313
from sphinx.addnodes import download_reference
1414
from sphinx.errors import ExtensionError
15-
from sphinx.testing.util import SphinxTestApp, assert_node, path
15+
from sphinx.testing.util import SphinxTestApp, assert_node
1616

1717
from jupyter_sphinx.ast import (
1818
JupyterCellNode,
@@ -48,7 +48,7 @@ def doctree(
4848

4949
warnings = StringIO()
5050
app = SphinxTestApp(
51-
srcdir=path(src_dir.as_posix()),
51+
srcdir=src_dir,
5252
status=StringIO(),
5353
warning=warnings,
5454
buildername=buildername,

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py37
2+
envlist = py38,py39,py310,py311,py312
33

44
[testenv]
55
deps =

0 commit comments

Comments
 (0)