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