Skip to content

Commit bb3c5cb

Browse files
author
Michael McNeil Forbes
committed
TST,CI: Pin ubuntu version. Set autodoc_use_legacy_class_based = True in extension.
--HG-- branch : default/0.4.3
1 parent ce4cfbb commit bb3c5cb

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Tests
33
on: [push]
44
jobs:
55
test:
6-
runs-on: ubuntu-latest
6+
runs-on: ubuntu-22.04
77
strategy:
88
matrix:
99
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]

Docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
}
7474

7575
nitpick = True
76-
autodoc_use_legacy_class_based = True
7776

7877
# Most themes have no styling for interfaces, only class, or exception. Here is some
7978
# javascript that adds the HTML "class" class everywhere there is an HTML "interface"

src/sphinxcontrib/zopeext/autointerface.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,10 @@ def get_index_text(self, modname, name_cls):
264264

265265
def setup(app: Sphinx) -> Dict[str, Any]:
266266
app.setup_extension("sphinx.ext.autodoc")
267+
268+
# We currently need to use the legacy classes.
269+
app.config.autodoc_use_legacy_class_based = True
270+
267271
app.add_autodoc_attrgetter(
268272
zope.interface.interface.InterfaceClass, interface_getattr
269273
)

tests/examples/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@
2222
}
2323

2424
nitpicky = True
25-
autodoc_use_legacy_class_based = True

tests/roots/test-zopeext-autointerface/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@
2020
master_doc = "index"
2121

2222
nitpicky = True
23-
autodoc_use_legacy_class_based = True

0 commit comments

Comments
 (0)