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