forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
52 lines (47 loc) · 1.09 KB
/
BUILD.bazel
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
load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
genrule(
name = "get-attribute",
srcs = ["//javascript/webdriver/atoms:get-attribute.js"],
outs = ["selenium/webdriver/remote/getAttribute.js"],
cmd = "cp $< $@",
)
genrule(
name = "is-displayed",
srcs = ["//javascript/atoms/fragments:is-displayed.js"],
outs = ["selenium/webdriver/remote/isDisplayed.js"],
cmd = "cp $< $@",
)
py_library(
name = "main",
srcs = glob(["selenium/**/*.py"]),
data = [
":get-attribute",
":is-displayed",
],
deps = [
"//third_party/py:urllib3",
],
imports = ["."],
visibility = ["//visibility:public"],
)
py_test(
name = "unit",
size = "small",
srcs = glob([
"test/unit/**/*.py",
]) + [ "test/runner/run_pytest.py" ],
main = "test/runner/run_pytest.py",
deps = [
":main",
"//third_party/py:pytest",
],
legacy_create_init = False,
)
py_binary(
name = "untar",
visibility = ["//visibility:public"],
srcs = [
"untar.py",
],
legacy_create_init = False,
)