-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
48 lines (42 loc) · 1.35 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
import os
import re
from setuptools import setup
ROOT = os.path.abspath(os.path.dirname(__file__))
VERSIONFILE = os.path.join('flask_funnel', '_version.py')
VSRE = r"""^__version__ = ['"]([^'"]*)['"]"""
def get_version():
verstrline = open(VERSIONFILE, 'rt').read()
mo = re.search(VSRE, verstrline, re.M)
if mo:
return mo.group(1)
else:
raise RuntimeError(
'Unable to find version string in {0}.'.format(VERSIONFILE))
setup(
name='Flask-Funnel',
version=get_version(),
url='http://github.com/rehandalal/flask-funnel/',
license='BSD',
author='Rehan Dalal',
author_email='[email protected]',
description='Asset management for Flask.',
long_description=open(os.path.join(ROOT, 'docs/index.rst')).read(),
packages=['flask_funnel'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'Flask-Script'
],
test_suite='flask_funnel.tests.suite',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)