Skip to content

Commit

Permalink
:py_opencc
Browse files Browse the repository at this point in the history
  • Loading branch information
BYVoid committed Jul 30, 2024
1 parent 4f2fec3 commit cc851f3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
load("@rules_cc//cc:defs.bzl", "cc_library")
load("@rules_python//python:py_library.bzl", "py_library")

package(default_visibility = ["//visibility:public"])

cc_library(
Expand All @@ -17,3 +20,10 @@ cc_library(
"//src:opencc",
],
)

py_library(
name = "py_opencc",
deps = [
"//python/opencc",
],
)
5 changes: 5 additions & 0 deletions python/opencc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ package(default_visibility = ["//visibility:public"])
py_library(
name = "opencc",
srcs = ["__init__.py"],
data = [
"//data/config",
"//data/dictionary:binary_dictionaries",
"//data/dictionary:text_dictionaries",
],
imports = [".."],
deps = ["//src:py_opencc"],
)
3 changes: 0 additions & 3 deletions python/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ py_test(
name = "test_opencc",
srcs = ["test_opencc.py"],
data = [
"//data/config",
"//data/dictionary:binary_dictionaries",
"//data/dictionary:text_dictionaries",
"//test/testcases",
],
imports = [".."],
Expand Down

0 comments on commit cc851f3

Please sign in to comment.