comparison setup.py @ 857:3d0661b8aaa4

merged with beta branch
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 18 Dec 2010 14:45:58 +0100
parents d85b0948e539 b76da6f22e0f
children d9c8dddb96af
comparison
equal deleted inserted replaced
721:06cfcede13ab 857:3d0661b8aaa4
1 from rhodecode import get_version
2 import sys 1 import sys
3 py_version = sys.version_info 2 py_version = sys.version_info
4 3
4 from rhodecode import get_version
5
5 requirements = [ 6 requirements = [
6 "Pylons>=1.0.0", 7 "Pylons==1.0.0",
7 "SQLAlchemy==0.6.5", 8 "SQLAlchemy==0.6.5",
8 "Mako>=0.3.2", 9 "Mako==0.3.6",
9 "vcs==0.1.8", 10 "vcs==0.1.10",
10 "pygments>=1.3.0", 11 "pygments==1.3.1",
11 "mercurial==1.6.4", 12 "mercurial==1.7.2",
12 "whoosh==1.2.5", 13 "whoosh==1.3.4",
13 "celery==2.1.3", 14 "celery==2.1.4",
14 "py-bcrypt", 15 "py-bcrypt",
15 "babel", 16 "babel",
16 ] 17 ]
17 18
18 classifiers = ["Development Status :: 5 - Production/Stable", 19 classifiers = ['Development Status :: 5 - Production/Stable',
19 'Environment :: Web Environment', 20 'Environment :: Web Environment',
20 'Framework :: Pylons', 21 'Framework :: Pylons',
21 'Intended Audience :: Developers', 22 'Intended Audience :: Developers',
22 'License :: OSI Approved :: BSD License', 23 'License :: OSI Approved :: BSD License',
23 'Operating System :: OS Independent', 24 'Operating System :: OS Independent',
24 'Programming Language :: Python', ] 25 'Programming Language :: Python', ]
25 26
26 if sys.version_info < (2, 6): 27 if sys.version_info < (2, 6):
27 requirements.append("simplejson") 28 requirements.append("simplejson")
28 requirements.append("pysqlite") 29 requirements.append("pysqlite")
29 30
32 data_files = [] 33 data_files = []
33 34
34 #additional files that goes into package itself 35 #additional files that goes into package itself
35 package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], } 36 package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], }
36 37
37 description = 'Mercurial repository serving and browsing app' 38 description = ('Mercurial repository browser/management with '
39 'build in push/pull server and full text search')
38 #long description 40 #long description
39 try: 41 try:
40 readme_file = 'README.rst' 42 readme_file = 'README.rst'
41 long_description = open(readme_file).read() 43 changelog_file = 'docs/changelog.rst'
44 long_description = open(readme_file).read() + '/n/n' + \
45 open(changelog_file).read()
46
42 except IOError, err: 47 except IOError, err:
43 sys.stderr.write("[WARNING] Cannot find file specified as " 48 sys.stderr.write("[WARNING] Cannot find file specified as "
44 "long_description (%s)\n skipping that file" % readme_file) 49 "long_description (%s)\n or changelog (%s) skipping that file" \
50 % (readme_file, changelog_file))
45 long_description = description 51 long_description = description
46 52
47 53
48 try: 54 try:
49 from setuptools import setup, find_packages 55 from setuptools import setup, find_packages
57 setup( 63 setup(
58 name='RhodeCode', 64 name='RhodeCode',
59 version=get_version(), 65 version=get_version(),
60 description=description, 66 description=description,
61 long_description=long_description, 67 long_description=long_description,
62 keywords='rhodiumcode mercurial web hgwebdir replacement serving hgweb rhodecode', 68 keywords='rhodiumcode mercurial web hgwebdir gitweb git replacement serving hgweb rhodecode',
63 license='BSD', 69 license='BSD',
64 author='Marcin Kuzminski', 70 author='Marcin Kuzminski',
65 author_email='marcin@python-works.com', 71 author_email='marcin@python-works.com',
66 url='http://hg.python-works.com', 72 url='http://hg.python-works.com',
67 install_requires=requirements, 73 install_requires=requirements,
82 [paste.app_factory] 88 [paste.app_factory]
83 main = rhodecode.config.middleware:make_app 89 main = rhodecode.config.middleware:make_app
84 90
85 [paste.app_install] 91 [paste.app_install]
86 main = pylons.util:PylonsInstaller 92 main = pylons.util:PylonsInstaller
93
94 [paste.global_paster_command]
95 make-index = rhodecode.lib.indexers:MakeIndex
96 upgrade-db = rhodecode.lib.dbmigrate:UpgradeDb
97 celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand
98 celerybeat=rhodecode.lib.celerypylons.commands:CeleryBeatCommand
99 camqadm=rhodecode.lib.celerypylons.commands:CAMQPAdminCommand
100 celeryev=rhodecode.lib.celerypylons.commands:CeleryEventCommand
101
87 """, 102 """,
88 ) 103 )