Skip to content

Commit

Permalink
use importlib to get cortecs version
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsavel committed Mar 12, 2024
1 parent 9b37c67 commit 0389b8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@
import os
import re
import sys
from importlib.metadata import version

from sphinx_pyproject import SphinxConfig

from cortecs import __version__ as cortecs_version
import cortecs

cortecs_version = version("cortecs")

config = SphinxConfig(
"../pyproject.toml",
Expand Down

0 comments on commit 0389b8e

Please sign in to comment.