~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2008-11-15 19:15:33 UTC
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20081115191533-84v2zyjbmp1074ni
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        file_info[0] = '\\PURELIB\\%s' % file_info[0]
67
67
 
68
68
# Dynamically calculate the version based on django.VERSION.
69
 
version_tuple = __import__('django').VERSION
70
 
if version_tuple[2] is not None:
71
 
    version = "%d.%d_%s" % version_tuple
72
 
else:
73
 
    version = "%d.%d" % version_tuple[:2]
 
69
version = __import__('django').get_version()
 
70
if u'SVN' in version:
 
71
    version = ' '.join(version.split(' ')[:-1])
74
72
 
75
73
setup(
76
74
    name = "Django",
77
 
    version = version,
 
75
    version = version.replace(' ', '-'),
78
76
    url = 'http://www.djangoproject.com/',
 
77
    download_url = 'http://media.djangoproject.com/releases/1.0.1/Django-1.0.1-final.tar.gz',
79
78
    author = 'Django Software Foundation',
80
79
    author_email = 'foundation@djangoproject.com',
81
80
    description = 'A high-level Python Web framework that encourages rapid development and clean, pragmatic design.',