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