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