Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
71 lines (62 loc) · 2.23 KB
/
Copy pathsetup.py
File metadata and controls
71 lines (62 loc) · 2.23 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env python
# -*-coding:utf-8-*-
""""
author : shenshuo
date : 2024年12月12日
desc : CODO SDK
"""
import sys
from setuptools import setup, find_packages
VERSION = '1.0.61'
if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 6):
print('This program requires at least Python 2.7 or 3.6 to run.')
sys.exit(1)
def get_data_files():
data_files = [
('share/doc/codo_sdk', ['README.md'])
]
return data_files
def get_install_requires():
requires = ['fire==0.5.0', 'shortuuid==1.0.11', 'pymysql==0.9.3', 'sqlalchemy==1.3.23', 'pika==1.3.2',
'PyJWT==2.0.1', 'requests==2.28.2', 'redis==4.5.1', 'tornado>=6.0', 'loguru>=0.6.0',
'cryptography==42.0.4', 'ldap3==2.9', 'pydantic>=1.10.5']
return requires
setup(
name='codosdk',
version=VERSION,
description="CODO项目的Python SDK",
# packages=['opssdk', 'opssdk.utils', 'websdk2', 'websdk2.apis', 'websdk2.cloud', 'websdk2.utils'],
packages=find_packages(),
url='https://github.com/ss1917/ops_sdk/',
license='GPLv3',
keywords="ops, codo, devops",
install_requires=get_install_requires(),
extras_require={
'cli': ['PyYAML>=5.1'],
},
entry_points={
'console_scripts': [
'codo-cli=codo_cli.main:main',
],
},
author='shenshuo',
author_email='191715030@qq.com',
long_description='SDK of the operation and maintenance script logs operate',
# long_description=open('README.md').read(), # 自动读取README文件
# long_description_content_type='text/markdown', # 确保Markdown格式
include_package_data=True,
data_files=get_data_files(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console :: Curses',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.9'
],
platforms='any',
python_requires='>=2.7, >=3.6', # 精确控制支持的Python版本
)