-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (41 loc) · 1.43 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
import re
import ast
from setuptools import setup
def _get_meta(meta):
pat = re.compile(r'__%s__\s+=\s+(.*)' % meta)
with open('flask_pluginkit_ssoclient/__init__.py', 'rb') as fh:
meta_str = ast.literal_eval(pat.search(fh.read().decode('utf-8')).group(1))
return str(meta_str)
def _get_author():
mail_re = re.compile(r'(.*)\s<(.*)>')
author = _get_meta("author")
return (mail_re.search(author).group(1), mail_re.search(author).group(2))
(author, email) = _get_author()
setup(
name='flask-pluginkit-ssoclient',
version=_get_meta("version"),
license=_get_meta("license"),
author=author,
author_email=email,
url='https://github.com/saintic/flask-pluginkit-ssoclient',
keywords="flask-pluginkit",
description=_get_meta("description"),
packages=['flask_pluginkit_ssoclient',],
zip_safe=False,
include_package_data=True,
install_requires=[
'Flask-PluginKit>=2.3.2',
'SecureHTTP>=0.4.0',
'requests'
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)