-
Notifications
You must be signed in to change notification settings - Fork 103
/
setup.py
79 lines (74 loc) · 2.7 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
74
75
76
77
78
79
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
tool setup
"""
from setuptools import setup, find_packages
import sys
def parse_requirements(filename):
"""
get requirements list from config file
"""
line_iter = (line.strip() for line in open(filename))
reqs = [line for line in line_iter if line and not line.startswith("#")]
need_remove_list = []
if "win" in sys.platform:
for req in reqs:
if req is not None:
if "paddleocr>" in req and req.index("paddleocr>") == 0:
need_remove_list.append(req)
if "paddleocr<" in req and req.index("paddleocr<") == 0:
need_remove_list.append(req)
if "paddleocr=" in req and req.index("paddleocr=") == 0:
need_remove_list.append(req)
if "paddlepaddle>" in req and req.index("paddlepaddle>") == 0:
need_remove_list.append(req)
if "paddlepaddle=" in req and req.index("paddlepaddle=") == 0:
need_remove_list.append(req)
if "paddlepaddle<" in req and req.index("paddlepaddle<") == 0:
need_remove_list.append(req)
if "protobuf=" in req and req.index("protobuf=") == 0:
need_remove_list.append(req)
if "protobuf>" in req and req.index("protobuf>") == 0:
need_remove_list.append(req)
if "protobuf<" in req and req.index("protobuf<") == 0:
need_remove_list.append(req)
need_remove_list = []
if len(need_remove_list) > 0:
for rem in need_remove_list:
reqs.remove(rem)
return reqs
req = parse_requirements("requirements.txt")
setup(
name="flybirds",
version="0.7.5",
author="trip_flight",
author_email="[email protected]",
description="BDD-driven natural language automated testing framework",
long_description="BDD-driven natural language automated testing "
"framework, present by Trip Flight",
keywords=[
"automation",
"automated-test",
"bdd",
"framework",
"android",
"ios",
"behave",
],
license="MIT license",
python_requires=">=3.8, <3.11",
packages=find_packages(exclude=["dist", "build", "tests", "docs"]),
include_package_data=True,
install_requires=req,
entry_points="""
[console_scripts]
flybirds = flybirds.launcher:main
""",
url="https://github.com/ctripcorp/flybirds",
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)