Show More
@@ -1,78 +1,79 b'' | |||||
1 | from rhodecode import get_version |
|
1 | from rhodecode import get_version | |
2 | import sys |
|
2 | import sys | |
3 | py_version = sys.version_info |
|
3 | py_version = sys.version_info | |
4 |
|
4 | |||
5 | requirements = [ |
|
5 | requirements = [ | |
6 | "Pylons>=1.0.0", |
|
6 | "Pylons>=1.0.0", | |
7 | "SQLAlchemy>=0.6", |
|
7 | "SQLAlchemy>=0.6", | |
8 | "babel", |
|
|||
9 | "Mako>=0.3.2", |
|
8 | "Mako>=0.3.2", | |
10 |
"vcs>=0.1. |
|
9 | "vcs>=0.1.8", | |
11 | "pygments>=1.3.0", |
|
10 | "pygments>=1.3.0", | |
12 | "mercurial>=1.6", |
|
11 | "mercurial>=1.6", | |
13 | "whoosh==1.0.0", |
|
12 | "whoosh==1.0.0", | |
|
13 | "celery>=2.0.0", | |||
14 | "py-bcrypt", |
|
14 | "py-bcrypt", | |
15 |
" |
|
15 | "babel", | |
16 | ] |
|
16 | ] | |
17 |
|
17 | |||
18 | if sys.version_info < (2, 6): |
|
18 | if sys.version_info < (2, 6): | |
19 | requirements.append("simplejson") |
|
19 | requirements.append("simplejson") | |
20 | requirements.append("pysqlite") |
|
20 | requirements.append("pysqlite") | |
21 |
|
21 | |||
22 | #additional files from project that goes somewhere in the filesystem |
|
22 | #additional files from project that goes somewhere in the filesystem | |
23 | #relative to sys.prefix |
|
23 | #relative to sys.prefix | |
24 | data_files = [] |
|
24 | data_files = [] | |
25 |
|
25 | |||
26 | #additional files that goes into package itself |
|
26 | #additional files that goes into package itself | |
27 | package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], } |
|
27 | package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], } | |
28 |
|
28 | |||
|
29 | description = 'Mercurial repository serving and browsing app' | |||
29 | #long description |
|
30 | #long description | |
30 | try: |
|
31 | try: | |
31 | readme_file = 'README.rst' |
|
32 | readme_file = 'README.rst' | |
32 | long_description = open(readme_file).read() |
|
33 | long_description = open(readme_file).read() | |
33 | except IOError, err: |
|
34 | except IOError, err: | |
34 | sys.stderr.write("[ERROR] Cannot find file specified as " |
|
35 | sys.stderr.write("[ERROR] Cannot find file specified as " | |
35 | "long_description (%s)\n" % readme_file) |
|
36 | "long_description (%s)\n" % readme_file) | |
36 | sys.exit(1) |
|
37 | long_description = description | |
37 |
|
38 | |||
38 |
|
39 | |||
39 | try: |
|
40 | try: | |
40 | from setuptools import setup, find_packages |
|
41 | from setuptools import setup, find_packages | |
41 | except ImportError: |
|
42 | except ImportError: | |
42 | from ez_setup import use_setuptools |
|
43 | from ez_setup import use_setuptools | |
43 | use_setuptools() |
|
44 | use_setuptools() | |
44 | from setuptools import setup, find_packages |
|
45 | from setuptools import setup, find_packages | |
45 | #packages |
|
46 | #packages | |
46 | packages = find_packages(exclude=['ez_setup']) |
|
47 | packages = find_packages(exclude=['ez_setup']) | |
47 |
|
48 | |||
48 | setup( |
|
49 | setup( | |
49 | name='RhodeCode', |
|
50 | name='RhodeCode', | |
50 | version=get_version(), |
|
51 | version=get_version(), | |
51 | description='Mercurial repository serving and browsing app', |
|
52 | description=description, | |
52 | long_description=long_description, |
|
53 | long_description=long_description, | |
53 | keywords='mercurial web hgwebdir replacement serving hgweb rhodecode', |
|
54 | keywords='mercurial web hgwebdir replacement serving hgweb rhodecode', | |
54 | license='BSD', |
|
55 | license='BSD', | |
55 | author='Marcin Kuzminski', |
|
56 | author='Marcin Kuzminski', | |
56 | author_email='marcin@python-works.com', |
|
57 | author_email='marcin@python-works.com', | |
57 | url='http://hg.python-works.com', |
|
58 | url='http://hg.python-works.com', | |
58 | install_requires=requirements, |
|
59 | install_requires=requirements, | |
59 | setup_requires=["PasteScript>=1.6.3"], |
|
60 | setup_requires=["PasteScript>=1.6.3"], | |
60 | data_files=data_files, |
|
61 | data_files=data_files, | |
61 | packages=packages, |
|
62 | packages=packages, | |
62 | include_package_data=True, |
|
63 | include_package_data=True, | |
63 | test_suite='nose.collector', |
|
64 | test_suite='nose.collector', | |
64 | package_data=package_data, |
|
65 | package_data=package_data, | |
65 | message_extractors={'rhodecode': [ |
|
66 | message_extractors={'rhodecode': [ | |
66 | ('**.py', 'python', None), |
|
67 | ('**.py', 'python', None), | |
67 | ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), |
|
68 | ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), | |
68 | ('public/**', 'ignore', None)]}, |
|
69 | ('public/**', 'ignore', None)]}, | |
69 | zip_safe=False, |
|
70 | zip_safe=False, | |
70 | paster_plugins=['PasteScript', 'Pylons'], |
|
71 | paster_plugins=['PasteScript', 'Pylons'], | |
71 | entry_points=""" |
|
72 | entry_points=""" | |
72 | [paste.app_factory] |
|
73 | [paste.app_factory] | |
73 | main = rhodecode.config.middleware:make_app |
|
74 | main = rhodecode.config.middleware:make_app | |
74 |
|
75 | |||
75 | [paste.app_install] |
|
76 | [paste.app_install] | |
76 | main = pylons.util:PylonsInstaller |
|
77 | main = pylons.util:PylonsInstaller | |
77 | """, |
|
78 | """, | |
78 | ) |
|
79 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now