Skip to content

Commit 1f598c6

Browse files
committed
add py.typed
1 parent 61fd8ae commit 1f598c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmake/PythonTargets.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function(add_geode_python_wheel)
6565
)
6666
set(wheel_output_path "${PROJECT_BINARY_DIR}/wheel")
6767
set(wheel_output_directory "${wheel_output_path}/${project_name}")
68+
file(WRITE "${wheel_output_directory}/py.typed" "")
6869
set(wheel_init "${wheel_output_directory}/__init__.py")
6970
if(WIN32)
7071
set(binary_folder "${CMAKE_INSTALL_BINDIR}")

cmake/pyproject.toml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ dependencies = {file = "requirements.txt"}
3939
readme = {file = "README.md", content-type = "text/markdown"}
4040

4141
[tool.setuptools.package-data]
42-
"${project_name}" = ["*/*.so", "*/*.so.*", "*/*.dll", "*/*.pyd", "share/*/*.db", "**/*.pyi"]
42+
"${project_name}" = ["*/*.so", "*/*.so.*", "*/*.dll", "*/*.pyd", "share/*/*.db", "**/*.pyi", "**/py.typed"]

0 commit comments

Comments
 (0)