##// END OF EJS Templates
lib freeze
marcink -
r1563:e774fc91 beta
parent child Browse files
Show More
@@ -1,126 +1,126 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 "SQLAlchemy>=0.7.2,<0.8",
18 "Mako>=0.4.2",
17 "SQLAlchemy==0.7.3",
18 "Mako==0.5.0",
19 19 "pygments>=1.4",
20 20 "mercurial>=1.9,<2.0",
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.2.dev",
27 27 "webob==1.1.1"
28 28 ]
29 29
30 30 dependency_links = [
31 31 "https://secure.rhodecode.org/vcs/archive/default.zip#egg=vcs-0.2.2.dev",
32 32 "https://bitbucket.org/marcinkuzminski/vcs/get/default.zip#egg=vcs-0.2.2.dev",
33 33 ]
34 34
35 35 classifiers = ['Development Status :: 4 - Beta',
36 36 'Environment :: Web Environment',
37 37 'Framework :: Pylons',
38 38 'Intended Audience :: Developers',
39 39 'Operating System :: OS Independent',
40 40 'Programming Language :: Python',
41 41 'Programming Language :: Python :: 2.5',
42 42 'Programming Language :: Python :: 2.6',
43 43 'Programming Language :: Python :: 2.7', ]
44 44
45 45 if py_version < (2, 6):
46 46 requirements.append("simplejson")
47 47 requirements.append("pysqlite")
48 48
49 49 if __platform__ in PLATFORM_OTHERS:
50 50 requirements.append("py-bcrypt")
51 51
52 52
53 53 #additional files from project that goes somewhere in the filesystem
54 54 #relative to sys.prefix
55 55 data_files = []
56 56
57 57 #additional files that goes into package itself
58 58 package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], }
59 59
60 60 description = ('Mercurial repository browser/management with '
61 61 'build in push/pull server and full text search')
62 62 keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git',
63 63 'repository management', 'hgweb replacement'
64 64 'hgwebdir', 'gitweb replacement', 'serving hgweb', ])
65 65 #long description
66 66 try:
67 67 readme_file = 'README.rst'
68 68 changelog_file = 'docs/changelog.rst'
69 69 long_description = open(readme_file).read() + '\n\n' + \
70 70 open(changelog_file).read()
71 71
72 72 except IOError, err:
73 73 sys.stderr.write("[WARNING] Cannot find file specified as "
74 74 "long_description (%s)\n or changelog (%s) skipping that file" \
75 75 % (readme_file, changelog_file))
76 76 long_description = description
77 77
78 78
79 79 try:
80 80 from setuptools import setup, find_packages
81 81 except ImportError:
82 82 from ez_setup import use_setuptools
83 83 use_setuptools()
84 84 from setuptools import setup, find_packages
85 85 #packages
86 86 packages = find_packages(exclude=['ez_setup'])
87 87
88 88 setup(
89 89 name='RhodeCode',
90 90 version=get_version(),
91 91 description=description,
92 92 long_description=long_description,
93 93 keywords=keywords,
94 94 license=__license__,
95 95 author='Marcin Kuzminski',
96 96 author_email='marcin@python-works.com',
97 97 dependency_links=dependency_links,
98 98 url='http://rhodecode.org',
99 99 install_requires=requirements,
100 100 classifiers=classifiers,
101 101 setup_requires=["PasteScript>=1.6.3"],
102 102 data_files=data_files,
103 103 packages=packages,
104 104 include_package_data=True,
105 105 test_suite='nose.collector',
106 106 package_data=package_data,
107 107 message_extractors={'rhodecode': [
108 108 ('**.py', 'python', None),
109 109 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
110 110 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
111 111 ('public/**', 'ignore', None)]},
112 112 zip_safe=False,
113 113 paster_plugins=['PasteScript', 'Pylons'],
114 114 entry_points="""
115 115 [paste.app_factory]
116 116 main = rhodecode.config.middleware:make_app
117 117
118 118 [paste.app_install]
119 119 main = pylons.util:PylonsInstaller
120 120
121 121 [paste.global_paster_command]
122 122 make-index = rhodecode.lib.indexers:MakeIndex
123 123 upgrade-db = rhodecode.lib.dbmigrate:UpgradeDb
124 124 celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand
125 125 """,
126 126 )
General Comments 0
You need to be logged in to leave comments. Login now