-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD.pants
49 lines (44 loc) · 916 Bytes
/
BUILD.pants
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
python_requirement(
name="deps",
requirements=[
"torch==1.10.2",
"torchvision==0.11.3",
"rikai==0.1.13",
"rikai-torchhub==0.1.0",
"yolov5 >=6.0.0, <6.1.0",
],
resolve="yolov5_req",
)
python_sources(
name="rikai_yolov5_sources",
sources=["rikai/**/*.py"],
resolve="yolov5_req",
)
python_sources(
name="sources",
sources=["tests/conftest.py"],
resolve="yolov5_req",
)
# python_tests(
# name="tests",
# sources=["tests/test_*.py"],
# dependencies=[
# ":rikai_yolov5_sources",
# ":sources", ":assets"
# ],
# resolve="yolov5_req",
# )
resources(
name="assets",
sources=["tests/assets/*jpg"],
)
python_distribution(
name="rikai-yolov5",
dependencies=[
":rikai_yolov5_sources",
],
provides=python_artifact(
name="rikai-yolov5",
version="0.2.0",
),
)