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