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