forked from pythoncn/june
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (58 loc) · 1.41 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# coding: utf-8
import june
from email.utils import parseaddr
from setuptools import setup, find_packages
kwargs = {}
try:
from babel.messages import frontend as babel
kwargs['cmdclass'] = {
'extract_messages': babel.extract_messages,
'update_catalog': babel.update_catalog,
'compile_catalog': babel.compile_catalog,
'init_catalog': babel.init_catalog,
}
kwargs['message_extractors'] = {
'june': [
('**.py', 'python', None),
('**/templates/**.html', 'jinja2', {
'extensions': (
'jinja2.ext.autoescape,'
'jinja2.ext.with_,'
'jinja2.ext.do,'
)
})
]
}
except ImportError:
pass
flask_requires = [
'Flask',
'Flask-SQLAlchemy',
'Flask-Cache',
'Flask-Babel',
'Flask-WTF',
'Flask-Mail',
'Flask-Script',
]
install_requires = [
'Alembic',
'misaka',
'pygments',
'gevent',
'gunicorn',
]
install_requires.extend(flask_requires)
author, author_email = parseaddr(june.__author__)
setup(
name='june',
version=june.__version__,
author=author,
author_email=author_email,
url='http://python-china.org/',
packages=find_packages(exclude=['tests', 'tests.*']),
license='BSD',
zip_safe=False,
include_package_data=True,
install_requires=install_requires,
**kwargs
)