-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
61 lines (50 loc) · 1.81 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of the Ingram Micro Cloud Blue Connect SDK.
# Copyright (c) 2019-2020 Ingram Micro. All Rights Reserved.
from os.path import exists
from setuptools import find_packages, setup
import pathlib
import pkg_resources
# noinspection PyTypeChecker
with pathlib.Path('requirements/sdk.txt').open() as requirements_txt:
install_reqs = [
str(requirement)
for requirement
in pkg_resources.parse_requirements(requirements_txt)
]
PACKAGES = find_packages(exclude=['tests*'])
DOC = ''
if exists('README.md'):
DOC = open('README.md', 'r').read()
setup(
name='connect-sdk',
author='CloudBlue Connect',
keywords='sdk connect connect automation',
packages=PACKAGES,
description='Connect Python SDK',
long_description=DOC,
long_description_content_type='text/markdown',
url='https://github.com/ingrammicro/connect-python-sdk',
license='Apache Software License',
include_package_data=True,
install_requires=install_reqs,
setup_requires=['setuptools_scm', 'pytest-runner', 'wheel'],
use_scm_version=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: OS Independent',
'Operating System :: POSIX',
'Operating System :: MacOS',
'Operating System :: Unix',
],
)