##// END OF EJS Templates
bumped up beaker version...
marcink -
r1790:f551007c beta
parent child Browse files
Show More
@@ -1,63 +1,61 b''
1 1 # -*- coding: utf-8 -*-
2 2 """
3 3 rhodecode.__init__
4 4 ~~~~~~~~~~~~~~~~~~
5 5
6 6 RhodeCode, a web based repository management based on pylons
7 7 versioning implementation: http://semver.org/
8 8
9 9 :created_on: Apr 9, 2010
10 10 :author: marcink
11 11 :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
12 12 :license: GPLv3, see COPYING for more details.
13 13 """
14 14 # This program is free software: you can redistribute it and/or modify
15 15 # it under the terms of the GNU General Public License as published by
16 16 # the Free Software Foundation, either version 3 of the License, or
17 17 # (at your option) any later version.
18 18 #
19 19 # This program is distributed in the hope that it will be useful,
20 20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 22 # GNU General Public License for more details.
23 23 #
24 24 # You should have received a copy of the GNU General Public License
25 25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26 26 import platform
27 27
28 28 VERSION = (1, 3, 0, 'beta')
29 29 __version__ = '.'.join((str(each) for each in VERSION[:4]))
30 __dbversion__ = 4 #defines current db version for migrations
30 __dbversion__ = 4 # defines current db version for migrations
31 31 __platform__ = platform.system()
32 32 __license__ = 'GPLv3'
33 33
34 34 PLATFORM_WIN = ('Windows')
35 35 PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS')
36 36
37 37 try:
38 38 from rhodecode.lib import get_current_revision
39 39 _rev = get_current_revision()
40 40 except ImportError:
41 #this is needed when doing some setup.py operations
41 # this is needed when doing some setup.py operations
42 42 _rev = False
43 43
44 44 if len(VERSION) > 3 and _rev:
45 45 __version__ += ' [rev:%s]' % _rev[0]
46 46
47 47
48 48 def get_version():
49 49 """Returns shorter version (digit parts only) as string."""
50 50
51 51 return '.'.join((str(each) for each in VERSION[:3]))
52 52
53 53 BACKENDS = {
54 54 'hg': 'Mercurial repository',
55 55 'git': 'Git repository',
56 56 }
57 57
58 58 CELERY_ON = False
59 59
60 60 # link to config for pylons
61 61 CONFIG = None
62
63
@@ -1,50 +1,49 b''
1 1 # -*- coding: utf-8 -*-
2 2 """
3 3 rhodecode.websetup
4 4 ~~~~~~~~~~~~~~~~~~
5 5
6 6 Weboperations and setup for rhodecode
7 7
8 8 :created_on: Dec 11, 2010
9 9 :author: marcink
10 10 :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
11 11 :license: GPLv3, see COPYING for more details.
12 12 """
13 13 # This program is free software: you can redistribute it and/or modify
14 14 # it under the terms of the GNU General Public License as published by
15 15 # the Free Software Foundation, either version 3 of the License, or
16 16 # (at your option) any later version.
17 17 #
18 18 # This program is distributed in the hope that it will be useful,
19 19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 21 # GNU General Public License for more details.
22 22 #
23 23 # You should have received a copy of the GNU General Public License
24 24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 25
26 import os
27 26 import logging
28 27
29 28 from rhodecode.config.environment import load_environment
30 29 from rhodecode.lib.db_manage import DbManage
31 30 from rhodecode.model.meta import Session
32 31
33 32
34 33 log = logging.getLogger(__name__)
35 34
36 35
37 36 def setup_app(command, conf, vars):
38 37 """Place any commands to setup rhodecode here"""
39 38 dbconf = conf['sqlalchemy.db1.url']
40 39 dbmanage = DbManage(log_sql=True, dbconf=dbconf, root=conf['here'],
41 40 tests=False)
42 41 dbmanage.create_tables(override=True)
43 42 dbmanage.set_db_version()
44 43 dbmanage.create_settings(dbmanage.config_prompt(None))
45 44 dbmanage.create_default_user()
46 45 dbmanage.admin_prompt()
47 46 dbmanage.create_permissions()
48 47 dbmanage.populate_default_permissions()
49 48 Session.commit()
50 49 load_environment(conf.global_conf, conf.local_conf, initial=True)
@@ -1,129 +1,129 b''
1 1 import sys
2 2 from rhodecode import get_version
3 3 from rhodecode import __platform__
4 4 from rhodecode import __license__
5 5 from rhodecode import PLATFORM_OTHERS
6 6
7 7 py_version = sys.version_info
8 8
9 9 if py_version < (2, 5):
10 10 raise Exception('RhodeCode requires python 2.5 or later')
11 11
12 12 requirements = [
13 13 "Pylons==1.0.0",
14 "Beaker==1.6.1",
14 "Beaker==1.6.2",
15 15 "WebHelpers>=1.2",
16 16 "formencode==1.2.4",
17 17 "SQLAlchemy==0.7.3",
18 18 "Mako==0.5.0",
19 19 "pygments>=1.4",
20 20 "mercurial>=2.0,<2.1",
21 21 "whoosh<1.8",
22 22 "celery>=2.2.5,<2.3",
23 23 "babel",
24 24 "python-dateutil>=1.5.0,<2.0.0",
25 25 "dulwich>=0.8.0,<0.9.0",
26 26 "vcs>=0.2.3.dev",
27 27 "webob==1.0.8",
28 28 "markdown==2.0.3",
29 29 "docutils==0.8.1",
30 30 ]
31 31
32 32 dependency_links = [
33 33 "https://secure.rhodecode.org/vcs/archive/default.zip#egg=vcs-0.2.3.dev",
34 34 "https://bitbucket.org/marcinkuzminski/vcs/get/default.zip#egg=vcs-0.2.3.dev",
35 35 ]
36 36
37 37 classifiers = ['Development Status :: 4 - Beta',
38 38 'Environment :: Web Environment',
39 39 'Framework :: Pylons',
40 40 'Intended Audience :: Developers',
41 41 'License :: OSI Approved :: GNU General Public License (GPL)',
42 42 'Operating System :: OS Independent',
43 43 'Programming Language :: Python',
44 44 'Programming Language :: Python :: 2.5',
45 45 'Programming Language :: Python :: 2.6',
46 46 'Programming Language :: Python :: 2.7', ]
47 47
48 48 if py_version < (2, 6):
49 49 requirements.append("simplejson")
50 50 requirements.append("pysqlite")
51 51
52 52 if __platform__ in PLATFORM_OTHERS:
53 53 requirements.append("py-bcrypt")
54 54
55 55
56 56 #additional files from project that goes somewhere in the filesystem
57 57 #relative to sys.prefix
58 58 data_files = []
59 59
60 60 #additional files that goes into package itself
61 61 package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], }
62 62
63 63 description = ('Mercurial repository browser/management with '
64 64 'build in push/pull server and full text search')
65 65 keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git',
66 66 'repository management', 'hgweb replacement'
67 67 'hgwebdir', 'gitweb replacement', 'serving hgweb', ])
68 68 #long description
69 69 try:
70 70 readme_file = 'README.rst'
71 71 changelog_file = 'docs/changelog.rst'
72 72 long_description = open(readme_file).read() + '\n\n' + \
73 73 open(changelog_file).read()
74 74
75 75 except IOError, err:
76 76 sys.stderr.write("[WARNING] Cannot find file specified as "
77 77 "long_description (%s)\n or changelog (%s) skipping that file" \
78 78 % (readme_file, changelog_file))
79 79 long_description = description
80 80
81 81
82 82 try:
83 83 from setuptools import setup, find_packages
84 84 except ImportError:
85 85 from ez_setup import use_setuptools
86 86 use_setuptools()
87 87 from setuptools import setup, find_packages
88 88 #packages
89 89 packages = find_packages(exclude=['ez_setup'])
90 90
91 91 setup(
92 92 name='RhodeCode',
93 93 version=get_version(),
94 94 description=description,
95 95 long_description=long_description,
96 96 keywords=keywords,
97 97 license=__license__,
98 98 author='Marcin Kuzminski',
99 99 author_email='marcin@python-works.com',
100 100 dependency_links=dependency_links,
101 101 url='http://rhodecode.org',
102 102 install_requires=requirements,
103 103 classifiers=classifiers,
104 104 setup_requires=["PasteScript>=1.6.3"],
105 105 data_files=data_files,
106 106 packages=packages,
107 107 include_package_data=True,
108 108 test_suite='nose.collector',
109 109 package_data=package_data,
110 110 message_extractors={'rhodecode': [
111 111 ('**.py', 'python', None),
112 112 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
113 113 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
114 114 ('public/**', 'ignore', None)]},
115 115 zip_safe=False,
116 116 paster_plugins=['PasteScript', 'Pylons'],
117 117 entry_points="""
118 118 [paste.app_factory]
119 119 main = rhodecode.config.middleware:make_app
120 120
121 121 [paste.app_install]
122 122 main = pylons.util:PylonsInstaller
123 123
124 124 [paste.global_paster_command]
125 125 make-index = rhodecode.lib.indexers:MakeIndex
126 126 upgrade-db = rhodecode.lib.dbmigrate:UpgradeDb
127 127 celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand
128 128 """,
129 129 )
General Comments 0
You need to be logged in to leave comments. Login now