##// END OF EJS Templates
code cleanup
marcink -
r1966:fc6063e6 beta
parent child Browse files
Show More
@@ -1,103 +1,104 b''
1 import sys
1 import sys
2 from rhodecode import get_version
2 from rhodecode import get_version
3 from rhodecode import __license__
3 from rhodecode import __license__
4 from rhodecode import __py_version__
4 from rhodecode import requirements
5 from rhodecode import requirements
5
6
6 py_version = sys.version_info
7 if __py_version__ < (2, 5):
7
8 if py_version < (2, 5):
9 raise Exception('RhodeCode requires python 2.5 or later')
8 raise Exception('RhodeCode requires python 2.5 or later')
10
9
11
10
12 dependency_links = [
11 dependency_links = [
13 "https://secure.rhodecode.org/vcs/archive/default.zip#egg=vcs-0.2.3.dev",
12 "https://secure.rhodecode.org/vcs/archive/default.zip#egg=vcs-0.2.3.dev",
14 "https://bitbucket.org/marcinkuzminski/vcs/get/default.zip#egg=vcs-0.2.3.dev",
13 "https://bitbucket.org/marcinkuzminski/vcs/get/default.zip#egg=vcs-0.2.3.dev",
15 ]
14 ]
16
15
17 classifiers = ['Development Status :: 4 - Beta',
16 classifiers = [
18 'Environment :: Web Environment',
17 'Development Status :: 4 - Beta',
19 'Framework :: Pylons',
18 'Environment :: Web Environment',
20 'Intended Audience :: Developers',
19 'Framework :: Pylons',
21 'License :: OSI Approved :: GNU General Public License (GPL)',
20 'Intended Audience :: Developers',
22 'Operating System :: OS Independent',
21 'License :: OSI Approved :: GNU General Public License (GPL)',
23 'Programming Language :: Python',
22 'Operating System :: OS Independent',
24 'Programming Language :: Python :: 2.5',
23 'Programming Language :: Python',
25 'Programming Language :: Python :: 2.6',
24 'Programming Language :: Python :: 2.5',
26 'Programming Language :: Python :: 2.7', ]
25 'Programming Language :: Python :: 2.6',
26 'Programming Language :: Python :: 2.7',
27 ]
27
28
28
29
29 # additional files from project that goes somewhere in the filesystem
30 # additional files from project that goes somewhere in the filesystem
30 # relative to sys.prefix
31 # relative to sys.prefix
31 data_files = []
32 data_files = []
32
33
33 # additional files that goes into package itself
34 # additional files that goes into package itself
34 package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], }
35 package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], }
35
36
36 description = ('Mercurial repository browser/management with '
37 description = ('Mercurial repository browser/management with '
37 'build in push/pull server and full text search')
38 'build in push/pull server and full text search')
38 keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git',
39 keywords = ' '.join(['rhodecode', 'rhodiumcode', 'mercurial', 'git',
39 'code review', 'repo groups', 'ldap'
40 'code review', 'repo groups', 'ldap'
40 'repository management', 'hgweb replacement'
41 'repository management', 'hgweb replacement'
41 'hgwebdir', 'gitweb replacement', 'serving hgweb', ])
42 'hgwebdir', 'gitweb replacement', 'serving hgweb', ])
42 # long description
43 # long description
43 try:
44 try:
44 readme_file = 'README.rst'
45 readme_file = 'README.rst'
45 changelog_file = 'docs/changelog.rst'
46 changelog_file = 'docs/changelog.rst'
46 long_description = open(readme_file).read() + '\n\n' + \
47 long_description = open(readme_file).read() + '\n\n' + \
47 open(changelog_file).read()
48 open(changelog_file).read()
48
49
49 except IOError, err:
50 except IOError, err:
50 sys.stderr.write("[WARNING] Cannot find file specified as "
51 sys.stderr.write("[WARNING] Cannot find file specified as "
51 "long_description (%s)\n or changelog (%s) skipping that file" \
52 "long_description (%s)\n or changelog (%s) skipping that file" \
52 % (readme_file, changelog_file))
53 % (readme_file, changelog_file))
53 long_description = description
54 long_description = description
54
55
55
56
56 try:
57 try:
57 from setuptools import setup, find_packages
58 from setuptools import setup, find_packages
58 except ImportError:
59 except ImportError:
59 from ez_setup import use_setuptools
60 from ez_setup import use_setuptools
60 use_setuptools()
61 use_setuptools()
61 from setuptools import setup, find_packages
62 from setuptools import setup, find_packages
62 # packages
63 # packages
63 packages = find_packages(exclude=['ez_setup'])
64 packages = find_packages(exclude=['ez_setup'])
64
65
65 setup(
66 setup(
66 name='RhodeCode',
67 name='RhodeCode',
67 version=get_version(),
68 version=get_version(),
68 description=description,
69 description=description,
69 long_description=long_description,
70 long_description=long_description,
70 keywords=keywords,
71 keywords=keywords,
71 license=__license__,
72 license=__license__,
72 author='Marcin Kuzminski',
73 author='Marcin Kuzminski',
73 author_email='marcin@python-works.com',
74 author_email='marcin@python-works.com',
74 dependency_links=dependency_links,
75 dependency_links=dependency_links,
75 url='http://rhodecode.org',
76 url='http://rhodecode.org',
76 install_requires=requirements,
77 install_requires=requirements,
77 classifiers=classifiers,
78 classifiers=classifiers,
78 setup_requires=["PasteScript>=1.6.3"],
79 setup_requires=["PasteScript>=1.6.3"],
79 data_files=data_files,
80 data_files=data_files,
80 packages=packages,
81 packages=packages,
81 include_package_data=True,
82 include_package_data=True,
82 test_suite='nose.collector',
83 test_suite='nose.collector',
83 package_data=package_data,
84 package_data=package_data,
84 message_extractors={'rhodecode': [
85 message_extractors={'rhodecode': [
85 ('**.py', 'python', None),
86 ('**.py', 'python', None),
86 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
87 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
87 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
88 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
88 ('public/**', 'ignore', None)]},
89 ('public/**', 'ignore', None)]},
89 zip_safe=False,
90 zip_safe=False,
90 paster_plugins=['PasteScript', 'Pylons'],
91 paster_plugins=['PasteScript', 'Pylons'],
91 entry_points="""
92 entry_points="""
92 [paste.app_factory]
93 [paste.app_factory]
93 main = rhodecode.config.middleware:make_app
94 main = rhodecode.config.middleware:make_app
94
95
95 [paste.app_install]
96 [paste.app_install]
96 main = pylons.util:PylonsInstaller
97 main = pylons.util:PylonsInstaller
97
98
98 [paste.global_paster_command]
99 [paste.global_paster_command]
99 make-index = rhodecode.lib.indexers:MakeIndex
100 make-index = rhodecode.lib.indexers:MakeIndex
100 upgrade-db = rhodecode.lib.dbmigrate:UpgradeDb
101 upgrade-db = rhodecode.lib.dbmigrate:UpgradeDb
101 celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand
102 celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand
102 """,
103 """,
103 )
104 )
General Comments 0
You need to be logged in to leave comments. Login now