Show More
@@ -19,7 +19,7 b' RhodeCode works on *nix systems and Wind' | |||||
19 | that Lukasz Balcerzak and Marcin Kuzminski created to handle multiple |
|
19 | that Lukasz Balcerzak and Marcin Kuzminski created to handle multiple | |
20 | different version control systems. |
|
20 | different version control systems. | |
21 |
|
21 | |||
22 |
RhodeCode uses ` |
|
22 | RhodeCode uses `PEP386 versioning http://www.python.org/dev/peps/pep-0386/`_ | |
23 |
|
23 | |||
24 | Installation |
|
24 | Installation | |
25 | ------------ |
|
25 | ------------ |
@@ -4,7 +4,7 b'' | |||||
4 | ~~~~~~~~~~~~~~~~~~ |
|
4 | ~~~~~~~~~~~~~~~~~~ | |
5 |
|
5 | |||
6 | RhodeCode, a web based repository management based on pylons |
|
6 | RhodeCode, a web based repository management based on pylons | |
7 |
versioning implementation: http:// |
|
7 | versioning implementation: http://www.python.org/dev/peps/pep-0386/ | |
8 |
|
8 | |||
9 | :created_on: Apr 9, 2010 |
|
9 | :created_on: Apr 9, 2010 | |
10 | :author: marcink |
|
10 | :author: marcink | |
@@ -26,8 +26,17 b'' | |||||
26 | import sys |
|
26 | import sys | |
27 | import platform |
|
27 | import platform | |
28 |
|
28 | |||
29 |
VERSION = (1, 3, 4, 'b |
|
29 | VERSION = (1, 3, 4, 'b') | |
30 | __version__ = '.'.join((str(each) for each in VERSION[:4])) |
|
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 | __dbversion__ = 5 # defines current db version for migrations |
|
40 | __dbversion__ = 5 # defines current db version for migrations | |
32 | __platform__ = platform.system() |
|
41 | __platform__ = platform.system() | |
33 | __license__ = 'GPLv3' |
|
42 | __license__ = 'GPLv3' | |
@@ -65,17 +74,6 b' else:' | |||||
65 | requirements.append("mercurial>=2.1,<2.2") |
|
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 | def get_version(): |
|
77 | def get_version(): | |
80 | """Returns shorter version (digit parts only) as string.""" |
|
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