Skip to content

Commit

Permalink
pep 440 for version
Browse files Browse the repository at this point in the history
  • Loading branch information
tangochin committed Oct 30, 2018
1 parent 260e0b5 commit 9df77a0
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions djangoseo/version.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,2 @@
# -*- coding:utf-8 -*-
VERSION = (2, 6, '0wf', 'final', 0)


def get_version():
global VERSION
version = '%s.%s' % (VERSION[0], VERSION[1])
if VERSION[2]:
version = '%s.%s' % (version, VERSION[2])
if VERSION[3:] == ('alpha', 0):
version = '%s pre-alpha' % version
elif VERSION[3] != 'final':
version = '%s %s %s' % (version, VERSION[3], VERSION[4])
return version


__version__ = get_version()
__version__ = '2.6.0+whyfly.1'

0 comments on commit 9df77a0

Please sign in to comment.