forked from spotinst/spotinst-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (41 loc) · 1.5 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (41 loc) · 1.5 KB
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
# 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_sdk/version.py") as fp:
exec(fp.read(), version)
setup(
name='spotinst-sdk',
version=version['__version__'],
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='service@spotinst.com',
# Choose your license
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6'
],
keywords='spotinst spot instances aws ec2 cloud infrastructure development elastigroup',
packages=["spotinst_sdk"],
install_requires=['requests', 'PyYaml'],
setup_requires=[] + pytest_runner,
tests_require=["pytest"]
)