def write_version_py(filename: str='popmon/version.py') -> None:
    'Write package version to version.py.\n\n    This will ensure that the version in version.py is in sync with us.\n\n    :param filename: The version.py to write too.\n    :type filename: str\n    '
    version_str = '"""THIS FILE IS AUTO-GENERATED BY SETUP.PY."""\n\nname = "{name!s}"\nversion = "{version!s}"\nfull_version = "{full_version!s}"\nrelease = {is_release!s}\n'
    with open(filename, 'w') as version_file:
        version_file.write(version_str.format(name=NAME.lower(), version=VERSION, full_version=FULL_VERSION, is_release=(not DEV)))
Write package version to version.py.

This will ensure that the version in version.py is in sync with us.

:param filename: The version.py to write too.
:type filename: str
def write_version_py(filename: str='popmon/version.py') -> None:
    'Write package version to version.py.\n\n    This will ensure that the version in version.py is in sync with us.\n\n    :param filename: The version.py to write too.\n    :type filename: str\n    '
    version_str = '"THIS FILE IS AUTO-GENERATED BY SETUP.PY."\n\nname = "{name!s}"\nversion = "{version!s}"\nfull_version = "{full_version!s}"\nrelease = {is_release!s}\n'
    with open(filename, 'w') as version_file:
        version_file.write(version_str.format(name=NAME.lower(), version=VERSION, full_version=FULL_VERSION, is_release=(not DEV)))