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