Skip to content

Commit 5478885

Browse files
committed
Attempt at fixing version number on RTD
1 parent 5eef8fd commit 5478885

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import os
1515
from pathlib import Path
1616
from textwrap import dedent
17+
from pkg_resources import get_distribution
1718

1819
sys.path.insert(0, os.path.abspath('..'))
1920

@@ -52,7 +53,7 @@
5253
author = 'Adrien Morison, Martina Ulvrova, Stéphane Labrosse'
5354

5455
# The full version, including alpha/beta/rc tags.
55-
release = stagpy.__version__
56+
release = get_distribution("stagpy").version
5657
# The short X.Y version.
5758
version = '.'.join(release.split('.')[:2])
5859

0 commit comments

Comments
 (0)