-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
97 lines (74 loc) · 2.74 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright © 2014-2020 NetApp, Inc. All Rights Reserved.
#
# CONFIDENTIALITY NOTICE: THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION OF
# NETAPP, INC. USE, DISCLOSURE OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
# EXPRESS WRITTEN PERMISSION OF NETAPP, INC.
"""SolidFire Python SDK"""
from setuptools import setup, find_packages
from codecs import open
import os
from distutils import dir_util
from distutils.command.clean import clean as _clean
import json
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
pythonsdkversion = ''
with open('python_version.json') as versionfile:
versioninfo = json.load(versionfile)
pythonsdkversion = versioninfo['version']
class Clean(_clean):
def remove_dir(self, dir_to_del):
if os.path.exists(dir_to_del):
dir_util.remove_tree(dir_to_del, dry_run=self.dry_run)
def run(self):
print('custom clean')
self.remove_dir('build')
self.remove_dir('dist')
self.remove_dir('solidfire_sdk_python.egg-info')
setup(
name='solidfire-sdk-python',
version=pythonsdkversion,
description='SolidFire Python SDK',
long_description=long_description,
license='Apache2',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Topic :: Utilities',
'Topic :: System :: Systems Administration',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='solidfire nas iscsi fibre channel storage api sdk',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
install_requires=['setuptools>=19.2',
'future>=0.15.2', 'enum34>=1.1.6', 'requests>=2.9.1'],
# $> pip install -e ".[dev,test, docs, release]"
extras_require={
'dev': ['check-manifest'],
'test': [
'coverage',
'pyhamcrest>=1.8.5',
'pytest>=2.8.7',
'pytest-flake8>=0.1'
],
'docs': ['Sphinx>=1.3.5', 'sphinx_rtd_theme>=0.1.9', ],
'release': ['twine>=1.6.5', ],
},
cmdclass={
'clean': Clean,
},
)