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