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