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