forked from spotinst/spotinst-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·101 lines (87 loc) · 3.56 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
89
90
91
92
93
94
95
96
97
98
99
100
101
# Always prefer setuptools over distutils
from codecs import open
from os import path
import sys
from setuptools import setup
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
here = path.abspath(path.dirname(__file__))
# Get the long description from the README.md file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
version = {}
with open("spotinst_sdk2/version.py") as fp:
exec(fp.read(), version)
setup(
name='spotinst-sdk2',
version=version['__version__'],
# start from Python 3.7
python_requires='>=3.7.0',
description='A Python SDK for Spotinst',
long_description=long_description,
long_description_content_type='text/markdown',
# The project's main homepage.
url='https://github.com/spotinst/spotinst-sdk-python',
# Author details
author='Spotinst',
author_email='[email protected]',
# Choose your license
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
keywords='spotinst spot instances aws azure ec2 cloud infrastructure development elastigroup',
packages=[
"spotinst_sdk2",
"spotinst_sdk2.clients",
"spotinst_sdk2.clients.admin",
"spotinst_sdk2.clients.elastigroup",
"spotinst_sdk2.clients.functions",
"spotinst_sdk2.clients.hpc",
"spotinst_sdk2.clients.mcs",
"spotinst_sdk2.clients.mrscaler",
"spotinst_sdk2.clients.ocean",
"spotinst_sdk2.clients.ocean_cd",
"spotinst_sdk2.clients.subscription",
"spotinst_sdk2.clients.setup",
"spotinst_sdk2.clients.managed_instance",
"spotinst_sdk2.clients.stateful_node",
"spotinst_sdk2.models",
"spotinst_sdk2.models.admin",
"spotinst_sdk2.models.elastigroup",
"spotinst_sdk2.models.elastigroup.aws",
"spotinst_sdk2.models.elastigroup.azure_v3",
"spotinst_sdk2.models.elastigroup.gcp",
"spotinst_sdk2.models.functions",
"spotinst_sdk2.models.hpc",
"spotinst_sdk2.models.hpc.aws",
"spotinst_sdk2.models.mrscaler",
"spotinst_sdk2.models.mrscaler.aws",
"spotinst_sdk2.models.ocean",
"spotinst_sdk2.models.ocean.aws",
"spotinst_sdk2.models.ocean.azure",
"spotinst_sdk2.models.ocean.gcp",
"spotinst_sdk2.models.ocean.ecs",
"spotinst_sdk2.models.ocean.rightsizing",
"spotinst_sdk2.models.ocean_cd",
"spotinst_sdk2.models.ocean_cd",
"spotinst_sdk2.models.setup",
"spotinst_sdk2.models.setup.azure",
"spotinst_sdk2.models.setup.gcp",
"spotinst_sdk2.models.subscription",
"spotinst_sdk2.models.managed_instance",
"spotinst_sdk2.models.managed_instance.aws",
"spotinst_sdk2.models.stateful_node"
],
install_requires=['requests', 'PyYaml'],
setup_requires=[] + pytest_runner,
tests_require=["pytest"]
)