forked from venth/aws-adfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (71 loc) · 2.09 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env python
import re
import codecs
from os import path
from platform import system
from setuptools import setup
VERSIONFILE = "aws_adfs/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = '([^']+)'"
mo = re.search(VSRE, verstrline, re.MULTILINE)
if mo:
version = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
tests_require = [
'pytest-runner',
'pytest',
'mock',
'coverage < 4'
]
install_requires = [
'lxml',
'click',
'boto3',
'requests[security]',
'configparser'
]
if system() == 'Windows':
install_requires.append('requests-negotiate-sspi')
setup(
name='aws-adfs',
version=version,
description='AWS Cli authenticator via ADFS - small command-line tool '
'to authenticate via ADFS and assume chosen role',
long_description=codecs.open(
path.join(path.abspath(path.dirname(__file__)), 'README.md'),
mode='r',
encoding='utf-8'
).read(),
url='https://github.com/venth/aws-adfs',
download_url='https://github.com/venth/aws-adfs/tarball/{}'.format(version),
author='Venth',
author_email='[email protected]',
maintainer='Venth',
keywords='aws adfs console tool',
packages=['aws_adfs'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Python Software Foundation License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
],
setup_requires=[
'setuptools',
],
install_requires=install_requires,
tests_require=tests_require,
extras_require={
'test': tests_require
},
entry_points={
'console_scripts': ['aws-adfs=aws_adfs.commands:cli']
},
include_package_data=True,
)