|
1
|
|
|
#!/usr/bin/env python |
|
2
|
|
|
# -*- encoding: utf-8 -*- |
|
3
|
|
|
from __future__ import absolute_import, print_function |
|
4
|
|
|
|
|
5
|
|
|
import io |
|
6
|
|
|
import re |
|
7
|
|
|
from glob import glob |
|
8
|
|
|
from os.path import basename |
|
9
|
|
|
from os.path import dirname |
|
10
|
|
|
from os.path import join |
|
11
|
|
|
from os.path import splitext |
|
12
|
|
|
|
|
13
|
|
|
from setuptools import find_packages |
|
14
|
|
|
from setuptools import setup |
|
15
|
|
|
|
|
16
|
|
|
def read(*names, **kwargs): |
|
17
|
|
|
return io.open( |
|
18
|
|
|
join(dirname(__file__), *names), |
|
19
|
|
|
encoding=kwargs.get('encoding', 'utf8') |
|
20
|
|
|
).read() |
|
21
|
|
|
|
|
22
|
|
|
|
|
23
|
|
|
setup( |
|
24
|
|
|
name='DiscourseSSO', |
|
25
|
|
|
version='0.1.0', |
|
26
|
|
|
license='Apache2.0', |
|
27
|
|
|
description='SSO Discourse Application to allow SAML authentication', |
|
28
|
|
|
long_description='%s\n%s' % (read('README.rst'), re.sub(':obj:`~?(.*?)`', r'``\1``', read('CHANGELOG.rst'))), |
|
29
|
|
|
author='Marco Fargetta', |
|
30
|
|
|
author_email='[email protected]', |
|
31
|
|
|
url='https://github.com/fmarco76/DiscourseSSO', |
|
32
|
|
|
# packages=find_packages(exclude=['tests*']), |
|
33
|
|
|
packages=find_packages('src'), |
|
34
|
|
|
package_dir={'': 'src'}, |
|
35
|
|
|
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')], |
|
36
|
|
|
include_package_data=True, |
|
37
|
|
|
zip_safe=False, |
|
38
|
|
|
classifiers=[ |
|
39
|
|
|
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers |
|
40
|
|
|
'Development Status :: 5 - Production/Stable', |
|
41
|
|
|
'Intended Audience :: Developers', |
|
42
|
|
|
'License :: OSI Approved :: BSD License', |
|
43
|
|
|
'Operating System :: Unix', |
|
44
|
|
|
'Operating System :: POSIX', |
|
45
|
|
|
'Operating System :: Microsoft :: Windows', |
|
46
|
|
|
'Programming Language :: Python', |
|
47
|
|
|
'Programming Language :: Python :: 2.6', |
|
48
|
|
|
'Programming Language :: Python :: 2.7', |
|
49
|
|
|
'Programming Language :: Python :: 3', |
|
50
|
|
|
'Programming Language :: Python :: 3.3', |
|
51
|
|
|
'Programming Language :: Python :: 3.4', |
|
52
|
|
|
'Programming Language :: Python :: Implementation :: CPython', |
|
53
|
|
|
'Programming Language :: Python :: Implementation :: PyPy', |
|
54
|
|
|
'Topic :: Utilities', |
|
55
|
|
|
], |
|
56
|
|
|
keywords=[ |
|
57
|
|
|
'SAML', 'discourse' |
|
58
|
|
|
], |
|
59
|
|
|
install_requires=[ |
|
60
|
|
|
'Flask>=0.10.1' |
|
61
|
|
|
], |
|
62
|
|
|
extras_require={ |
|
63
|
|
|
# eg: 'rst': ['docutils>=0.11'], |
|
64
|
|
|
}, |
|
65
|
|
|
entry_points={ |
|
66
|
|
|
'console_scripts': [ |
|
67
|
|
|
'discroursesso = sso.__main__:main' |
|
68
|
|
|
] |
|
69
|
|
|
}, |
|
70
|
|
|
) |