forked from godaddy/aws-okta-processor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
88 lines (72 loc) · 2.22 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
79
80
81
82
83
84
85
86
87
88
"""Packaging settings."""
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from codecs import open
import os
import sys
NAME = 'aws_okta_processor'
WORKING_DIR = os.path.dirname(__file__)
if WORKING_DIR != '':
os.chdir(WORKING_DIR)
ABS_PATH = os.path.abspath(WORKING_DIR)
PACKAGE_PATH = os.path.join(ABS_PATH, NAME)
VERSION_FILE = os.path.join(PACKAGE_PATH, '__init__.py')
README_FILE = os.path.join(ABS_PATH, 'README.rst')
REQUIRES = [
'docopt>=0.6.2',
'requests>=2.21.0',
'boto3>=1.9.134',
'bs4>=0.0.1',
'contextlib2>=0.5.5',
'six>=1.12.0',
'defusedxml>=0.7.1'
]
TEST_REQUIREMENTS = [
'pytest-cov',
'pytest-mock',
'pytest>=2.8.0',
'responses'
]
def read_version():
with open(VERSION_FILE, 'r') as open_file:
for line in open_file:
if line.startswith('__version__ = '):
return line.split()[-1].strip().strip("'")
def read_file(file_name):
with open(file_name, encoding='utf-8') as open_file:
return open_file.read()
setup(
name=NAME,
version=read_version(),
description='Resource for fetching AWS Role credentials from Okta',
long_description=read_file(README_FILE),
url='https://github.com/godaddy/aws-okta-processor',
author='GoDaddy',
author_email='[email protected]',
license='MIT',
packages=find_packages(),
package_dir={"": "."},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
keywords='aws cli okta saml',
install_requires=REQUIRES,
python_requires=">=3.6.0",
tests_require=TEST_REQUIREMENTS,
entry_points={
'console_scripts': [
'aws-okta-processor=aws_okta_processor.cli:main',
],
}
)