Skip to content

Commit

Permalink
Fix version detection in Sphinx config
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Oct 7, 2024
1 parent a614c26 commit cf294aa
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import os
import sys
from datetime import datetime
from distutils.version import LooseVersion

import jsonschema2md

Expand All @@ -36,16 +35,10 @@
author = "Olof Kindgren"

# The full version, including alpha/beta/rc tags.
try:
from fusesoc.version import version as __version__
except ImportError:
__version__ = "unknown"
release: str = get_version("fusesoc")

release = __version__
# The short X.Y version.
# v_major, v_minor = LooseVersion(release).version[:2]
# version = f"{v_major}.{v_minor}"
version = "2.4"
version: str = ".".join(release.split(".")[:2])

# -- General configuration ---------------------------------------------------

Expand Down

0 comments on commit cf294aa

Please sign in to comment.