forked from hasgeek/flask-lastuser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (44 loc) · 1.47 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, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = unicode(open(os.path.join(here, 'README.rst')).read(), 'utf-8')
CHANGES = unicode(open(os.path.join(here, 'CHANGES.rst')).read(), 'utf-8')
versionfile = open(os.path.join(here, "flask_lastuser", "_version.py")).read()
mo = re.search(r"^__version__\s*=\s*['\"]([^'\"]*)['\"]", versionfile, re.M)
if mo:
version = mo.group(1)
else:
raise RuntimeError("Unable to find version string in flask_lastuser/_version.py.")
requires = [
'Flask',
'requests',
'SQLAlchemy>=0.8',
'coaster>=0.3.1',
'Flask-BabelEx',
]
setup(
name='Flask-Lastuser',
version=version,
url='https://github.com/hasgeek/flask-lastuser',
license='BSD',
author='Kiran Jonnalagadda',
author_email='[email protected]',
description='Flask extension for Lastuser',
long_description=README + '\n\n' + CHANGES,
packages=find_packages(),
include_package_data=True,
zip_safe=True,
platforms='any',
install_requires=requires,
classifiers=[
'Development Status :: 4 - Beta',
'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'
]
)