Skip to content

Commit 9aa816f

Browse files
Kevin Boydrwgk
Kevin Boyd
authored andcommitted
Remove deprecated libs and tests
This leaves only the wrapped and native casters. PiperOrigin-RevId: 393357598
1 parent 452affa commit 9aa816f

11 files changed

+0
-1213
lines changed

pybind11_protobuf/BUILD

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,6 @@ pybind_library(
2020
],
2121
)
2222

23-
pybind_library(
24-
name = "proto_casters",
25-
srcs = ["proto_casters.cc"],
26-
hdrs = ["proto_casters.h"],
27-
defines = [
28-
# Force a build error when build variants are mixed.
29-
"PYBIND11_PROTOBUF_MODE=pybind11_protos",
30-
],
31-
visibility = [
32-
"//visibility:public",
33-
],
34-
deps = [
35-
":proto_utils",
36-
"@com_google_protobuf//:protobuf",
37-
],
38-
)
39-
4023
pybind_extension(
4124
name = "proto",
4225
srcs = ["proto.cc"],

pybind11_protobuf/proto_casters.cc

Lines changed: 0 additions & 25 deletions
This file was deleted.

pybind11_protobuf/proto_casters.h

Lines changed: 0 additions & 155 deletions
This file was deleted.

pybind11_protobuf/tests/BUILD

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -35,33 +35,6 @@ py_test(
3535
],
3636
)
3737

38-
pybind_extension(
39-
name = "proto_example",
40-
srcs = ["proto_example.cc"],
41-
deps = [
42-
":test_cc_proto",
43-
"//pybind11_protobuf:proto_casters",
44-
"//pybind11_protobuf:proto_utils",
45-
],
46-
)
47-
48-
py_test(
49-
name = "proto_test",
50-
srcs = ["proto_test.py"],
51-
data = [
52-
":proto_example.so",
53-
"//pybind11_protobuf:proto.so",
54-
"@com_google_protobuf//:proto_api",
55-
],
56-
python_version = "PY3",
57-
deps = [
58-
":compare",
59-
":test_py_pb2",
60-
"@com_google_absl_py//absl/testing:absltest",
61-
"@com_google_absl_py//absl/testing:parameterized",
62-
],
63-
)
64-
6538
proto_library(
6639
name = "test_proto",
6740
srcs = ["test.proto"],
@@ -93,75 +66,6 @@ py_proto_library(
9366
deps = [":extension_proto"],
9467
)
9568

96-
py_test(
97-
name = "import_order_a_test",
98-
srcs = ["import_order_a_test.py"],
99-
data = [
100-
":proto_example.so",
101-
"//pybind11_protobuf:proto.so",
102-
],
103-
python_version = "PY3",
104-
deps = ["@com_google_absl_py//absl/testing:absltest"],
105-
)
106-
107-
py_test(
108-
name = "import_order_b_test",
109-
srcs = ["import_order_b_test.py"],
110-
data = [
111-
":proto_example.so",
112-
"//pybind11_protobuf:proto.so",
113-
],
114-
python_version = "PY3",
115-
deps = ["@com_google_absl_py//absl/testing:absltest"],
116-
)
117-
118-
# An example (and test) of using an alternative path for the protobuf module.
119-
# Note that "alternate_protobuf_module" is an arbitrary name; no corresponding
120-
# "alternate_protobuf_module.py/so" file is requried.
121-
# This test covers the case that the proto module only exists in linked symbols
122-
# and does not exist as a pybind_extension or py_library. This feature only
123-
# works with Python 3, therefore this test is left as a PY3-only test.
124-
pybind_extension(
125-
name = "alternate_module_path_example",
126-
srcs = ["alternate_module_path_example.cc"],
127-
local_defines = ["PYBIND11_PROTOBUF_MODULE_PATH=alternate_protobuf_module"],
128-
deps = [
129-
":test_cc_proto",
130-
"//pybind11_protobuf:proto_casters",
131-
],
132-
)
133-
134-
py_test(
135-
name = "alternate_module_path_test",
136-
srcs = ["alternate_module_path_test.py"],
137-
data = [":alternate_module_path_example.so"],
138-
python_version = "PY3",
139-
srcs_version = "PY3",
140-
deps = ["@com_google_absl_py//absl/testing:absltest"],
141-
)
142-
143-
pybind_extension(
144-
name = "missing_import",
145-
srcs = ["missing_import.cc"],
146-
copts = ["-UNDEBUG"],
147-
deps = [
148-
":test_cc_proto",
149-
"//pybind11_protobuf:proto_casters",
150-
],
151-
)
152-
153-
py_test(
154-
name = "missing_import_test",
155-
srcs = ["missing_import_test.py"],
156-
data = [":missing_import.so"],
157-
python_version = "PY3",
158-
srcs_version = "PY3",
159-
deps = [
160-
":test_py_pb2",
161-
"@com_google_absl_py//absl/testing:absltest",
162-
],
163-
)
164-
16569
# Tests for native_proto_caster
16670

16771
pybind_extension(

pybind11_protobuf/tests/alternate_module_path_example.cc

Lines changed: 0 additions & 16 deletions
This file was deleted.

pybind11_protobuf/tests/alternate_module_path_test.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

pybind11_protobuf/tests/import_order_a_test.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

pybind11_protobuf/tests/import_order_b_test.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)