11load ("//:visibility.bzl" , "PUBLIC_VISIBILITY" )
2-
32load ("@rules_python//python:defs.bzl" , "py_runtime_pair" )
4-
53load ("@python3_10//:defs.bzl" , "interpreter" )
64
75py_runtime (
86 name = "my_py3_runtime" ,
7+ interpreter = interpreter ,
98 python_version = "PY3" ,
10- interpreter = interpreter
119)
1210
1311#py_runtime_pair(
@@ -26,10 +24,8 @@ package(
2624)
2725
2826load ("@deps//:requirements.bzl" , "requirement" )
29-
3027load ("@rules_python//python:defs.bzl" , "py_library" )
3128
32-
3329#py_binary(
3430# name = "coref-python-src-extractor1",
3531# srcs = glob(["src/**/*.py"], exclude=["**/tests/**"]),
@@ -45,7 +41,10 @@ load("@rules_python//python:defs.bzl", "py_library")
4541
4642py_library (
4743 name = "test" ,
48- srcs = glob (["src/**/*.py" ], exclude = ["**/tests/**" ]),
44+ srcs = glob (
45+ ["src/**/*.py" ],
46+ exclude = ["**/tests/**" ],
47+ ),
4948 visibility = ["//visibility:public" ],
5049 deps = [
5150 requirement ("tqdm" ),
@@ -61,7 +60,6 @@ filegroup(
6160 ],
6261)
6362
64-
6563genrule (
6664 name = "test1" ,
6765 srcs = [
@@ -77,8 +75,6 @@ genrule(
7775 $(PYTHON3) $(locations //language/python/extractor:install_source)
7876 cp language/python/extractor/src/dist/coref-python-src-extractor $(RULEDIR)
7977 """ ,
80- toolchains = ["@rules_python//python:current_py_toolchain" , ],
78+ toolchains = ["@rules_python//python:current_py_toolchain" ],
8179 visibility = ["//visibility:public" ],
8280)
83-
84-
0 commit comments