-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
47 lines (40 loc) · 1.35 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup for inspur_sdk."""
import ast
import io
import setuptools
from setuptools import setup
INSTALL_REQUIRES = (
['pycryptodome >= 3.5.0', 'PyYAML', 'requests >= 2.9.1', 'Jpype1', 'requests-toolbelt']
)
def version():
"""Return version string."""
with io.open('ism.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
return ast.parse(line).body[0].value.s
with io.open('README.md') as readme:
setup(
name='inspursmsdk',
version=version(),
description='inspur server manager api',
long_description=readme.read(),
license='Expat License',
author='Wangbaoshan',
author_email='wangbaoshan@inspur.com',
url='https://github.com/ISIB-Group/inspursmsdk',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
install_requires=INSTALL_REQUIRES,
py_modules=['ism'],
packages=setuptools.find_packages(),
include_package_data=True
)