Skip to content

Commit

Permalink
Updated version read logic
Browse files Browse the repository at this point in the history
  • Loading branch information
iluvcapra committed Jan 5, 2025
1 parent 7ed423d commit 04731d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#

import importlib
import os
import sys
sys.path.insert(0, os.path.abspath('../..'))
Expand All @@ -24,6 +24,8 @@
copyright = u'(c) 2025, Jamie Hardt'
author = u'Jamie Hardt'

release = importlib.metadata.version("pycmx")
version = release.split(".")[0:2]
# The short X.Y version
# The full version, including alpha/beta/rc tags

Expand Down

0 comments on commit 04731d6

Please sign in to comment.