Updated version read logic

This commit is contained in:
Jamie Hardt
2025-01-05 12:37:56 -08:00
parent 7ed423deaf
commit 04731d634f

View File

@@ -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('../..'))
@@ -24,6 +24,8 @@ project = u'pycmx'
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