Source code for freshpy.utils.version

# -*- coding: utf-8 -*-
"""
:Module:            freshpy.utils.version
:Synopsis:          This simple script contains the package version
:Created By:        Jeff Shurtliff
:Last Modified:     Jeff Shurtliff
:Modified Date:     29 Jan 2025
"""

from . import log_utils

# Initialize logging
logger = log_utils.initialize_logging(__name__)

# Define special and global variables
__version__ = "2.0.0"


[docs] def get_full_version(): """This function returns the current full version of the ``freshpy`` package.""" return __version__
[docs] def get_major_minor_version(): """This function returns the current major.minor (i.e. X.Y) version of the ``freshpy`` package.""" return ".".join(__version__.split(".")[:2])