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