-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
74 lines (66 loc) · 2.17 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
64
65
66
67
68
69
70
71
72
73
74
VERSION = '0,10,8'
import os
from setuptools import setup, find_packages,findall
from glob import glob
def get_description():
return open('README.md','r').read()
def get_version():
l,m,s = VERSION.split(',')
return '{0}.{1}.{2}'.format(l,m,s).strip()
data = os.walk(os.path.dirname(__file__))
make_file = lambda dn,f: os.path.join(os.curdir,os.sep,dn,f)
def get_pkg_data():
data = os.walk(os.path.abspath(os.curdir))
pkg_data = []
for dn,dl,fl in data:
if 'templates' in dn.split('/'):
for f in fl:
if not f.endswith('.py'):
pkg_data.append(make_file(dn,f))
return pkg_data
config = dict(
name='flaskxxl',
version=get_version(),#'0.0.9',
include_package_data=True,
author='Kyle Roux',
author_email='[email protected]',
description='quick way to design large flask projects',
long_description=get_description(),
long_description_content_type='text/markdown',
packages=['flask_xxl'],
package_data = {'':findall('flask_xxl')}, #['*.bob','*.html','*.js','*.css','*',]},
install_requires=[
'flask>=0.10.1',
'flask-alembic==1.0.2',
'flask-sqlalchemy==2.0',
'flask-script==2.0.5',
'flask-WTF==0.10.2',
'jinja2==2.7.3',
'LoginUtils==1.0.1',
'Mako==1.0.0',
'MarkupSafe==0.23',
'SQLAlchemy==0.9.8',
'WTForms==2.0.1',
'Werkzeug==0.15.3',
'alembic==0.6.7',
'argparse==1.2.1',
'itsdangerous==0.24',
'wsgiref==0.1.2',
'six==1.8.0',
'mr.bob2==0.2.3',
'Flask-DebugToolbar==0.9.2',
'Flask-PageDown==0.1.5',
'Pygments==2.0.1',
'flask-codemirror==0.0.3',
'jinja2-highlight==0.6.1',
'requests==2.5.1',
'inflection==0.2.1',
'markdown==2.5.2',
],
zip_safe=False,
entry_points=dict(
console_scripts='flaskxxl-manage.py=flask_xxl.manage:main'
),
)
if __name__ == "__main__":
setup(**config)