Ticket #13153: version.diff

File version.diff, 729 bytes (added by cesar@…, 15 years ago)
  • setup.py

     
    6868# Dynamically calculate the version based on django.VERSION.
    6969version = __import__('django').get_version()
    7070if u'SVN' in version:
    71     version = ' '.join(version.split(' ')[:-1])
     71    version = version.split(' ')
     72    version[-1:] = [version[-1:][0].lower().replace('-', '~')]
     73    version = ' '.join(version)
    7274
    7375setup(
    7476    name = "Django",
    75     version = version.replace(' ', '-'),
     77    version = version.replace(' ', '_'),
    7678    url = 'http://www.djangoproject.com/',
    7779    author = 'Django Software Foundation',
    7880    author_email = 'foundation@djangoproject.com',
Back to Top