<filename>jishaku/meta.py
# -*- coding: utf-8 -*-

"""
jishaku.meta
~~~~~~~~~~~~

Meta information about jishaku.

:copyright: (c) 2021 Devon (Gorialis) R
:license: MIT, see LICENSE for more details.

"""

from collections import namedtuple
from typing import NamedTuple

import pkg_resources

__all__ = (
    "__author__",
    "__copyright__",
    "__docformat__",
    "__license__",
    "__title__",
    "__version__",
    "version_info",
)


class VersionInfo(NamedTuple):
    major: int
    minor: int
    micro: int
    releaselevel: str
    serial: int


version_info = VersionInfo(major=2, minor=4, micro=0, releaselevel="beta", serial=0)

__author__ = "Gorialis"
__copyright__ = "Copyright 2021 Devon (Gorialis) R"
__docformat__ = "restructuredtext en"
__license__ = "MIT"
__title__ = "jishaku"
__version__: str = ".".join(map(str, version_info[:3]))

# This ensures that when jishaku is reloaded, pkg_resources requeries it to provide correct version info
pkg_resources.working_set.by_key.pop("jishaku", None)

<filename>jishaku/meta.py
# -*- coding: utf-8 -*-

"""
jishaku.meta
~~~~~~~~~~~~

Meta information about jishaku.

:copyright: (c) 2021 Devon (Gorialis) R
:license: MIT, see LICENSE for more details.

"""

from collections import namedtuple
from typing import NamedTuple

import pkg_resources

__all__ = (
    "__author__",
    "__copyright__",
    "__docformat__",
    "__license__",
    "__title__",
    "__version__",
    "version_info",
)


class VersionInfo(NamedTuple):
    major: int
    minor: int
    micro: int
    releaselevel: str
    serial: int


version_info = VersionInfo(major=2, minor=4, micro=0, releaselevel="beta", serial=0)

__author__ = "Gorialis"
__copyright__ = "Copyright 2021 Devon (Gorialis) R"
__docformat__ = "restructuredtext en"
__license__ = "MIT"
__title__ = "jishaku"
__version__: str = ".".join(map(str, version_info[:3]))

# This ensures that when jishaku is reloaded, pkg_resources requeries it to provide correct version info
pkg_resources.working_set.by_key.pop("jishaku", None)

# -*- coding: utf-8 -*- jishaku.meta ~~~~~~~~~~~~  Meta information about jishaku.  :copyright: (c) 2021 Devon (Gorialis) R :license: MIT, see LICENSE for more details. # This ensures that when jishaku is reloaded, pkg_resources requeries it to provide correct version info