##// END OF EJS Templates
Bumped beaker
marcink -
r1636:e42b8e9a beta
parent child Browse files
Show More
@@ -1,129 +1,129
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.5.4",
14 "Beaker==1.6.1",
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