Skip to content

Commit a18f8ee

Browse files
committed
cmk-ccc: 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: I650a1f65359cf9f2e01ae4ebb07b9b4c5c70e276
1 parent 9d6736a commit a18f8ee

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

packages/cmk-ccc/BUILD

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,14 @@ py_wheel(
312312
strip_path_prefixes = ["packages/cmk-ccc"],
313313
# TODO: Duplicated from pyproject.toml
314314
version = "1.0.0",
315-
deps = _ALL,
315+
deps = _ALL + [
316+
":py_typed",
317+
],
318+
)
319+
320+
filegroup(
321+
name = "py_typed",
322+
srcs = ["cmk/ccc/py.typed"],
316323
)
317324

318325
package_wheel(

packages/cmk-ccc/pyproject.toml

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

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

1815
[tool.mypy]

0 commit comments

Comments
 (0)