Skip to content

Commit 1e7c145

Browse files
committed
Install trio in RTD and use importlib.metadata.version
1 parent ed2a7d3 commit 1e7c145

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.readthedocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ build:
1313
python:
1414
install:
1515
- requirements: docs-requirements.txt
16+
- path: .
1617

1718
sphinx:
1819
fail_on_warning: true

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ def add_mapping(
315315
# built documents.
316316
#
317317
# The short X.Y version.
318-
import trio
318+
import importlib.metadata
319319

320-
version = trio.__version__
320+
version = importlib.metadata.version("trio")
321321
# The full version, including alpha/beta/rc tags.
322322
release = version
323323

0 commit comments

Comments
 (0)