Skip to content

Commit 4c3df62

Browse files
docs: RTD fix
1 parent 81257f7 commit 4c3df62

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
import sys
66
from pathlib import Path
77
sys.path.insert(0, str(Path(__file__).absolute().parent.parent / "src"))
8-
import tuesday
8+
9+
from importlib.metadata import version as get_version
10+
release: str = get_version("tuesday-eor")
11+
# for example take major/minor
12+
version: str = ".".join(release.split('.')[:2])
913

1014
extensions = [
1115
"sphinx.ext.autodoc",
@@ -41,7 +45,6 @@
4145
year = str(datetime.now(tz=timezone.utc).year)
4246
author = "Daniela Breitman and Steven Murray"
4347
copyright = f"{year}, {author}"
44-
version = release = tuesday.__version__
4548
templates_path = ["templates"]
4649

4750
pygments_style = "trac"

0 commit comments

Comments
 (0)