Skip to content

Commit fbd62f7

Browse files
committed
Remove get_version complexity, add metadatas and bump to version 0.4.dev0
1 parent e911659 commit fbd62f7

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

tagging/__init__.py

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
"""
22
Django-tagging
33
"""
4-
VERSION = (0, 3, 6, 'final', 0)
4+
__version__ = '0.4.dev0'
5+
__license__ = 'BSD License'
56

7+
__author__ = 'Jonathan Buchanan',
8+
__author_email__ = '[email protected]',
69

7-
def get_version():
8-
if VERSION[3] == 'final':
9-
return '%s.%s.%s' % (VERSION[0], VERSION[1], VERSION[2])
10-
elif VERSION[3] == 'dev':
11-
if VERSION[2] == 0:
12-
return '%s.%s.%s%s' % (VERSION[0], VERSION[1],
13-
VERSION[3], VERSION[4])
14-
return '%s.%s.%s.%s%s' % (VERSION[0], VERSION[1],
15-
VERSION[2], VERSION[3], VERSION[4])
16-
else:
17-
return '%s.%s.%s%s' % (VERSION[0], VERSION[1],
18-
VERSION[2], VERSION[3])
10+
__maintainer__ = 'Fantomas42'
11+
__maintainer_email__ = '[email protected]'
1912

20-
21-
__version__ = get_version()
13+
__url__ = 'https://github.com/Fantomas42/django-tagging'
2214

2315

2416
class AlreadyRegistered(Exception):

0 commit comments

Comments
 (0)