##// END OF EJS Templates
pep386 versioning
marcink -
r2136:b70721d0 beta
parent child Browse files
Show More
@@ -19,7 +19,7 b' RhodeCode works on *nix systems and Wind'
19 19 that Lukasz Balcerzak and Marcin Kuzminski created to handle multiple
20 20 different version control systems.
21 21
22 RhodeCode uses `Semantic Versioning <http://semver.org/>`_
22 RhodeCode uses `PEP386 versioning http://www.python.org/dev/peps/pep-0386/`_
23 23
24 24 Installation
25 25 ------------
@@ -4,7 +4,7 b''
4 4 ~~~~~~~~~~~~~~~~~~
5 5
6 6 RhodeCode, a web based repository management based on pylons
7 versioning implementation: http://semver.org/
7 versioning implementation: http://www.python.org/dev/peps/pep-0386/
8 8
9 9 :created_on: Apr 9, 2010
10 10 :author: marcink
@@ -26,8 +26,17 b''
26 26 import sys
27 27 import platform
28 28
29 VERSION = (1, 3, 4, 'beta')
30 __version__ = '.'.join((str(each) for each in VERSION[:4]))
29 VERSION = (1, 3, 4, 'b')
30
31 try:
32 from rhodecode.lib import get_current_revision
33 _rev = get_current_revision()
34 VERSION += ('dev%s' % _rev[0],)
35 except ImportError:
36 pass
37
38 __version__ = ('.'.join((str(each) for each in VERSION[:3])) +
39 '.'.join(VERSION[3:]))
31 40 __dbversion__ = 5 # defines current db version for migrations
32 41 __platform__ = platform.system()
33 42 __license__ = 'GPLv3'
@@ -65,17 +74,6 b' else:'
65 74 requirements.append("mercurial>=2.1,<2.2")
66 75
67 76
68 try:
69 from rhodecode.lib import get_current_revision
70 _rev = get_current_revision()
71 except ImportError:
72 # this is needed when doing some setup.py operations
73 _rev = False
74
75 if len(VERSION) > 3 and _rev:
76 __version__ += ' [rev:%s]' % _rev[0]
77
78
79 77 def get_version():
80 78 """Returns shorter version (digit parts only) as string."""
81 79
General Comments 0
You need to be logged in to leave comments. Login now