Skip to content

Commit

Permalink
Update conf.py to use importlib.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks authored Jan 22, 2025
1 parent d7b1902 commit f8a9036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ def add_mapping(
# built documents.
#
# The short X.Y version.
import trio
import importlib.metadata

version = trio.__version__
version = importlib.metadata.version("trio")
# The full version, including alpha/beta/rc tags.
release = version

Expand Down

0 comments on commit f8a9036

Please sign in to comment.