Skip to content

Commit 9d6736a

Browse files
committed
cmk-messaging: include py.typed
With change, `py.typed` is included in the package built by `bazel`, i.e., ``` tar ft pkg_tar.tar | grep 'py.typed' ``` returns a file now. Change-Id: I9a09607d22b5cb66212ee42cf4b9fdab85afc681
1 parent 2a41687 commit 9d6736a

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

packages/cmk-messaging/BUILD

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ py_library(
1919
"cmk/messaging/_logging.py",
2020
"cmk/messaging/rabbitmq.py",
2121
],
22+
data = ["cmk/messaging/py.typed"],
2223
imports = ["."],
2324
visibility = ["//cmk:__pkg__"],
2425
deps = [
@@ -61,7 +62,15 @@ py_wheel(
6162
strip_path_prefixes = ["packages/cmk-messaging"],
6263
# TODO: Duplicated from pyproject.toml
6364
version = "0.1.0",
64-
deps = [":cmk-messaging"],
65+
deps = [
66+
"py_typed",
67+
":cmk-messaging",
68+
],
69+
)
70+
71+
filegroup(
72+
name = "py_typed",
73+
srcs = ["cmk/messaging/py.typed"],
6574
)
6675

6776
package_wheel(

packages/cmk-messaging/pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,4 @@ build-backend = "setuptools.build_meta"
1010
[tool.setuptools.dynamic]
1111
dependencies = { file = ["requirements.txt"] }
1212

13-
[tool.setuptools.package-data]
14-
"cmk.hello" = ["py.typed"]
15-
1613
[tool.bandit]

0 commit comments

Comments
 (0)