##// END OF EJS Templates
setup: bump sqlalchemy minimum version to 1.2.9 to get rid of py3 warning...
Mads Kiilerich -
r8008:ed67d1df default
parent child Browse files
Show More
@@ -1,161 +1,161 b''
1 1 #!/usr/bin/env python2
2 2 # -*- coding: utf-8 -*-
3 3 import os
4 4 import platform
5 5 import sys
6 6
7 7 import setuptools
8 8 # monkey patch setuptools to use distutils owner/group functionality
9 9 from setuptools.command import sdist
10 10
11 11
12 12 if sys.version_info < (2, 6) or sys.version_info >= (3,):
13 13 raise Exception('Kallithea requires python 2.7')
14 14
15 15
16 16 here = os.path.abspath(os.path.dirname(__file__))
17 17
18 18
19 19 def _get_meta_var(name, data, callback_handler=None):
20 20 import re
21 21 matches = re.compile(r'(?:%s)\s*=\s*(.*)' % name).search(data)
22 22 if matches:
23 23 if not callable(callback_handler):
24 24 callback_handler = lambda v: v
25 25
26 26 return callback_handler(eval(matches.groups()[0]))
27 27
28 28 _meta = open(os.path.join(here, 'kallithea', '__init__.py'), 'r')
29 29 _metadata = _meta.read()
30 30 _meta.close()
31 31
32 32 callback = lambda V: ('.'.join(map(str, V[:3])) + '.'.join(V[3:]))
33 33 __version__ = _get_meta_var('VERSION', _metadata, callback)
34 34 __license__ = _get_meta_var('__license__', _metadata)
35 35 __author__ = _get_meta_var('__author__', _metadata)
36 36 __url__ = _get_meta_var('__url__', _metadata)
37 37 # defines current platform
38 38 __platform__ = platform.system()
39 39
40 40 is_windows = __platform__ in ['Windows']
41 41
42 42 requirements = [
43 43 "alembic >= 1.0.10, < 1.1",
44 44 "gearbox >= 0.1.0, < 1",
45 45 "waitress >= 0.8.8, < 1.4",
46 46 "WebOb >= 1.8, < 1.9",
47 47 "backlash >= 0.1.2, < 1",
48 48 "TurboGears2 >= 2.4, < 2.5",
49 49 "tgext.routes >= 0.2.0, < 1",
50 50 "Beaker >= 1.10.1, < 2",
51 51 "WebHelpers2 >= 2.0, < 2.1",
52 52 "FormEncode >= 1.3.1, < 1.4",
53 "SQLAlchemy >= 1.1, < 1.4",
53 "SQLAlchemy >= 1.2.9, < 1.4",
54 54 "Mako >= 0.9.1, < 1.1",
55 55 "Pygments >= 2.2.0, < 2.5",
56 56 "Whoosh >= 2.7.1, < 2.8",
57 57 "celery >= 3.1, < 4.0", # TODO: celery 4 doesn't work
58 58 "Babel >= 1.3, < 2.8",
59 59 "python-dateutil >= 2.1.0, < 2.9",
60 60 "Markdown >= 2.2.1, < 3.2",
61 61 "docutils >= 0.11, < 0.15",
62 62 "URLObject >= 2.3.4, < 2.5",
63 63 "Routes >= 2.0, < 2.5",
64 64 "dulwich >= 0.19.0, < 0.20",
65 65 "mercurial >= 5.1, < 5.3",
66 66 "decorator >= 4.2.1, < 4.5",
67 67 "Paste >= 2.0.3, < 3.1",
68 68 "bleach >= 3.0, < 3.2",
69 69 "Click >= 7.0, < 8",
70 70 "ipaddr >= 2.2.0, < 2.3",
71 71 "paginate >= 0.5, < 0.6",
72 72 "paginate_sqlalchemy >= 0.3.0, < 0.4",
73 73 ]
74 74
75 75 if not is_windows:
76 76 requirements.append("bcrypt >= 3.1.0, < 3.2")
77 77
78 78 dependency_links = [
79 79 ]
80 80
81 81 classifiers = [
82 82 'Development Status :: 4 - Beta',
83 83 'Environment :: Web Environment',
84 84 'Framework :: Pylons',
85 85 'Intended Audience :: Developers',
86 86 'License :: OSI Approved :: GNU General Public License (GPL)',
87 87 'Operating System :: OS Independent',
88 88 'Programming Language :: Python',
89 89 'Programming Language :: Python :: 2.7',
90 90 'Topic :: Software Development :: Version Control',
91 91 ]
92 92
93 93
94 94 # additional files from project that goes somewhere in the filesystem
95 95 # relative to sys.prefix
96 96 data_files = []
97 97
98 98 description = ('Kallithea is a fast and powerful management tool '
99 99 'for Mercurial and Git with a built in push/pull server, '
100 100 'full text search and code-review.')
101 101
102 102 keywords = ' '.join([
103 103 'kallithea', 'mercurial', 'git', 'code review',
104 104 'repo groups', 'ldap', 'repository management', 'hgweb replacement',
105 105 'hgwebdir', 'gitweb replacement', 'serving hgweb',
106 106 ])
107 107
108 108 # long description
109 109 README_FILE = 'README.rst'
110 110 try:
111 111 long_description = open(README_FILE).read()
112 112 except IOError as err:
113 113 sys.stderr.write(
114 114 "[WARNING] Cannot find file specified as long_description (%s)\n"
115 115 % README_FILE
116 116 )
117 117 long_description = description
118 118
119 119
120 120 sdist_org = sdist.sdist
121 121 class sdist_new(sdist_org):
122 122 def initialize_options(self):
123 123 sdist_org.initialize_options(self)
124 124 self.owner = self.group = 'root'
125 125 sdist.sdist = sdist_new
126 126
127 127 packages = setuptools.find_packages(exclude=['ez_setup'])
128 128
129 129 setuptools.setup(
130 130 name='Kallithea',
131 131 version=__version__,
132 132 description=description,
133 133 long_description=long_description,
134 134 keywords=keywords,
135 135 license=__license__,
136 136 author=__author__,
137 137 author_email='kallithea@sfconservancy.org',
138 138 dependency_links=dependency_links,
139 139 url=__url__,
140 140 install_requires=requirements,
141 141 classifiers=classifiers,
142 142 data_files=data_files,
143 143 packages=packages,
144 144 include_package_data=True,
145 145 message_extractors={'kallithea': [
146 146 ('**.py', 'python', None),
147 147 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
148 148 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
149 149 ('public/**', 'ignore', None)]},
150 150 zip_safe=False,
151 151 entry_points="""
152 152 [console_scripts]
153 153 kallithea-api = kallithea.bin.kallithea_api:main
154 154 kallithea-gist = kallithea.bin.kallithea_gist:main
155 155 kallithea-config = kallithea.bin.kallithea_config:main
156 156 kallithea-cli = kallithea.bin.kallithea_cli:cli
157 157
158 158 [paste.app_factory]
159 159 main = kallithea.config.middleware:make_app
160 160 """,
161 161 )
General Comments 0
You need to be logged in to leave comments. Login now