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