comparison rhodecode/__init__.py @ 1118:b0e2c949c34b beta

Fixed Windows installation based on work of Mantis406 fork: "Replace py-bcrypt to make Windows installation easier" RhodeCode will now detect the platform and use sha256 hashes when used on Windows.
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 09 Mar 2011 19:08:34 +0100
parents 07a6e8c65526
children 07963dd1f0f1
comparison
equal deleted inserted replaced
1117:6eb5bb24a948 1118:b0e2c949c34b
23 # 23 #
24 # You should have received a copy of the GNU General Public License 24 # You should have received a copy of the GNU General Public License
25 # along with this program; if not, write to the Free Software 25 # along with this program; if not, write to the Free Software
26 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 26 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
27 # MA 02110-1301, USA. 27 # MA 02110-1301, USA.
28 28 import platform
29 29
30 VERSION = (1, 2, 0, 'beta') 30 VERSION = (1, 2, 0, 'beta')
31 __version__ = '.'.join((str(each) for each in VERSION[:4])) 31 __version__ = '.'.join((str(each) for each in VERSION[:4]))
32 __dbversion__ = 3 #defines current db version for migrations 32 __dbversion__ = 3 #defines current db version for migrations
33 __platform__ = platform.system()
33 34
34 try: 35 try:
35 from rhodecode.lib.utils import get_current_revision 36 from rhodecode.lib.utils import get_current_revision
36 _rev = get_current_revision() 37 _rev = get_current_revision()
37 except ImportError: 38 except ImportError:
46 47
47 return '.'.join((str(each) for each in VERSION[:3])) 48 return '.'.join((str(each) for each in VERSION[:3]))
48 49
49 BACKENDS = { 50 BACKENDS = {
50 'hg': 'Mercurial repository', 51 'hg': 'Mercurial repository',
51 #'git': 'Git repository', 52 #'git': 'Git repository',
52 } 53 }