-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (40 loc) · 1.15 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
#!/usr/bin/env python
"""
Flask-Mixer
-----------
Object generation for Flask and SQLAlchemy.
"""
import os
from sys import version_info
from setuptools import setup, find_packages
from flask_mixer import __version__, __project__, __license__
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except IOError:
return ''
install_requires = ['Flask>=0.8', 'Flask-SQLAlchemy>=0.16']
if version_info < (2, 7):
install_requires.append('importlib')
META_DATA = dict(
name=__project__,
version=__version__,
license=__license__,
description=read('DESCRIPTION'),
long_description=read('README.rst'),
platforms=('Any'),
author='Kirill Klenov',
author_email='[email protected]',
url=' http://github.com/klen/Flask-Mixer',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
packages=find_packages(),
install_requires=install_requires,
test_suite = 'tests',
)
if __name__ == "__main__":
setup(**META_DATA)