forked from cswei0501/automotive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (55 loc) · 1.79 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
# -*- coding:utf-8 -*-
# --------------------------------------------------------
# Copyright (C), 2016-2020, China TSP, All rights reserved
# --------------------------------------------------------
# @Name: setup.py
# @Purpose: 安装配置文件
# @Author: lizhe
# @Created: 2020/02/09 11:24
# --------------------------------------------------------
import re
import setuptools
from os.path import abspath, dirname, join
current_folder = dirname(abspath(__file__))
with open(join(current_folder, "src", "automotive", "version.py"), "rt", encoding="utf-8") as f:
VERSION = re.search("\nVERSION = '(.*)'", f.read()).group(1)
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="automotive",
version=VERSION,
description="A simple framework for automotive system",
long_description=long_description,
long_description_content_type="text/markdown",
author="lizhe",
author_email="lizhe@bdstar.com",
packages=setuptools.find_packages("src"),
package_dir={"": "src"},
# 依赖的相关文件
package_data={
"": ["*.dll", "*.ini", "*.xls*", "*.lib"]
},
python_requires=">=3.6.*",
# 安装依赖的包
install_requires=[
"loguru>=0.4.3",
"numpy>=1.19.3",
"PyYAML>=5.4.1",
"opencv-python>=4.5.1.48",
"Appium-Python-Client>=0.40",
"uiautomator2>=2.10.0",
"wheel>=0.34.2",
"pytest>=5.3.5",
"airtest>=1.1.3",
"ImageHash>=4.0",
"chardet>=3.0.4",
"pyserial>=3.4",
"wmi>=1.5.1",
"allure-pytest>=2.8.12"
],
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Operating System :: OS Independent",
]
)