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