forked from SAML-Toolkits/python-saml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (50 loc) · 1.55 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
57
58
59
#!/usr/bin/python
from setuptools import setup, find_packages
from setuptools.command import install as _install
class ExampleCommand(_install.install):
description = "Runs the example application"
_install.install.user_options.append(
(
'config-file=',
'c',
'The configuration file containing the app and SAML settings',
),
)
def initialize_options(self):
self.config_file = None
_install.install.initialize_options(self)
def finalize_options(self):
if self.config_file is None:
self.config_file = 'example.cfg'
_install.install.finalize_options(self)
def run(self):
if self.distribution.install_requires:
self.distribution.fetch_build_eggs(
self.distribution.install_requires,
)
import example
example.main(self.config_file)
install_requires = [
'lxml>=2.3',
]
tests_require = [
'fudge >=0.9.5',
'nose >= 0.10.4',
]
setup(
name='onelogin.saml',
version='0.0.1',
description="Python client library for SAML Version 2.0",
packages = find_packages(),
namespace_packages = ['onelogin'],
install_requires=install_requires,
tests_require=tests_require,
extras_require={'tests': tests_require},
test_suite='nose.collector',
cmdclass={
'example': ExampleCommand
},
author='Andres Buritica',
author_email='[email protected]',
url='https://github.com/onelogin/python-saml',
)