comparison rhodecode/__init__.py @ 1964:b1ad9efeec14 beta

fixed requires files, added distinction on win vs other platforms
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 28 Jan 2012 18:07:20 +0200
parents bdf16af5472a
children edd3f202da4e
comparison
equal deleted inserted replaced
1963:9bbde54232dc 1964:b1ad9efeec14
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details. 22 # GNU General Public License for more details.
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, see <http://www.gnu.org/licenses/>. 25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26 import sys
26 import platform 27 import platform
27 28
28 VERSION = (1, 3, 0, 'beta') 29 VERSION = (1, 3, 0, 'beta')
29 __version__ = '.'.join((str(each) for each in VERSION[:4])) 30 __version__ = '.'.join((str(each) for each in VERSION[:4]))
30 __dbversion__ = 4 # defines current db version for migrations 31 __dbversion__ = 4 # defines current db version for migrations
31 __platform__ = platform.system() 32 __platform__ = platform.system()
32 __license__ = 'GPLv3' 33 __license__ = 'GPLv3'
34 __py_version__ = sys.version_info
33 35
34 PLATFORM_WIN = ('Windows') 36 PLATFORM_WIN = ('Windows')
35 PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS') 37 PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS')
36 38
37 requirements = [ 39 requirements = [
40 "WebHelpers>=1.2", 42 "WebHelpers>=1.2",
41 "formencode==1.2.4", 43 "formencode==1.2.4",
42 "SQLAlchemy==0.7.4", 44 "SQLAlchemy==0.7.4",
43 "Mako==0.5.0", 45 "Mako==0.5.0",
44 "pygments>=1.4", 46 "pygments>=1.4",
45 "mercurial>=2.0,<2.1",
46 "whoosh<1.8", 47 "whoosh<1.8",
47 "celery>=2.2.5,<2.3", 48 "celery>=2.2.5,<2.3",
48 "babel", 49 "babel",
49 "python-dateutil>=1.5.0,<2.0.0", 50 "python-dateutil>=1.5.0,<2.0.0",
50 "dulwich>=0.8.0,<0.9.0", 51 "dulwich>=0.8.0,<0.9.0",
51 "vcs>=0.2.3.dev", 52 "vcs>=0.2.3.dev",
52 "webob==1.0.8", 53 "webob==1.0.8",
53 "markdown==2.0.3", 54 "markdown==2.0.3",
54 "docutils==0.8.1", 55 "docutils==0.8.1",
55 ] 56 ]
57
58 if __py_version__ < (2, 6):
59 requirements.append("simplejson")
60 requirements.append("pysqlite")
61
62 if __platform__ in PLATFORM_WIN:
63 requirements.append("mercurial==2.0.1")
64 else:
65 requirements.append("py-bcrypt")
66 requirements.append("mercurial>=2.0,<2.1")
56 67
57 68
58 try: 69 try:
59 from rhodecode.lib import get_current_revision 70 from rhodecode.lib import get_current_revision
60 _rev = get_current_revision() 71 _rev = get_current_revision()