tubthumper._version

tubthumper/_version.py
1
2
3
4
5
6
7
8
9
10
11
12
"""Module for accessing the version"""

from pkg_resources import resource_stream


def _get_version() -> str:
    """Returns a version string"""
    with resource_stream("tubthumper", "VERSION") as version_file:
        return version_file.read().decode("utf-8").strip()


version = _get_version()