##// END OF EJS Templates
Mercurial 2.0 compatibility
marcink -
r1635:7e0ec636 beta
parent child Browse files
Show More
@@ -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 14 "Beaker==1.5.4",
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 "mercurial>=1.9.3,<2.0",
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