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