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 1313python :
1414 install :
1515 - requirements : docs-requirements.txt
16+ - path : .
1617
1718sphinx :
1819 fail_on_warning : true
Original file line number Diff line number Diff line change 3131
3232# For our local_customization module
3333sys .path .insert (0 , os .path .abspath ("." ))
34- # For trio itself
35- sys .path .insert (0 , os .path .abspath ("../../src" ))
3634
3735# Enable reloading with `typing.TYPE_CHECKING` being True
3836os .environ ["SPHINX_AUTODOC_RELOAD_MODULES" ] = "1"
@@ -315,9 +313,9 @@ def add_mapping(
315313# built documents.
316314#
317315# The short X.Y version.
318- import trio
316+ import importlib . metadata
319317
320- version = trio . __version__
318+ version = importlib . metadata . version ( "trio" )
321319# The full version, including alpha/beta/rc tags.
322320release = version
323321
You can’t perform that action at this time.
0 commit comments