diff --git a/doc/conf.py b/doc/conf.py index 9dfb7a5..af54f9d 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -82,7 +82,7 @@ # General information about the project. project = "Mizani" -copyright = "2023, Hassan Kibirige" +copyright = "2024, Hassan Kibirige" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -91,7 +91,9 @@ # The short X.Y version. try: from importlib.metadata import version as _version -finally: +except ImportError: + version = "0.0.0" +else: version = _version("mizani") # readthedocs modifies the repository which messes up the version.