Skip to content

Commit b42b58d

Browse files
committed
Revert "gh-75459: Doc: Tell sphinx to run graphviz"
This reverts commit 361eaca.
1 parent b27bcca commit b42b58d

File tree

7 files changed

+339
-132
lines changed

7 files changed

+339
-132
lines changed

.github/workflows/reusable-docs.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ jobs:
8080
runs-on: ubuntu-latest
8181
timeout-minutes: 60
8282
steps:
83-
- name: 'Install Dependencies'
84-
run: |
85-
sudo apt-get update &&
86-
sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
87-
graphviz \
88-
;
8983
- uses: actions/checkout@v4
9084
- name: 'Set up Python'
9185
uses: actions/setup-python@v5

.readthedocs.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,25 @@ build:
1111
os: ubuntu-24.04
1212
tools:
1313
python: "3"
14-
apt_packages:
15-
- graphviz
16-
jobs:
17-
post_checkout:
18-
# https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition
19-
#
20-
# Cancel building pull requests when there aren't changes in the Doc directory.
21-
#
22-
# If there are no changes (git diff exits with 0) we force the command to return with 183.
23-
# This is a special exit code on Read the Docs that will cancel the build immediately.
24-
- |
25-
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && [ "$(git diff --quiet origin/main -- Doc/ .readthedocs.yml; echo $?)" -eq 0 ];
26-
then
27-
echo "No changes to Doc/ - exiting the build.";
28-
exit 183;
29-
fi
3014

31-
- asdf plugin add uv
32-
- asdf install uv latest
33-
- asdf global uv latest
34-
- make -C Doc venv html
35-
- mkdir _readthedocs
36-
- mv Doc/build/html _readthedocs/html
15+
commands:
16+
# https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition
17+
#
18+
# Cancel building pull requests when there aren't changes in the Doc directory.
19+
#
20+
# If there are no changes (git diff exits with 0) we force the command to return with 183.
21+
# This is a special exit code on Read the Docs that will cancel the build immediately.
22+
- |
23+
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && [ "$(git diff --quiet origin/main -- Doc/ .readthedocs.yml; echo $?)" -eq 0 ];
24+
then
25+
echo "No changes to Doc/ - exiting the build.";
26+
exit 183;
27+
fi
28+
29+
- asdf plugin add uv
30+
- asdf install uv latest
31+
- asdf global uv latest
32+
- make -C Doc venv html
33+
- mkdir _readthedocs
34+
- mv Doc/build/html _readthedocs/html
35+

Doc/c-api/lifecycle.dot

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
digraph G {
2+
graph [
3+
fontname="svg"
4+
fontsize=10.0
5+
layout="dot"
6+
ranksep=0.25
7+
]
8+
node [
9+
fontname="Courier"
10+
fontsize=10.0
11+
]
12+
edge [
13+
fontname="Times-Italic"
14+
fontsize=10.0
15+
]
16+
17+
"start" [fontname="Times-Italic" shape=plain label=< start > style=invis]
18+
"tp_alloc" [href="typeobj.html#c.PyTypeObject.tp_alloc" target="_top"]
19+
"tp_new" [href="typeobj.html#c.PyTypeObject.tp_new" target="_top"]
20+
"tp_init" [href="typeobj.html#c.PyTypeObject.tp_init" target="_top"]
21+
{
22+
rank="same"
23+
"alive" [
24+
fontname="Times-Italic"
25+
label=<alive, ref count &gt; 0>
26+
shape=box
27+
]
28+
"tp_traverse" [
29+
href="typeobj.html#c.PyTypeObject.tp_traverse"
30+
shape=octagon
31+
target="_top"
32+
]
33+
}
34+
"tp_finalize" [
35+
href="typeobj.html#c.PyTypeObject.tp_finalize"
36+
shape=octagon
37+
target="_top"
38+
]
39+
"tp_clear" [
40+
href="typeobj.html#c.PyTypeObject.tp_clear"
41+
shape=octagon
42+
target="_top"
43+
]
44+
"ref0" [
45+
fontname="Times-Italic"
46+
label=<ref count == 0>
47+
ordering="in"
48+
shape=box
49+
]
50+
"tp_dealloc" [href="typeobj.html#c.PyTypeObject.tp_dealloc" target="_top"]
51+
"tp_free" [href="typeobj.html#c.PyTypeObject.tp_free" target="_top"]
52+
53+
"start" -> "tp_alloc"
54+
"tp_alloc" -> "tp_new"
55+
"tp_new" -> "tp_init"
56+
"tp_init" -> "alive"
57+
"tp_traverse" -> "alive"
58+
"alive" -> "tp_traverse"
59+
"alive" -> "tp_clear" [label=< cyclic <br/>isolate >]
60+
"alive" -> "tp_finalize" [
61+
dir="back"
62+
label=< resurrected >
63+
]
64+
"alive" -> "tp_finalize" [label=< cyclic <br/>isolate >]
65+
"tp_finalize" -> "tp_clear"
66+
"tp_finalize" -> "ref0"
67+
"tp_clear" -> "ref0"
68+
"tp_clear" -> "tp_dealloc" [
69+
dir="back"
70+
label=< optional<br/>direct call >
71+
]
72+
"alive" -> "ref0"
73+
"ref0" -> "tp_dealloc"
74+
"tp_finalize" -> "tp_dealloc" [
75+
dir="back"
76+
href="lifecycle.html#c.PyObject_CallFinalizerFromDealloc"
77+
label=<
78+
<table border="0" cellborder="0" cellpadding="0" cellspacing="0">
79+
<tr>
80+
<td rowspan="4"> </td>
81+
<td align="left">optional call to</td>
82+
<td rowspan="4"> </td>
83+
</tr>
84+
<tr>
85+
<td align="left"><font face="Courier">PyObject_Call</font></td>
86+
</tr>
87+
<tr>
88+
<td align="left"><font face="Courier">FinalizerFrom</font></td>
89+
</tr>
90+
<tr><td align="left"><font face="Courier">Dealloc</font></td></tr>
91+
</table>
92+
>
93+
target="_top"
94+
]
95+
"tp_dealloc" -> "tp_free" [label=< directly calls >]
96+
}

Doc/c-api/lifecycle.dot.svg

Lines changed: 220 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)