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