File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,17 +13,17 @@ jobs:
1313 runs-on : ubuntu-latest
1414 steps :
1515 - uses : actions/checkout@v4
16- - name : Set up Python 3.11
16+ - name : Set up Python 3.12
1717 uses : actions/setup-python@v4
1818 with :
19- python-version : " 3.11 "
19+ python-version : " 3.12 "
2020 - uses : pre-commit/action@v3.0.1
2121
2222 tests :
2323 runs-on : ubuntu-latest
2424 strategy :
2525 matrix :
26- python-version : ["3.9", "3.10", "3. 11", "3.12"]
26+ python-version : ["3.11", "3.12"]
2727 steps :
2828 - uses : actions/checkout@v4
2929 - name : Set up Python ${{ matrix.python-version }}
Original file line number Diff line number Diff line change @@ -190,7 +190,10 @@ def run(self):
190190 if isinstance (self .app .builder , LaTeXBuilder ):
191191 docname = find_parent (self .app .builder .env , node , "section" )
192192 else :
193- docname = self .app .builder .current_docname
193+ try :
194+ docname = self .app .builder .current_docname
195+ except AttributeError :
196+ docname = self .env .docname # for builder such as JupyterBuilder that don't support current_docname
194197 docpath = self .env .doc2path (docname )
195198 path = docpath [: docpath .rfind ("." )]
196199 msg = f"undefined label: { target_label } "
Original file line number Diff line number Diff line change 88# `tox -r`
99
1010[tox]
11- envlist = py{38,39 }
11+ envlist = py{311,312 }
1212skip_missing_interpreters = true
1313
1414[testenv]
1515usedevelop =true
1616recreate = false
1717
18- [testenv:py{38,39 }-pre-commit]
18+ [testenv:py{311,312 }-pre-commit]
1919extras = code_style
2020commands = pre-commit run {posargs}
2121
22- [testenv:py{38,39 }-sphinx{4,5 }]
22+ [testenv:py{311,312 }-sphinx{5,6 }]
2323extras = testing
2424deps =
25- sphinx4: sphinx>=4,<5
2625 sphinx5: sphinx>=5,<6
26+ sphinx5: sphinx>=6,<7
2727commands = pytest --verbose {posargs}
2828
2929[testenv:docs-{update,clean}]
You can’t perform that action at this time.
0 commit comments