-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
73 lines (69 loc) · 2.42 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
# -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making
蓝鲸智云 - 审计中心 (BlueKing - Audit Center) available.
Copyright (C) 2022 THL A29 Limited,
a Tencent company. All rights reserved.
Licensed under the MIT License (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the
specific language governing permissions and limitations under the License.
We undertake not to change the open source license (MIT license) applicable
to the current version of the project delivered to anyone in the future.
"""
import os
from setuptools import setup
current_directory = os.path.abspath(os.path.dirname(__file__))
readme_path = os.path.join(current_directory, "readme.md")
with open(readme_path) as f:
readme = f.read()
setup(
name="bk-audit",
version="1.2.3b0",
author="blueking",
url="https://bk.tencent.com",
author_email="[email protected]",
description="Bk Audit SDK",
long_description=readme,
long_description_content_type="text/markdown",
packages=[
"bk_audit",
"bk_audit.constants",
"bk_audit.contrib",
"bk_audit.contrib.bk_audit",
"bk_audit.contrib.django",
"bk_audit.contrib.opentelemetry",
"bk_audit.log",
"bk_audit.utils",
],
requires=[
"bk_iam",
],
extras_require={
# OT 仅支持 Py3.8 及以上版本
"opentelemetry": [
"protobuf>=3.19.5",
"opentelemetry-api>=1.20.0",
"opentelemetry-sdk>=1.20.0",
"opentelemetry-exporter-otlp>=1.20.0",
],
# BKResource 仅支持 Py3.6 及以上版本
"bk_resource": [
"bk_resource>=0.4.0",
],
},
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.8, <4",
)