-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
37 lines (28 loc) · 891 Bytes
/
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
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
BASE_DIR = os.path.realpath(os.path.dirname(__file__))
def parse_requirements():
"""
@summary: 获取依赖
"""
reqs = []
if os.path.isfile(os.path.join(BASE_DIR, "requirements.txt")):
with open(os.path.join(BASE_DIR, "requirements.txt"), 'r') as reqs:
for line in reqs.readlines():
line = line.strip()
if line:
reqs.append(line)
return reqs
if __name__ == "__main__":
setup(
version="1.0.0",
name="python_atom_sdk",
description="",
cmdclass={},
packages=find_packages(),
package_data={'': ['*.txt', '*.TXT']},
install_requires=parse_requirements(),
author="bk-ci",
license="Copyright(c)2010-2019 landun All Rights Reserved."
)