VERSION = (0, 9, 0, 'beta', 1)


def get_version():
    from django.utils.version import get_version as django_get_version
    return django_get_version(VERSION) # pragma: no cover

@@ -8,26 +8,27 @@
  = (
-0, 9
+1, 0
 , 0, '
-beta', 1
+final', 0
 )%0A%0A%0A
@@ -54,129 +54,598 @@
     
-from django.utils.version import get_version as django_get_version%0A    return django_get_version(VERSION) # pragma: no cover
+%22Returns a PEP 386-compliant version number from VERSION.%22%0A    assert len(VERSION) == 5%0A    assert VERSION%5B3%5D in ('alpha', 'beta', 'rc', 'final')%0A%0A    # Now build the two parts of the version number:%0A    # main = X.Y%5B.Z%5D%0A    # sub = .devN - for pre-alpha releases%0A    #     %7C %7Ba%7Cb%7Cc%7DN - for alpha, beta and rc releases%0A%0A    parts = 2 if VERSION%5B2%5D == 0 else 3%0A    main = '.'.join(str(x) for x in VERSION%5B:parts%5D)%0A%0A    sub = ''%0A    if VERSION%5B3%5D != 'final':%0A        mapping = %7B'alpha': 'a', 'beta': 'b', 'rc': 'c'%7D%0A        sub = mapping%5BVERSION%5B3%5D%5D + str(VERSION%5B4%5D)%0A%0A    return str(main + sub)
 %0A

Fix version number reporting so we can be installed before Django.