# -*- coding: utf-8 -*-
# Used by setup.py, so minimize top-level imports.

__version_info__ = {
    'major': 1,
    'minor': 3,
    'micro': 0,
    'releaselevel': 'final',
    'serial': 0
}

default_app_config = 'health_check.apps.HealthCheckConfig'


def autodiscover():
    """
    Auto-discover INSTALLED_APPS admin.py modules and fail silently when not present.

    This forces an import on them to register any admin bits they may want.
    """
    from django.utils.module_loading import autodiscover_modules
    from health_check.plugins import plugin_dir

    autodiscover_modules('plugin_health_check', register_to=plugin_dir)


def get_version(short=False):
    assert __version_info__['releaselevel'] in ('alpha', 'beta', 'final')
    vers = ["%(major)i.%(minor)i" % __version_info__, ]
    if __version_info__['micro']:
        vers.append(".%(micro)i" % __version_info__)
    if __version_info__['releaselevel'] != 'final' and not short:
        vers.append('%s%i' % (__version_info__['releaselevel'][0], __version_info__['serial']))
    return ''.join(vers)


__version__ = get_version()

@@ -73,123 +73,27 @@
 s.%0A%0A
-__version_info__ = %7B%0A    'major': 1,%0A    'minor': 3,%0A    'micro': 0,%0A    'releaselevel': 'final',%0A    'serial': 0%0A%7D
+VERSION = (1, 3, 0)
 %0A%0Ade
@@ -542,468 +542,52 @@
 )%0A%0A%0A
-def get_version(short=False):%0A    assert __version_info__%5B'releaselevel'%5D in ('alpha', 'beta', 'final')%0A    vers = %5B%22%25(major)i.%25(minor)i%22 %25 __version_info__, %5D%0A    if __version_info__%5B'micro'%5D:%0A        vers.append(%22.%25(micro)i%22 %25 __version_info__)%0A    if __version_info__%5B'releaselevel'%5D != 'final' and not short:%0A        vers.append('%25s%25i' %25 (__version_info__%5B'releaselevel'%5D%5B0%5D, __version_info__%5B'serial'%5D))%0A    return ''.join(vers)%0A%0A%0A__version__ = get_version(
+__version__ = %22.%22.join(str(i) for i in VERSION
 )%0A

Simplify version format