File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 13
13
python :
14
14
install :
15
15
- requirements : docs-requirements.txt
16
+ - path : .
16
17
17
18
sphinx :
18
19
fail_on_warning : true
Original file line number Diff line number Diff line change 31
31
32
32
# For our local_customization module
33
33
sys .path .insert (0 , os .path .abspath ("." ))
34
- # For trio itself
35
- sys .path .insert (0 , os .path .abspath ("../../src" ))
36
34
37
35
# Enable reloading with `typing.TYPE_CHECKING` being True
38
36
os .environ ["SPHINX_AUTODOC_RELOAD_MODULES" ] = "1"
@@ -315,9 +313,9 @@ def add_mapping(
315
313
# built documents.
316
314
#
317
315
# The short X.Y version.
318
- import trio
316
+ import importlib . metadata
319
317
320
- version = trio . __version__
318
+ version = importlib . metadata . version ( "trio" )
321
319
# The full version, including alpha/beta/rc tags.
322
320
release = version
323
321
You can’t perform that action at this time.
0 commit comments